/* iro. mobile results v1.6 — desktop unmodified; original data & affiliate logic unchanged */
.iro-mobile-results-toolbar,.iro-m16-sticky,.iro-m16-overlay{display:none}
@media(max-width:650px){
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) .iro-mobile-results-toolbar:not([hidden]){display:flex;align-items:center;justify-content:space-between;
    flex-wrap:wrap;gap:7px;padding:9px 10px;margin:12px auto;background:#fff;border:1px solid #eedbe4;border-radius:13px}
  .iro-mobile-results-count{font-size:11px;color:#846f7b;font-weight:650}
  .iro-mobile-results-actions{display:flex;gap:6px;align-items:center}
  .iro-mobile-results-actions button{min-height:38px;padding:7px 11px;border:1px solid #ecd0dc;border-radius:10px;color:#935b75;background:#fff;font:inherit;font-size:12px;cursor:pointer}
  .iro-mobile-results-actions button[aria-pressed='true']{font-weight:750;background:#fff0f6;border-color:#ba7393}
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #products.iro-mobile-compact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-width:none;margin:10px 0 0;align-items:stretch}
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #products.iro-mobile-detail-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;max-width:460px;margin:10px auto 0}
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #products .iro-mobile-result-hidden{display:none!important}
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #products .product.iro-mobile-compact-card{min-width:0;min-height:0;display:flex;flex-direction:column;
    padding:10px;border:1px solid #f0dae3;border-radius:15px;background:#fff;box-shadow:0 4px 12px #98536d0c;gap:0}
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #products .iro-mobile-compact-card > img{width:100%;height:116px;min-height:0;object-fit:contain;margin:0 auto 6px;cursor:pointer}
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #products .iro-mobile-compact-card .fav-action{width:34px;height:34px;min-width:34px;top:7px;right:7px;font-size:21px}
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #products .iro-mobile-compact-card > h3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;
    font-size:12px;line-height:1.5;height:54px;max-height:54px;min-height:54px;overflow:hidden;overflow-wrap:anywhere;margin:5px 0 7px}
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #products .iro-mobile-compact-card > h3 a{color:inherit;text-decoration:none}
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #products .iro-mobile-compact-card > .price{font-size:14px;line-height:1.5;min-height:22px;margin:auto 0 10px;overflow-wrap:anywhere}
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #products .iro-mobile-compact-card .iro-mobile-ingredient-label{display:block;font-size:10px;line-height:1.4;
    color:#875b71;background:#fff5f8;border:1px solid #efdae5;padding:5px;border-radius:7px;margin-bottom:7px}
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #products .iro-mobile-product-details{width:100%;margin:0;min-width:0}
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #products .iro-mobile-product-details > summary{list-style:none;display:flex;justify-content:center;align-items:center;
    width:100%;min-height:42px;padding:9px 6px;border-radius:11px;background:#b66a8b;color:#fff;font-size:12px;font-weight:700;line-height:1.4;cursor:pointer;text-align:center}
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #products .iro-mobile-product-details > summary::-webkit-details-marker{display:none}
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #products .iro-mobile-product-details > summary::after{content:' ↗';margin-left:3px}
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #products .iro-mobile-product-details > .iro-mobile-product-more-inner{display:none}
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #products.iro-mobile-detail-grid .iro-mobile-compact-card{padding:14px}
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #products.iro-mobile-detail-grid .iro-mobile-compact-card > img{height:168px}
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #products.iro-mobile-detail-grid .iro-mobile-compact-card > h3{font-size:14px;min-height:auto;height:auto;max-height:none;display:block}
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) .iro-mobile-show-next:not([hidden]){display:block;min-height:44px;width:100%;max-width:310px;margin:16px auto 10px;
    border:1px solid #c87e9c;border-radius:12px;background:#fff5f9;color:#984d70;font:inherit;font-size:13px;font-weight:750;cursor:pointer}
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #loadMore.iro-mobile-wait-reveal{display:none!important}
  .iro-m16-sticky:not([hidden]){display:flex;position:fixed;z-index:108;left:11px;right:11px;align-items:center;gap:8px;
    width:auto;max-width:560px;margin:0 auto;padding:7px 9px;border:1px solid #edd2df;border-radius:13px;background:#fffcfef7;
    box-shadow:0 6px 24px #7d48602d;backdrop-filter:blur(12px)}
  .iro-m16-sticky-label{font-size:11px;font-weight:750;color:#735567;white-space:nowrap;margin-right:auto}
  .iro-m16-filter-quick{font:inherit;white-space:nowrap;font-size:12px;font-weight:700;min-height:36px;padding:7px 8px;
    background:#fff3f8;color:#935575;border:1px solid #e8c5d5;border-radius:9px}
  .iro-m16-sort-quick{display:flex;align-items:center;gap:4px;min-width:0;white-space:nowrap;font-size:10px;color:#856d7b}
  .iro-m16-sort-quick[hidden]{display:none!important}
  .iro-m16-sort-quick select{width:min(32vw,125px);min-height:36px;min-width:0;max-width:100%;font:inherit;font-size:11px;
    border:1px solid #ebcedb;border-radius:9px;background:#fff;color:#83536b;padding:4px}
  body.iro-m16-sheet-open{position:fixed!important;width:100%;left:0;right:0;overflow:hidden!important}
  .iro-m16-overlay:not([hidden]){display:block;position:fixed;inset:0;z-index:200}
  .iro-m16-backdrop{position:absolute;inset:0;background:#36212c8a}
  .iro-m16-sheet{position:absolute;bottom:0;left:0;right:0;max-height:min(88dvh,830px);display:flex;flex-direction:column;
    background:#fffefd;border-radius:22px 22px 0 0;box-shadow:0 -10px 35px #2e1d2d30;padding-bottom:env(safe-area-inset-bottom)}
  .iro-m16-grip{flex-shrink:0;width:44px;height:4px;background:#ddc3cf;border-radius:99px;margin:9px auto 4px}
  .iro-m16-sheet-header{position:static!important;display:flex!important;flex-shrink:0;justify-content:space-between;align-items:center;
    min-height:48px;padding:5px 18px 11px;border-bottom:1px solid #f1e0e8;background:#fffefd;color:#704b5d;font-size:13px;font-weight:750}
  .iro-m16-sheet-close{font:inherit;min-height:39px;padding:8px 11px;border:1px solid #efcfde;border-radius:12px;background:#fff4f8;color:#934f70;font-size:12px;cursor:pointer}
  .iro-m16-sheet-scroll{overflow-y:auto;overscroll-behavior:contain;padding:16px 16px 24px;min-height:0}
  .iro-m16-product-summary{display:grid;grid-template-columns:98px minmax(0,1fr);gap:13px;align-items:start;margin-bottom:14px}
  .iro-m16-product-image{background:#fff8fb;border:1px solid #f5e7ee;border-radius:14px;min-height:106px;display:flex;align-items:center;justify-content:center;padding:7px}
  .iro-m16-product-image img{width:100%;max-height:135px;object-fit:contain}
  .iro-m16-product-text h2{font-size:15px;line-height:1.5;margin:0 0 9px;overflow-wrap:anywhere;color:#4b3942}
  .iro-m16-product-price{font-size:16px;font-weight:750;color:#a04e71;margin:0 0 10px}
  .iro-m16-go-detail{display:inline-flex;align-items:center;min-height:36px;font-size:12px;color:#9b4b72;text-decoration:underline}
  .iro-m16-product-extra{display:flex;flex-direction:column;gap:9px}
  .iro-m16-product-extra .iro-mobile-product-more-inner{display:flex;flex-direction:column;gap:10px;min-width:0}
  .iro-m16-product-extra .marketplace-comparison,.iro-m16-product-extra .iro-purchase-panel,
  .iro-m16-product-extra .iro-shop-actions{max-width:100%;min-width:0}
  .iro-m16-product-extra .marketplace-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .iro-m16-product-extra a,.iro-m16-product-extra button{min-height:40px}
  .iro-m16-sheet :focus-visible,.iro-m16-sticky :focus-visible,body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) .iro-mobile-compact-card img:focus-visible{
    outline:3px solid #a94e75;outline-offset:3px}
}
@media(max-width:360px){
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #products .iro-mobile-compact-card > img{height:95px}
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #products .iro-mobile-compact-card > h3{font-size:11px;height:50px;min-height:50px;max-height:50px}
  .iro-m16-sticky-label{display:none}
  .iro-m16-filter-quick{margin-right:auto}
  .iro-m16-sort-quick select{width:min(46vw,150px)}
  .iro-m16-product-summary{grid-template-columns:76px minmax(0,1fr);gap:10px}
  .iro-m16-product-text h2{font-size:13px}
}
@media(min-width:651px){.iro-m16-overlay,.iro-m16-sticky{display:none!important}}
@media(prefers-reduced-motion:reduce){.iro-m16-overlay,.iro-m16-sticky{transition:none!important}}


/* iro. mobile v1.6.1 — unify source purchase actions and make long names discoverable.
   Scoped to mobile only; no marketplace URLs/affiliate logic are changed. */
@media (max-width:650px) {
  /* Unified affordance for the actual listed item and reference searches. */
  .iro-m16-product-extra .iro-compare-choice a.iro-buy-link,
  .iro-m16-product-extra .iro-compare-choice a.iro-qoo10-alternative,
  .iro-m16-product-extra .iro-compare-choice a.iro-amazon-alternative {
    box-sizing:border-box!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    min-height:42px!important;
    margin:0!important;
    padding:9px 7px!important;
    border:1px solid #e5c5d4!important;
    border-radius:11px!important;
    color:#945273!important;
    background:#fff6fa!important;
    box-shadow:none!important;
    font-size:12px!important;
    line-height:1.35!important;
    font-weight:700!important;
    text-decoration:none!important;
    text-align:center!important;
    white-space:normal;
  }
  .iro-m16-product-extra .iro-compare-choice a.iro-buy-link:hover,
  .iro-m16-product-extra .iro-compare-choice a.iro-qoo10-alternative:hover,
  .iro-m16-product-extra .iro-compare-choice a.iro-amazon-alternative:hover {
    background:#ffebf3!important;
    border-color:#c78eaa!important;
  }
  .iro-m16-product-extra .iro-compare-choice a:focus-visible {
    outline:3px solid #a9547c!important;
    outline-offset:2px;
  }
  /* Five lines for scanning, no silent clipping: overflow has a full-name action. */
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #products.iro-mobile-compact-grid .iro-mobile-compact-card > h3 {
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:5!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:hidden!important;
    font-size:12.5px!important;
    line-height:1.5!important;
    margin:5px 0 5px!important;
    overflow-wrap:anywhere!important;
  }
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #products.iro-mobile-compact-grid .iro-mobile-compact-card > h3 a.product-title-link {
    font-size:inherit!important;
    line-height:inherit!important;
    overflow-wrap:anywhere;
  }
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #products.iro-mobile-compact-grid .iro-mobile-compact-card.iro-mobile-title-expanded > h3 {
    display:block!important;
    -webkit-line-clamp:unset!important;
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
  }
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #products .iro-mobile-title-toggle:not([hidden]) {
    display:inline-flex;
    align-items:center;
    align-self:flex-start;
    appearance:none;
    background:transparent!important;
    color:#955570!important;
    border:0!important;
    padding:3px 0 7px!important;
    margin:0 0 4px!important;
    font:inherit!important;
    font-size:11px!important;
    line-height:1.4!important;
    font-weight:700!important;
    min-height:29px;
    cursor:pointer;
    text-align:left;
    text-decoration:underline;
    text-underline-offset:3px;
  }
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #products.iro-mobile-detail-grid .iro-mobile-title-toggle,
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #products .iro-mobile-title-toggle[hidden] {display:none!important}
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #products .iro-mobile-title-toggle:focus-visible {outline:2px solid #a9547c;outline-offset:2px}
}
@media (max-width:360px) {
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #products.iro-mobile-compact-grid .iro-mobile-compact-card > h3 {font-size:12px!important}
}

/* v1.6.2: brand page uses the same compact cards and 12-at-a-time layout. */
@media (max-width:650px){
 body.iro-mobile-brand-results #products.iro-mobile-compact-grid{max-width:100%!important;margin:12px 0!important}
 body.iro-mobile-brand-results #products.iro-mobile-compact-grid .product{max-width:100%;box-sizing:border-box}
 body.iro-mobile-brand-results #products.iro-mobile-compact-grid .product > h3[role="button"]{cursor:pointer}
 body.iro-mobile-brand-results #products.iro-mobile-compact-grid .product > h3[role="button"]:focus-visible{outline:3px solid #ad557b;outline-offset:3px}
 body.iro-mobile-brand-results #more.iro-mobile-wait-reveal{display:none!important}
 body.iro-mobile-brand-results #products .iro-mobile-result-hidden{display:none!important}
 body.iro-mobile-brand-results #products.iro-mobile-detail-grid{max-width:460px}
 body.iro-mobile-brand-results .iro-mobile-results-toolbar:not([hidden]){display:flex}
 body.iro-mobile-brand-results .iro-mobile-show-next:not([hidden]){display:block}
}

/* v1.6.3: align ingredient status at the same vertical position for two-column cards.
   Name can use 1-5 lines + optional full-name action without displacing badges. */
@media(max-width:650px){
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #products.iro-mobile-compact-grid
    .iro-mobile-compact-card > .iro-mobile-ingredient-label {margin-top:auto!important;}
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #products.iro-mobile-compact-grid
    .iro-mobile-compact-card:has(> .iro-mobile-ingredient-label) > .price {margin-top:0!important;}
}
/* Desktop-only, opt-in disclosure: no effect on mobile sheets or standalone product pages. */
@media(min-width:651px){
  /* An opened card must not force giant empty space inside its neighbors. */
  #products:has(> .product.iro-pc-card-folded){align-items:start;}
  #products > .product.iro-pc-card-folded > .iro-pc-card-disclosure{
    display:block;min-width:0;margin:8px 0 3px;border:1px solid #e8c6d5;border-radius:12px;background:#fff9fc;overflow:hidden;
  }
  #products > .product.iro-pc-card-folded > .iro-pc-card-disclosure > summary{
    display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:43px;padding:10px 12px;
    cursor:pointer;list-style:none;font-size:12px;font-weight:700;color:#945271;
  }
  #products > .product.iro-pc-card-folded > .iro-pc-card-disclosure > summary::-webkit-details-marker{display:none}
  #products > .product.iro-pc-card-folded > .iro-pc-card-disclosure > summary::after{content:'⌄';font-size:18px;font-weight:500;line-height:1}
  #products > .product.iro-pc-card-folded > .iro-pc-card-disclosure[open] > summary::after{content:'⌃'}
  #products > .product.iro-pc-card-folded > .iro-pc-card-disclosure[open] > summary{border-bottom:1px solid #f0dce4;background:#fff4f8}
  #products > .product.iro-pc-card-folded .iro-pc-card-disclosure-body{padding:9px 9px 11px;min-width:0}
  #products > .product.iro-pc-card-folded .iro-pc-card-disclosure-body > .iro-compare-options{margin:0 0 8px}
  #products > .product.iro-pc-card-folded > .iro-pc-card-disclosure > summary:focus-visible{outline:3px solid #a9547c;outline-offset:-3px}
  #products > .product.iro-pc-card-folded > .detail-link{margin-top:8px!important}
}


/* iro. v1.6.5: purchase/store details use a desktop side dialog.
   The product grid never changes height when the reader opens purchase details.
   Mobile sheets and their sizing rules remain unchanged. */
.iro-pc-purchase-dialog{display:none}
@media(min-width:651px){
  /* The popup itself is outside #products; no adjacent grid cards are stretched. */
  .iro-pc-purchase-dialog.product[open]{
    position:fixed!important;
    inset:50% 24px auto auto!important;
    display:flex!important;
    flex-direction:column!important;
    box-sizing:border-box!important;
    width:min(520px,calc(100vw - 48px))!important;
    height:auto!important;
    max-height:calc(100dvh - 50px)!important;
    margin:0!important;
    padding:0!important;
    transform:translateY(-50%);
    overflow:hidden!important;
    border:1px solid #edcfdb!important;
    border-radius:20px!important;
    background:#fff!important;
    box-shadow:0 24px 75px #3923304d!important;
    color:#543b49!important;
    z-index:300;
  }
  .iro-pc-purchase-dialog::backdrop{background:rgba(40,25,37,.40);backdrop-filter:blur(2px)}
  .iro-pc-purchase-dialog-head{display:flex;flex-shrink:0;align-items:start;gap:16px;justify-content:space-between;
    padding:17px 18px 14px;border-bottom:1px solid #f1dce5;background:#fff9fc}
  .iro-pc-purchase-heading{min-width:0;flex:1}
  .iro-pc-purchase-eyebrow{font-size:11px;font-weight:750;color:#a35a7b}
  .iro-pc-purchase-heading h2{max-width:none;margin:5px 0 0;text-align:left;color:#624150;
    font-size:15px;line-height:1.6;overflow-wrap:anywhere;font-weight:750}
  .iro-pc-purchase-close{flex-shrink:0;cursor:pointer;min-height:40px;padding:8px 12px;
    color:#975777;background:#fff;border:1px solid #ebcad7;border-radius:11px;font:inherit;font-size:12px;font-weight:700;line-height:1.4}
  .iro-pc-purchase-dialog-scroll{min-height:0;overflow-y:auto;overscroll-behavior:contain;
    padding:16px 18px 21px}
  .iro-pc-purchase-dialog .iro-pc-card-disclosure-body{padding:0!important;min-width:0;width:100%;}
  .iro-pc-purchase-dialog .iro-compare-options{max-width:100%;min-width:0;box-sizing:border-box;margin:0 0 10px}
  .iro-pc-purchase-dialog .iro-platform-info,.iro-pc-purchase-dialog .iro-shop-actions{max-width:100%;min-width:0}
  .iro-pc-purchase-dialog :is(a,button,summary):focus-visible{outline:3px solid #b66388;outline-offset:2px}
}
@media(max-width:650px){.iro-pc-purchase-dialog{display:none!important}}


/* iro. v1.6.6 — center the existing DESKTOP purchase modal. Mobile bottom sheet untouched. */
@media(min-width:651px){
  .iro-pc-purchase-dialog.product[open]{
    top:50%!important;
    left:50%!important;
    right:auto!important;
    bottom:auto!important;
    inset:50% auto auto 50%!important;
    transform:translate(-50%,-50%)!important;
    max-height:calc(100dvh - 36px)!important;
  }
}
