.shop { --shop-accent: #0071e3; color: #1d1d1f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.shop [hidden] { display: none !important; }
.shop button, .shop input { font: inherit; }
.shop button { cursor: pointer; }
.shop button:disabled { opacity: .45; cursor: not-allowed; }
.shop button:focus-visible, .shop a:focus-visible, .shop input:focus-visible { outline: 3px solid #0071e3; outline-offset: 3px; }

.shop-notice { margin: 16px 0; font-size: 12px; line-height: 1.8; color: #73737a; }
.shop-warning { border-radius: 12px; padding: 14px; color: #96500d; background: #fff3e4; font-size: 13px; }
.shop-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.shop-warning + .shop-heading { margin-top: 18px; }
.shop-heading h3 { font-size: 22px; font-weight: 650; }
.shop-heading span { color: #86868b; font-size: 12px; }
.shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.shop-product { overflow: hidden; border: 1px solid #e7e8ec; border-radius: 22px; background: white; box-shadow: 0 2px 8px #182e4b04; transition: box-shadow .2s, transform .2s; }
.shop-product:hover { transform: translateY(-3px); box-shadow: 0 12px 30px #182e4b0c; }
.shop-product-image { position: relative; display: grid; place-items: center; background: #f5f5f7; padding: 28px 24px 20px; }
.shop-product-image img { width: 100%; max-width: 320px; height: 240px; object-fit: contain; mix-blend-mode: multiply; }
.shop-tag { position: absolute; top: 16px; left: 20px; color: #73737a; font-size: 11px; }
.shop-product-body { padding: 20px 24px; }
.shop-product h4 { font-size: 20px; font-weight: 650; line-height: 1.4; letter-spacing: -.4px; }
.shop-product p { font-size: 12px; color: #86868b; margin: 8px 0 18px; line-height: 1.6; }
.shop-product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.shop-product small { display: block; color: #86868b; font-size: 11px; margin-bottom: 4px; }
.shop-product strong { font-size: 20px; font-weight: 650; letter-spacing: -.3px; }
.shop-product .shop-primary { min-width: 92px; min-height: 42px; }
.shop-primary, .shop-secondary { border: 0; border-radius: 20px; padding: 10px 16px; font-size: 12px !important; font-weight: 600 !important; line-height: 1.4; }
.shop-primary { background: var(--shop-accent); color: white; }
.shop-primary:hover:not(:disabled) { background: #0064cd; }
.shop-secondary { background: #f1f1f4; color: #36363c; }
.shop dialog { width: min(800px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); padding: 24px; border: 0; border-radius: 24px; box-shadow: 0 30px 100px #0003; color: #1d1d1f; }
.shop dialog::backdrop { background: #11182766; backdrop-filter: blur(5px); }
.shop-dialog-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.shop-dialog-header span { color: #86868b; font-size: 12px; letter-spacing: .5px; }
.shop-close { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: #f1f1f4; font-size: 22px !important; }
.shop-selection { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.shop-detail-image { border-radius: 16px; background: #f5f5f7; display: grid; place-items: center; }
.shop-detail-image img { width: 100%; height: 320px; object-fit: contain; padding: 24px; mix-blend-mode: multiply; }
.shop-detail-body h3 { font-weight: 700; font-size: 25px; line-height: 1.3; }
.shop-detail-body > p { margin: 8px 0 22px; color: #86868b; font-size: 12px; }
.shop fieldset { border: 0; margin: 0 0 20px; padding: 0; }
.shop legend { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.shop-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-choice { padding: 8px 12px; border: 1px solid #dedee3; background: white; border-radius: 9px; font-size: 12px !important; }
.shop-choice[aria-pressed="true"] { border-color: #0071e3; background: #f0f6ff; color: #0071e3; box-shadow: inset 0 0 0 1px #0071e3; }
.shop-quantity { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.shop-quantity > div { display: flex; border: 1px solid #dedee3; border-radius: 8px; overflow: hidden; }
.shop-quantity button { width: 30px; background: #f5f5f7; border-radius: 0; border: 0; }
.shop-quantity input { width: 44px; height: 32px; border: 0; border-radius: 0; text-align: center; appearance: textfield; }
.shop-quantity input::-webkit-inner-spin-button { appearance: none; }
.shop-total { display: flex; justify-content: space-between; margin: 22px 0 16px; font-size: 13px; align-items: center; }
.shop-total strong { font-size: 24px; }
.shop-wide { width: 100%; }
.shop-summary { display: flex; align-items: center; gap: 16px; background: #f5f5f7; border-radius: 14px; padding: 16px; margin-bottom: 24px; }
.shop-summary img { object-fit: contain; mix-blend-mode: multiply; flex-shrink: 0; }
.shop-summary h3 { font-size: 16px; font-weight: 650; }
.shop-summary p { font-size: 12px; color: #86868b; margin-top: 6px; }
.shop-summary strong { margin-left: auto; font-size: 19px; white-space: nowrap; }
.shop-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.shop-method { display: flex; align-items: flex-start; gap: 10px; border: 1px solid #dedee3; border-radius: 12px; padding: 16px; cursor: pointer; }
.shop-method:has(input:checked) { border-color: #0071e3; background: #f0f6ff; }
.shop-method:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.shop-method input { margin-top: 3px; accent-color: #0071e3; }
.shop-method strong { display: block; font-size: 13px; font-weight: 600; }
.shop-method small { display: block; margin-top: 5px; font-size: 11px; color: #73737a; line-height: 1.6; }
.shop-confirm { display: flex; gap: 8px; margin: 16px 0; font-size: 12px; line-height: 1.6; color: #96500d; }
.shop-confirm input { flex-shrink: 0; margin-top: 3px; }
.shop-payment-actions { display: flex; gap: 10px; justify-content: space-between; }
.shop-error { color: #b42318; font-size: 13px; line-height: 1.7; margin: 16px 0 4px; }
#shop-h5-ip-section > label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
#shop-h5-ip { width: 100%; padding: 10px 12px; border: 1px solid #dedee3; border-radius: 9px; font-size: 14px; }
@media (max-width: 1000px) { .shop-grid { gap: 20px; } .shop-product-image img { height: 220px; } }
@media (max-width: 600px) { .shop-grid { gap: 12px; } .shop-heading { gap: 6px; margin-bottom: 16px; } .shop-heading h3 { font-size: 20px; } .shop-heading span { font-size: 11px; } .shop-product { border-radius: 16px; } .shop-product-image { padding: 30px 10px 14px; } .shop-product-body { padding: 14px; } .shop-product h4 { font-size: 14px; min-height: 40px; } .shop-product p { font-size: 11px; margin-bottom: 14px; } .shop-product-image img { height: 160px; } .shop-tag { top: 12px; left: 12px; font-size: 10px; } .shop-product strong { font-size: 17px; } .shop-product-bottom { align-items: stretch; flex-direction: column; } .shop-product-bottom button { width: 100%; min-width: 0; } .shop-selection, .shop-methods { grid-template-columns: 1fr; } .shop-detail-image img { height: 200px; } .shop dialog { padding: 20px; } .shop-summary { flex-wrap: wrap; } .shop-summary img { width: 60px; height: 60px; } .shop-summary strong { margin-left: 76px; } }
@media (prefers-reduced-motion: reduce) { .shop-product { transition: none; } .shop-product:hover { transform: none; } }
