/*
 * Liscano Combos 1.5.5 — Responsive bottom sheet.
 * Displays the original WooCommerce combo builder on mobile and desktop; no duplicate checkout/cart.
 * The query-string fallback retains its existing presentation.
 */
.lcp-combo-sheet[hidden] { display: none !important; }
/* Shared sheet presentation at all viewport widths. */
@media all {
  .lcp-combo-sheet {
    position: fixed;
    inset: 0;
    z-index: 100040;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    height: 100%;
    height: 100dvh;
    margin: 0;
    padding: 0;
    isolation: isolate;
    font-family: var(--lco-font, 'Google Sans', system-ui, -apple-system, sans-serif);
    color: var(--lco-black, #151515);
  }
  .lcp-combo-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(13, 16, 19, .70);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }
  .lcp-combo-sheet-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(100%, 600px);
    height: min(94dvh, 900px);
    min-height: 320px;
    margin: 0;
    background: #fff;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -14px 64px rgba(0, 0, 0, .23);
    /* Don't use a persistent transform/overflow:hidden here: the existing
       size picker is a nested, position:fixed modal. */
  }
  .lcp-combo-sheet.is-visible .lcp-combo-sheet-backdrop {
    animation: lcp-combo-dim-in 260ms ease-out;
  }
  .lcp-combo-sheet.is-visible .lcp-combo-sheet-card {
    animation: lcp-combo-rise-in 330ms cubic-bezier(.19, .9, .24, 1);
  }
  .lcp-combo-sheet-header {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 85px;
    padding: 23px 18px 12px;
    border-radius: 24px 24px 0 0;
    border-bottom: 1px solid var(--lco-line, #e9e8e4);
    background: #fff;
    touch-action: pan-y;
  }
  .lcp-combo-sheet-handle {
    position: absolute;
    width: 46px;
    height: 5px;
    top: 9px;
    left: calc(50% - 23px);
    border-radius: 5px;
    background: #dadbdc;
  }
  .lcp-combo-sheet-heading { min-width: 0; }
  .lcp-combo-sheet-heading > span {
    display: block;
    margin-bottom: 2px;
    color: #777;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
  }
  .lcp-combo-sheet-heading h2 {
    margin: 0;
    font-size: clamp(23px, 6vw, 30px);
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1.15;
    color: var(--lco-black, #151515);
    text-transform: none;
  }
  .lcp-combo-sheet-close {
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 13px;
    border: 1px solid #e7e7e8;
    background: #f5f5f6;
    color: #151515;
    font-family: inherit;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
  }
  .lcp-combo-sheet-close:focus-visible,
  .lcp-combo-sheet a:focus-visible,
  .lcp-combo-sheet button:focus-visible {
    outline: 3px solid var(--lco-red, #be1a34);
    outline-offset: 2px;
  }
  .lcp-combo-sheet-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: #fff;
  }
  .lcp-combo-sheet-content { min-height: 100%; }
  .lcp-combo-sheet .lcp-wrap.lcp-builder {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 14px 16px 115px;
    border: 0;
    box-shadow: none;
    background: #fff;
  }
  .lcp-combo-sheet .lcp-breadcrumb { display: none !important; }
  .lcp-combo-sheet .lcp-builder-head {
    padding: 12px 13px;
    border-radius: 15px;
    background: #f7f7f7;
  }
  .lcp-combo-sheet .lcp-builder-promo { display: none !important; }
  .lcp-combo-sheet .lcp-builder-headline h2 {
    font-size: 24px;
    margin: 3px 0 5px;
  }
  .lcp-combo-sheet .lcp-builder-headline p {
    font-size: 12px;
    line-height: 1.45;
  }
  .lcp-combo-sheet .lcp-builder-price {
    margin-top: 8px;
  }
  .lcp-combo-sheet .lcp-builder-price strong { font-size: 22px; }
  .lcp-combo-sheet .lcp-steps {
    width: 100%;
    max-width: none;
    margin: 18px 0 17px;
  }
  .lcp-combo-sheet .lcp-section-heading { scroll-margin-top: 12px; }
  .lcp-combo-sheet .lcp-workspace { margin: 0; }
  .lcp-combo-sheet .lcp-product-section { min-width: 0; }
  .lcp-combo-sheet .lcp-products { gap: 10px; }
  .lcp-combo-sheet .lcp-product { min-width: 0; }
  .lcp-combo-sheet .lcp-sticky {
    /* Original footer CTA stays visible; the scroll area has room below it. */
    z-index: 100042;
  }
  .lcp-combo-sheet .lcp-review { padding-bottom: 12px; }
  .lcp-combo-sheet-loading,
  .lcp-combo-sheet-error {
    padding: 40px 23px;
    text-align: center;
    font-size: 15px;
    color: #5b5c60;
  }
  .lcp-combo-sheet-error h3 {
    margin: 0 0 8px;
    font-size: 21px;
    color: #151515;
    text-transform: none;
  }
  .lcp-combo-sheet-error p { margin: 8px 0 18px; }
  .lcp-combo-sheet-error a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 45px;
    padding: 12px 18px;
    border-radius: 12px;
    background: #151515;
    color: #fff;
    font-weight: 650;
    text-decoration: none;
  }
  /* Give the existing size modal priority over the builder sheet header. */
  .lcp-combo-sheet .lcp-wrap.lcp-builder:has(.lcp-sizes-panel:not([hidden])) {
    z-index: 100050;
  }
  .lcp-combo-sheet .lcp-sizes-panel { z-index: 100051; }
}
/* Desktop keeps the panel anchored to the bottom of the viewport,
   while exposing the original builder's multi-column layout. */
@media (min-width: 681px) {
  .lcp-combo-sheet-card {
    width: min(96vw, 1200px);
    height: min(92dvh, 950px);
    min-height: 500px;
    border-radius: 24px 24px 0 0;
  }
  .lcp-combo-sheet-header {
    min-height: 86px;
    padding: 22px clamp(24px, 3.4vw, 50px) 15px;
  }
  .lcp-combo-sheet-heading h2 { font-size: clamp(28px, 3vw, 36px); }
  .lcp-combo-sheet .lcp-wrap.lcp-builder {
    padding: 24px clamp(24px, 3.4vw, 48px) 45px;
  }
  .lcp-combo-sheet .lcp-builder-head {
    padding: 20px 24px;
    border-radius: 18px;
  }
  .lcp-combo-sheet .lcp-builder-headline h2 { font-size: clamp(28px, 2.7vw, 38px); }
  .lcp-combo-sheet .lcp-steps { margin: 24px 0; }
  .lcp-combo-sheet .lcp-products { gap: 14px; }
}
@media (min-width: 681px) and (max-width: 980px) {
  .lcp-combo-sheet-card { width: min(100%, 920px); height: 94dvh; }
}
@media (max-width: 380px) {
  .lcp-combo-sheet .lcp-wrap.lcp-builder { padding-inline: 10px; }
  .lcp-combo-sheet-header { padding-inline: 13px; }
}
@keyframes lcp-combo-rise-in {
  from { transform: translateY(100%); opacity: .6; }
  to { transform: none; opacity: 1; }
}
@keyframes lcp-combo-dim-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .lcp-combo-sheet.is-visible .lcp-combo-sheet-card,
  .lcp-combo-sheet.is-visible .lcp-combo-sheet-backdrop { animation: none !important; }
}
