/* A real modal outside cart rows: chips and quantity are drafts until Confirm. */
.hc-variation-sheet-layer { position: fixed; inset: var(--hc-sheet-visible-top, 0px) 0 var(--hc-sheet-visible-bottom, 0px); z-index: 100100; display: flex; align-items: flex-end; justify-content: center; color: #30343a; font-family: inherit; }
.hc-sheet-backdrop { position: absolute; inset: 0; background: rgb(0 0 0 / 44%); }
.hc-variation-sheet { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 620px; max-height: calc(100vh - 16px); max-height: min(calc(var(--hc-sheet-visible-height, 100dvh) - 16px), 780px); margin: 0; padding: 0; border-radius: 14px 14px 0 0; background: #fff; box-shadow: 0 -8px 36px #0002; overflow: hidden; }
.hc-variation-sheet * { box-sizing: border-box; }
.hc-sheet-header { display: flex; flex: 0 0 auto; align-items: flex-end; gap: 14px; position: relative; min-width: 0; padding: 18px 54px 16px 18px; border-bottom: 1px solid #ececef; }
.hc-sheet-image { display: block; width: 88px; height: 88px; flex: 0 0 88px; border-radius: 5px; object-fit: contain; background: #f6f6f7; }
.hc-sheet-image[hidden], .hc-sheet-price-unit[hidden] { display: none; }
.hc-sheet-heading { min-width: 0; }
.hc-sheet-heading h2 { margin: 0 0 8px; padding: 0; color: #30343a; font-size: 14px; line-height: 1.4; font-weight: 500; overflow-wrap: anywhere; }
.hc-sheet-price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; color: #cd000f; }
.hc-sheet-price { font-size: 24px; line-height: 1.2; font-weight: 600; overflow-wrap: anywhere; }
.hc-sheet-price-unit, .hc-sheet-stock { color: #858b93; font-size: 12px; line-height: 1.4; font-weight: 400; }
.hc-sheet-stock { margin: 4px 0 0; }
.hc-sheet-close { position: absolute; top: 10px; right: 10px; display: flex; align-items: center; justify-content: center; width: 36px; min-width: 36px; height: 36px; padding: 0; border: 0; border-radius: 0; background: transparent; color: #777f89; font-size: 30px; font-weight: 300; line-height: 1; cursor: pointer; }
.hc-sheet-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.hc-sheet-options fieldset { min-width: 0; margin: 0; padding: 18px; border: 0; border-bottom: 1px solid #ececef; }
.hc-sheet-options legend { float: left; width: 100%; margin: 0 0 12px; padding: 0; font-size: 15px; font-weight: 500; line-height: 1.4; }
.hc-sheet-choices { clear: both; display: flex; flex-wrap: wrap; gap: 10px; }
.hc-sheet-choices button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; max-width: 100%; min-height: 42px; margin: 0; padding: 8px 12px; border: 1px solid transparent; border-radius: 5px; background: #f4f4f5; color: #626870; font-family: inherit; font-size: 13px; font-weight: 400; line-height: 1.35; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.hc-sheet-choices button[aria-pressed=true] { border-color: #cd000f; color: #cd000f; background: #fff; }
.hc-sheet-choices button:disabled { opacity: .42; cursor: not-allowed; }
.hc-sheet-choices img { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 2px; object-fit: contain; }
.hc-sheet-quantity-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px; }
.hc-sheet-quantity-row > label { font-size: 15px; }
.hc-sheet-quantity-controls { display: grid; grid-template-columns: 40px minmax(48px, 76px) 40px; align-items: center; }
.hc-sheet-quantity-controls button, .hc-sheet-quantity { min-width: 0; height: 40px; margin: 0; padding: 0; border: 1px solid #dce0e5; border-radius: 0; background: #fff; color: #30343a; font-size: 18px; line-height: 1.3; text-align: center; box-shadow: none; }
.hc-sheet-quantity { width: 100%; border-left: 0; border-right: 0; font-size: 16px; appearance: textfield; -moz-appearance: textfield; }
.hc-sheet-quantity::-webkit-inner-spin-button, .hc-sheet-quantity::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.hc-sheet-quantity-controls button:disabled { opacity: .4; cursor: default; }
.hc-sheet-status { margin: 0; padding: 0 18px 12px; color: #68717d; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.hc-sheet-status:empty { display: none; }
.hc-sheet-status[role=alert] { color: #b52138; }
.hc-sheet-footer { flex: 0 0 auto; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid #ececef; background: #fff; }
.hc-sheet-confirm { display: block; width: 100%; min-height: 46px; margin: 0; padding: 10px 16px; border: 0; border-radius: 5px; background: #cd000f; color: #fff; font-family: inherit; font-size: 15px; font-weight: 500; line-height: 1.4; cursor: pointer; }
.hc-sheet-confirm:disabled { opacity: .45; cursor: not-allowed; }
.hc-variation-sheet :focus-visible { outline: 2px solid #cd000f; outline-offset: 2px; }
.hc-sheet-confirm:focus-visible { outline-offset: -4px; outline-color: #ffca36; }
@media (max-height: 450px) {
 .hc-variation-sheet { max-height: calc(100vh - 8px); max-height: calc(100dvh - 8px); overflow-y: auto; }
 .hc-sheet-scroll { flex: 0 0 auto; min-height: 96px; overflow: visible; }
 .hc-sheet-header { padding-block: 12px; }
 .hc-sheet-image { width: 64px; height: 64px; flex-basis: 64px; }
}
.hc-variation-sheet-layer[data-short=true] .hc-variation-sheet { max-height: calc(var(--hc-sheet-visible-height) - 8px); overflow-y: auto; }
.hc-variation-sheet-layer[data-short=true] .hc-sheet-scroll { flex: 0 0 auto; min-height: 96px; overflow: visible; }
.hc-variation-sheet-layer[data-short=true] .hc-sheet-header { padding-block: 12px; }
.hc-variation-sheet-layer[data-short=true] .hc-sheet-image { width: 64px; height: 64px; flex-basis: 64px; }

/* Reference rows on phones/touch tablets: name, chip + quantity, then price,
   all inside the vertical bounds of the single square image. */
@media (max-width: 767px), (any-pointer: coarse) {
 #hc-selectable-cart .hc-cart-row { --hc-cart-image-size: 97px; }
 #hc-selectable-cart .hc-cart-details { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 18px 36px minmax(22px, 1fr); gap: 4px 6px; height: 97px; min-height: 97px; }
 #hc-selectable-cart .hc-cart-product-copy, #hc-selectable-cart .hc-cart-item-bottom { display: contents; }
 #hc-selectable-cart .hc-cart-name { grid-column: 1 / -1; grid-row: 1; min-height: 0; padding: 0; font-size: 12px; line-height: 18px; font-weight: 400; }
 #hc-selectable-cart .hc-variation-editor { grid-column: 1; grid-row: 2; min-width: 0; margin: 0; align-self: center; }
 #hc-selectable-cart .hc-variation-toggle { width: 100%; max-width: 100%; min-height: 32px; height: 32px; margin: 0; padding: 4px 6px; gap: 4px; border: 1px solid #e2e4e7; font-size: 11px; line-height: 1.3; }
 #hc-selectable-cart .hc-cart-item-bottom .hc-qty-controls { grid-column: 2; grid-row: 2; align-self: center; justify-self: end; margin: 0; grid-template-columns: 26px minmax(24px, max(24px, calc(var(--hc-cart-qty-digits, 2) * 1ch + 4px))) 26px; font-size: 16px; }
 #hc-selectable-cart .hc-qty-controls button[data-qty-step] { width: 26px; min-width: 26px; height: 32px; min-height: 32px; border: 0; border-radius: 2px; font-size: 18px; }
 #hc-selectable-cart .hc-qty-controls .hc-item-qty { min-width: 24px; height: 32px; font-size: 16px !important; }
 #hc-selectable-cart .hc-cart-prices { grid-column: 1 / -1; grid-row: 3; align-self: end; min-height: 0; }
 #hc-selectable-cart .hc-cart-row:not(.is-selected) .hc-cart-prices { align-self: start; }
 #hc-selectable-cart .hc-unit-price { min-height: 0; font-size: 15px; line-height: 20px; font-weight: 500; }
 #hc-selectable-cart .hc-unit-price small { font-size: 9px; }
 #hc-selectable-cart .hc-cart-details > .hc-kept { grid-column: 1 / -1; grid-row: 3; align-self: end; margin: 0; font-size: 10px; line-height: 12px; }
 #hc-selectable-cart .hc-cart-price-note { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
 #hc-selectable-cart .hc-cart-details .variation { grid-column: 1; grid-row: 2; max-height: 36px; margin: 0; overflow-y: auto; font-size: 10px; }

 .hc-mini-cart .hc-mini-item { grid-template-columns: 97px minmax(0, 1fr) auto; grid-template-rows: 18px 36px 35px; gap: 4px 6px; padding: 8px 0 !important; }
 .hc-mini-cart .hc-mini-image { grid-column: 1; grid-row: 1 / 4; width: 97px; height: 97px; }
 .hc-mini-cart .hc-mini-details, .hc-mini-cart .hc-mini-item-bottom { display: contents; }
 .hc-mini-cart .hc-mini-name { grid-column: 2 / -1; grid-row: 1; font-size: 12px !important; line-height: 18px !important; }
 .hc-mini-cart .hc-variation-editor { grid-column: 2; grid-row: 2; min-width: 0; margin: 0; align-self: center; }
 .hc-mini-cart .hc-variation-toggle { width: 100%; max-width: 100%; min-height: 32px; height: 32px; padding: 4px 6px; gap: 4px; font-size: 11px; line-height: 1.3; }
 .hc-mini-cart .hc-mini-item-bottom .hc-qty-controls { grid-column: 3; grid-row: 2; align-self: center; justify-self: end; margin: 0; grid-template-columns: 26px minmax(24px, max(24px, calc(var(--hc-mini-qty-digits, 2) * 1ch + 4px))) 26px; font-size: 16px; }
 .hc-mini-cart .hc-mini-item-bottom .hc-qty-controls button[data-qty-step] { width: 26px; min-width: 26px; height: 32px; min-height: 32px; font-size: 18px; }
 .hc-mini-cart .hc-mini-item-bottom .hc-qty-controls .hc-item-qty { min-width: 24px; height: 32px; font-size: 16px !important; }
 .hc-mini-cart .hc-mini-item-bottom .hc-mini-price { grid-column: 2 / -1; grid-row: 3; align-self: end; padding-right: 44px; min-height: 0; }
 .hc-mini-cart .hc-mini-item:not(.is-selected) .hc-mini-price { align-self: start; }
 .hc-mini-cart .hc-mini-unit-price { font-size: 14px; line-height: 20px; }
 .hc-mini-cart .hc-mini-remove { position: static; grid-column: 3; grid-row: 3; align-self: end; justify-self: end; width: 40px; min-width: 40px; min-height: 28px; height: 28px; padding: 0; align-items: center; font-size: 10px; line-height: 18px; }
 .hc-mini-cart .hc-mini-details .hc-kept { grid-column: 2 / -1; grid-row: 3; align-self: end; margin: 0; font-size: 10px; line-height: 12px; }
 .hc-mini-cart .hc-mini-details .variation { grid-column: 2; grid-row: 2; margin: 0; max-height: 36px; overflow-y: auto; font-size: 10px; }
}
@media (max-width: 359px) {
 .hc-mini-cart .hc-mini-unit-price { font-size: 12px; }
}
