/* AliSecrets markets 0.5: storefront additions on top of the English theme (studio.css), right-to-left mirroring, legacy 0.3/0.4 blocks. Loaded on market pages only. */
.as-i18n .as-i18n-footer{padding:28px 0 96px}
.as-i18n .as-i18n-footer p{margin:0 0 10px;max-width:760px}
.as-i18n .as-i18n-footer-links{display:flex;flex-wrap:wrap;gap:8px 20px}
.as-i18n .as-i18n-footer-links a{min-height:44px;display:inline-flex;align-items:center}
.as-i18n .as-i18n-langs{display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px;margin-top:14px;padding-top:14px;border-top:1px solid #dce2ed;font-size:14px}
.as-i18n .as-i18n-langs span{font-weight:600}
.as-i18n .as-i18n-langs a{min-height:44px;display:inline-flex;align-items:center}
/* Header (English markup): utility bar language link, region label */
.as-i18n .utility .as-i18n-lang{color:#fff;text-decoration:underline;text-underline-offset:3px;display:inline-flex;align-items:center;min-height:38px}
.as-i18n .region-trigger,.as-i18n .mobile-region{white-space:nowrap;cursor:pointer}
.as-i18n .region-trigger .icon{width:14px;height:14px;vertical-align:-2px}
.as-i18n .desktop-nav{flex-wrap:wrap;row-gap:0}
.as-i18n .desktop-nav>a{white-space:nowrap}
.as-i18n .menu-dialog nav>a{overflow-wrap:anywhere}
.as-i18n .dialog-heading .site-logo{width:170px}
/* Region dialog */
.as-region-dialog{max-width:min(560px,calc(100vw - 32px))}
.as-region-dialog .as-region-current{font-weight:600}
.as-region-heading{font-size:16px;line-height:1.3;margin:18px 0 6px}
.as-region-list{list-style:none;margin:0 0 18px;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 14px;max-height:min(46vh,420px);overflow:auto;overscroll-behavior:contain}
.as-region-list a{display:flex;align-items:center;min-height:42px;padding:6px 8px;border-radius:6px;color:#132243;text-decoration:none;font-size:14px;line-height:1.3;overflow-wrap:anywhere}
.as-region-list a:hover,.as-region-list a:focus-visible{background:#eef2ff;text-decoration:underline}
.as-region-list a.is-current{font-weight:700;background:#eef2ff}
@media (max-width:520px){.as-region-list{grid-template-columns:minmax(0,1fr)}}
/* Long compound words (de, sv, nl, hu, fi…) must wrap instead of widening the page on small screens */
.as-i18n main{overflow-wrap:break-word}
.as-i18n main h1,.as-i18n main h2,.as-i18n main h3{overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto}
.as-lang-ko main,.as-lang-ko .as-i18n-footer{word-break:keep-all}
.as-lang-ja .product-copy h3,.as-lang-ko .product-copy h3{letter-spacing:0}
/* Storefront: cards, finder, home */
.as-mk-card .product-copy h3{overflow-wrap:anywhere;-webkit-hyphens:auto;hyphens:auto}
.as-mk-card .product-copy h3 a{color:inherit}
.as-mk-card .product-reason{min-height:0}
.as-mk-card .price-note{display:block;margin:2px 0 10px;color:#53617b}
.as-mk-merchant{margin:0 0 7px}
.as-mk-power-note{font-size:13px;line-height:1.5;color:var(--muted);margin:-4px 0 16px;max-width:760px}
.as-i18n .finder-intro h1{overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto}
.as-i18n .finder-category{overflow-wrap:anywhere;color:#132243;text-decoration:none}
.as-i18n .finder-categories-home .finder-category:hover,.as-i18n .finder-categories-home .finder-category:focus-visible{text-decoration:underline}
.as-i18n .section-heading>.text-link{white-space:nowrap}
@media (max-width:700px){.as-i18n .section-heading>.text-link{white-space:normal;overflow-wrap:anywhere;max-width:100%}}
.as-i18n .finder-browse .sort-form{min-width:0}
.as-i18n .quick-symbol{flex:none}
.as-i18n .hero-copy h1{overflow-wrap:break-word}
.as-i18n .find-slider-controls button span{display:block;line-height:1}
.as-mk-product .as-mk-listing-data,.as-mk-product .as-mk-drop,.as-mk-product .as-mk-price-box{padding:0 0 14px;margin:0 0 14px;border-bottom:1px solid var(--line)}
.as-mk-product .as-mk-listing-data strong,.as-mk-product .as-mk-drop strong{display:block;font-size:14px}
.as-mk-product .as-mk-listing-data p{margin:6px 0 4px;font-weight:700;font-size:15px}
.as-mk-product .as-mk-listing-data small,.as-mk-product .as-mk-drop p{display:block;font-size:12px;line-height:1.6;color:var(--muted);margin:6px 0 0}
.as-mk-product .as-mk-drop{background:var(--lemon);border-radius:10px;padding:12px 14px;border-bottom:0}
.as-mk-product .as-mk-price-box p{font-size:13px;line-height:1.6;color:var(--muted);margin:6px 0 0}
.as-mk-product .evidence-main-cta .button{width:100%;justify-content:center;min-height:50px;font-size:16px}
.as-mk-product .evidence-main-image>.verified-discount-pill,.as-mk-product .evidence-main-image>.hot-product-marker{position:absolute;top:14px;left:14px;z-index:2;pointer-events:none}
.as-mk-product .evidence-offer h1{overflow-wrap:break-word}
.as-mk-details{grid-template-columns:minmax(0,1fr)!important;max-width:900px}
.as-mk-details .prose ul{padding-inline-start:22px}
.as-mk-decision .evidence-section-heading{padding-inline:0 20px}
@media (max-width:700px){.as-i18n .finder-categories-home{gap:8px}.as-i18n .finder-categories-home .finder-category{padding:8px;gap:8px;font-size:12px}.as-i18n .finder-intro-note{max-width:none}}
/* Right-to-left markets (he, ar): mirror the theme's physical left/right rules */
.as-rtl .as-mk-arrow{transform:scaleX(-1)}
.as-rtl .global-search{padding-left:0;padding-right:13px}
.as-rtl .menu-toggle{margin-left:0;margin-right:-5px}
.as-rtl .mobile-region{padding:0 6px 0 0}
.as-rtl .dialog-x{right:auto;left:5px}
.as-rtl .finder-quick-links>a>.icon{margin-left:0;margin-right:auto}
.as-rtl .finder-intro-note{border-left:0;padding-left:0;border-right:3px solid var(--orange);padding-right:16px}
.as-rtl .finder-intro-note span{margin-left:0;margin-right:8px}
.as-rtl .finder-filter>summary>.icon:last-child{margin-left:0;margin-right:auto}
.as-rtl .finder-filter .choice>small{margin-left:0;margin-right:auto}
.as-rtl .filter-panel legend{float:right}
.as-rtl .select-label select,.as-rtl select{padding-left:0;padding-right:8px}
.as-rtl .product-picture>.verified-discount-pill,.as-rtl .hot-product-marker,.as-rtl .as-mk-product .evidence-main-image>.verified-discount-pill,.as-rtl .as-mk-product .evidence-main-image>.hot-product-marker{left:auto;right:12px}
.as-rtl .section-heading>div:last-child:not(:first-child){text-align:left}
.as-rtl .finder-home-hero .hero-copy{padding-right:max(var(--gutter,20px),calc((min(100vw,1600px) - 1280px)/2));padding-left:22px}
.as-rtl .finder-categories-home .finder-category{text-align:right}
.as-rtl .finder-category{padding:9px 9px 9px 15px}
.as-rtl .evidence-rating-link>span:last-child{margin-left:0;margin-right:5px}
.as-rtl .evidence-section-heading{padding:10px 0 10px 20px}
.as-rtl .product-copy h3,.as-rtl .eyebrow,.as-rtl .evidence-card-number{letter-spacing:0}
.as-rtl .find-slider-controls button span{transform:scaleX(-1)}
@media (max-width:600px){.as-rtl .product-picture>.verified-discount-pill,.as-rtl .hot-product-marker:not(.hot-product-detail){left:auto;right:8px}}
@media (max-width:640px){.as-rtl .finder-home-hero .hero-copy{padding-right:var(--gutter,20px);padding-left:var(--gutter,20px)}}
@media (min-width:1600px){.as-rtl .hero-copy{padding-left:45px;padding-right:160px}}
/* Legacy 0.3 guide/home article (small-desk-pilot.css) in right-to-left markets */
.as-rtl .as-desk-pilot .reset{border-left:0;border-right:4px solid var(--blue)}
.as-rtl .as-desk-pilot .eyebrow,.as-rtl .as-desk-pilot .hero-art .label,.as-rtl .as-desk-pilot .checks b{letter-spacing:0}
.as-rtl .as-desk-pilot .guide ol{padding-left:0;padding-right:22px}
.as-rtl .as-desk-pilot .guide li{padding:0 8px 15px 0}
.as-rtl .as-desk-pilot .list label{text-align:right}
@media (max-width:760px){.as-rtl .as-desk-pilot .ending{text-align:right}}
/* Market homepage: the guide/ordering article under the storefront sections */
.as-market-home .choices{grid-template-columns:minmax(0,1fr);max-width:760px}
.as-market-home #ordering{grid-template-columns:minmax(0,1fr);max-width:820px}
.as-mk-landing-page .as-market-home{margin-top:24px}
/* 0.3/0.4 picks (only when older page content still contains [as_market_picks]) */
.as-market-home .as-picks-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.as-market-home .as-pick{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;display:flex;flex-direction:column;min-width:0}
.as-market-home .as-pick img{width:100%;aspect-ratio:1;object-fit:contain;background:#fff;padding:14px}
.as-market-home .as-pick-body{padding:4px 20px 20px;display:flex;flex-direction:column;flex:1}
.as-market-home .as-pick .button{align-self:flex-start;margin-top:auto}
@media (max-width:760px){.as-market-home .as-picks-grid{grid-template-columns:minmax(0,1fr)}}

/* 0.6.1 coupon cards on market product pages: localized 'copy code' labels are longer than the English one,
   so keep the code readable (no per-letter wrapping) and let the button shrink/wrap instead. */
.as-mk-product-page #product-coupons .coupon-action .code-copy{align-items:stretch}
.as-mk-product-page #product-coupons .coupon-action .code-copy code{flex:0 0 auto;min-width:6.5em;white-space:nowrap;overflow-wrap:normal;text-align:center;direction:ltr}
.as-mk-product-page #product-coupons .coupon-action .code-copy .button{flex:1 1 auto;min-width:0;white-space:normal}
.as-mk-product-page #product-coupons .coupon-benefit{word-break:normal;overflow-wrap:normal;hyphens:manual}
