.swipe-launch, #product-swipe:not([open]) { display: none; }

@media screen {
  html:has(#product-swipe[open]) { overflow: hidden; }
  .swipe-launch {
    display: flex;
    grid-column: 1 / -1;
    flex-wrap: wrap;
    gap: .35rem;
    width: 100%;
    margin-top: .1rem;
  }
  .swipe-launch button, #product-swipe button {
    min-height: 44px;
    min-width: 44px;
    font: inherit;
    line-height: 1.2;
    cursor: pointer;
  }
  .swipe-launch button {
    flex: 1 1 auto;
    padding: .55rem .65rem;
    border-radius: 7px;
    border: 1px solid #9dae9d;
    background: #fffdf8;
    color: #19372a;
    font-weight: 680;
    font-size: .85rem;
  }
  .swipe-launch [data-launch-swipe="browse"] { background: #19372a; color: #fffdf8; border-color: #19372a; }
  .swipe-launch button[hidden], #product-swipe [hidden] { display: none; }

  #product-swipe {
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: #132a23;
    color: #f9f6ea;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
  #product-swipe::backdrop { background: #10231bcc; }
  #product-swipe :focus-visible { outline: 3px solid #d8ac73; outline-offset: 2px; }
  .swipe-content {
    width: min(100%, 470px);
    margin: 0 auto;
    padding: max(.6rem, env(safe-area-inset-top)) .85rem max(.75rem, env(safe-area-inset-bottom));
  }
  .swipe-header {
    display: flex;
    gap: .5rem;
    justify-content: space-between;
    align-items: center;
    margin-block-end: .5rem;
  }
  .swipe-header h2 { margin: 0; font-size: 1.1rem; color: inherit; line-height: 1.2; }
  .swipe-header form { margin: 0; }
  .swipe-header button {
    border: 1px solid #8c9f93;
    border-radius: 50%;
    color: inherit;
    background: none;
    font-size: 1.35rem !important;
  }
  .swipe-tabs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .4rem; }
  .swipe-tabs button, .swipe-actions button, .swipe-secondary button, .swipe-remove {
    border: 1px solid #95a99d;
    border-radius: 8px;
    color: inherit;
    background: transparent;
    padding: .5rem .55rem;
  }
  .swipe-tabs [aria-pressed="true"] { background: #f7eddc; color: #20372b; border-color: #f7eddc; font-weight: 700; }
  .swipe-hint { margin: .65rem 0 .15rem; color: #dce8de; font-size: .84rem; line-height: 1.36; }
  .swipe-progress { margin: .25rem 0 .48rem; color: #ddc5a2; font-size: .82rem; text-align: center; font-variant-numeric: tabular-nums; }
  .swipe-stack { position: relative; isolation: isolate; margin: 0 auto .8rem; }
  .swipe-stack::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 10px 7px -6px;
    border-radius: 13px;
    background: #58776a;
  }
  .swipe-stage {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 13px;
    overflow: hidden;
    background: #fffdf8;
    color: #132a23;
    text-align: start;
    touch-action: pan-y pinch-zoom;
    user-select: none;
    -webkit-user-select: none;
    transform: translateX(var(--drag-x, 0px)) rotate(var(--drag-angle, 0deg));
  }
  .swipe-stage > * { pointer-events: none; }
  .swipe-stage img {
    display: block;
    width: 100%;
    height: clamp(165px, 38dvh, 330px);
    object-fit: contain;
    background: #f1efe6;
    -webkit-user-drag: none;
  }
  .swipe-stage [data-swipe-product] {
    display: block;
    min-height: 2.75em;
    padding: .7rem .8rem .8rem;
    font-size: clamp(.94rem, 3.8vw, 1.12rem);
    font-weight: 750;
    line-height: 1.27;
    overflow-wrap: anywhere;
  }
  .swipe-intent {
    position: absolute;
    top: .6rem;
    padding: .4rem .65rem;
    border-radius: 5px;
    color: #fff;
    font-weight: 800;
    opacity: 0;
  }
  .swipe-intent[data-side="skip"] { left: .65rem; background: #473536; }
  .swipe-intent[data-side="save"] { right: .65rem; background: #235947; }
  [data-intent="skip"] [data-side="skip"], [data-intent="save"] [data-side="save"] { opacity: var(--drag-opacity, 0); }
  .swipe-favorite {
    position: absolute;
    inset-block-start: .55rem;
    inset-inline-end: .55rem;
    max-width: calc(100% - 1.1rem);
    padding: .25rem .5rem;
    border-radius: 999px;
    background: #234c3c;
    color: #fff;
    font-size: .76rem;
    font-weight: 700;
  }
  [data-intent] .swipe-favorite { visibility: hidden; }
  .swipe-actions { display: flex; gap: .5rem; direction: ltr; }
  .swipe-actions button { flex: 1 1 0; min-width: 0; }
  .swipe-actions [data-swipe-save] { background: #dfeee1; color: #16372b; font-weight: 750; }
  .swipe-secondary { display: flex; gap: .45rem; justify-content: center; margin-top: .5rem; }
  .swipe-secondary button[disabled] { opacity: .5; cursor: default; }
  .swipe-empty { margin: 1.55rem 0 1rem; text-align: center; color: #f5e5c9; }
  .swipe-saved-list { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .55rem; }
  .swipe-saved-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(44px, 30%);
    gap: .4rem;
    border-radius: 9px;
    background: #203d31;
    padding: .35rem;
  }
  .swipe-saved-list li > button:first-child {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: none;
    color: inherit;
    border: 0;
    padding: .1rem;
    text-align: start;
    overflow-wrap: anywhere;
  }
  .swipe-saved-list img { width: 52px; height: 52px; object-fit: contain; border-radius: 5px; background: #f1efe6; flex: 0 0 auto; }
  #product-swipe .swipe-remove { font-size: .76rem; overflow-wrap: anywhere; }
}

main.buyer-main {display:flex; flex-direction:column;}
main.buyer-main > :is(.isc-chat-entry,.journal-intl-chat) {order:1;}
@media(min-width:621px){
 #product-swipe[open]{inset:0;margin:auto;width:min(36rem,94vw);height:min(54rem,90dvh);border-radius:1rem;box-shadow:0 1rem 4rem #0005;}
 #product-swipe::backdrop{background:rgb(13 29 23 / .64);}
 .catalog-page .swipe-launch{width:auto;max-width:30rem;}
}

.catalog-page .catalog-lead > .swipe-launch {display:flex;flex-wrap:wrap;gap:.4rem;max-width:100%;}
.catalog-lead > .swipe-launch [hidden]{display:none;}
@media(max-width:700px){
 .catalog-page.showroom-browse .catalog-lead > .swipe-launch{order:2;margin:0 0 .25rem;}
 .catalog-page.showroom-browse .catalog-hero > .featured-exhibit{order:3;}
 .catalog-page.showroom-browse .catalog-lead > .catalog-hero-actions{order:4;}
 .catalog-page.showroom-browse .catalog-lead > p{order:5;}
 .catalog-page.showroom-browse .catalog-lead > .catalog-seller-summary{order:6;}
}

.catalog-title-phrase {display:inline-block;}
@media(max-width:700px){
 .catalog-page.showroom-browse .catalog-hero {gap:.55rem;padding:clamp(.7rem,3vw,1rem);}
 .catalog-page.showroom-browse .catalog-lead > h1 {font-size:clamp(1.65rem,7vw,2.1rem);line-height:1.12;letter-spacing:normal;margin:0;}
 .catalog-page.showroom-browse .catalog-lead > .catalog-brand {margin-block:0;font-size:.78rem;line-height:1.3;}
 .catalog-page .catalog-lead > .swipe-launch button {font-size:.9rem;line-height:1.2;}
}
.swipe-stage [data-swipe-product] {min-height:0;padding:.55rem .8rem .3rem;}
.swipe-stage .swipe-product-facts {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem;padding:.05rem .8rem .38rem;}
.swipe-product-facts>span {display:grid;gap:.08rem;align-content:start;min-width:0;overflow-wrap:anywhere;}
.swipe-product-facts small {color:#46594e;font-weight:500;font-size:.78rem;}
.swipe-product-facts strong {color:#193a29;font-size:.92rem;line-height:1.3;}
.swipe-stage .swipe-details-label {display:block;padding:.2rem .8rem .5rem;text-decoration:underline;color:#214d3c;font-size:.85rem;font-weight:650;}
.swipe-details-label::after {content:' ›';}
[dir=rtl] .swipe-details-label::after {content:' ‹';}
.showroom-dialog .showroom-save-current:not([hidden]) {display:inline-block;min-height:44px;max-width:100%;padding:.4rem .8rem;margin:.3rem 0 .6rem;border:1px solid #285341;border-radius:.45rem;background:white;color:#214633;font:inherit;font-weight:650;cursor:pointer;}
.showroom-dialog .showroom-save-current[aria-pressed=true] {background:#e0eee4;}
.showroom-dialog .showroom-save-current:focus-visible {outline:3px solid #3373a3;outline-offset:2px;}
@media(max-height:740px) {
 .swipe-stage img {height:clamp(140px,29dvh,220px);}
}
