/** Shopify CDN: Minification failed

Line 1224:3 Cannot use type selector "--gift" directly after nesting selector "&"
Line 1594:3 Cannot use type selector "--total" directly after nesting selector "&"

**/
/* Cart Item Styles - Updated to match image */
.cart-item {
  background: var(--background_color);
  color: var(--primary_text);
  border-radius: 0;
  margin-bottom: 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--secondary_grey);
}

.cart-item:last-child {
  border-bottom: none;
}

/* Giftbox items have different styling */
.cart-item[data-item-type="giftbox"] {
  background: var(--background_color_2);
}

.cart-item__row {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  position: relative;
}

/* Giftbox items get extra padding */
.cart-item[data-item-type="giftbox"] .cart-item__row {
  padding: .75rem;
}

.cart-item[data-item-type="giftbox"] .cart-item__image,
.cart-item[data-item-type="giftbox"] .cart-item__image-container{
  width: 30px;
}

.cart-item[data-item-type="giftbox"] .cart-item__info-block{
  grid-column: span 3;
}

.cart-item[data-item-type="giftbox"] .cart-item__price-qty-delete{
  grid-column: span 1;
}

/* Quantity text in giftbox title */
.cart-item__quantity-text {
  margin-left: 0.5rem;
}

.cart-item__image {
  flex-shrink: 0;
  width: 58px;
}

/* Base image container */
.cart-item__image-container {
  width: 58px;
  border-radius: 4px;
  overflow: hidden;
}

.cart-item__main-row{
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.cart-items{
  padding: 0 0 1rem;
  margin: 1rem 1.5rem;
  border-bottom: 1px solid var(--secondary_grey);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item__info-block{
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.cart-item__info {
  flex: 1;
  min-width: 200px;
}

.cart-item__properties{
  display: flex;
  flex-direction: column;
  gap: .25rem;

  color: var(--primary_grey);
}

.cart-item__title-link{
  color: var(--primary_text);

}

.cart-item__title{
  max-width: 90%;
}


.pm__quantity {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.25rem;
  max-width: 90px;
  padding: 0.15625rem 0.25rem;

  background-color: var(--background_color);
  color: var(--primary_text);

  border: 1px solid var(--secondary_grey);
  border-radius: 0.25rem;
}

.pm__quantity-input {
  appearance: none;
  border: none;
  background-color: transparent;
  width: 1.5rem;
  padding: 0;

  color: var(--primary_text);
  flex-shrink: 1;
  text-align: center;
  font-size: 0.875rem !important;
}


.pm__quantity-button {
  display: flex;
  align-items: center;
  justify-content: center;
 color: var(--primary_text);
  border: 1px solid var(--secondary_grey);
  border-radius: 0.25rem;

  width: 1.25rem;
  height: 1.25rem;

  cursor: pointer;
  flex-shrink: 0;
}
/* Bow information styles within giftbox items */
.cart-item__bow-info,
.cart-item__bow-detail {
  font-size: 14px;
  color: var(--primary_accent);
  margin: 2px 0;
  line-height: 1.2;
  font-style: italic;
}

.cart-item__bow-detail {
  color: var(--primary_grey);
  font-size: 13px;
  margin-left: 8px;
}

.cart-item__price-block{
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: .125rem;
}

.cart-item__price--secondary {
  color: var(--primary_grey);
}

.cart-item__price-qty-delete{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}


.pm__quantity-button:hover {
  background-color: var(--secondary_grey);
  color: var(--primary_text);
}

/* Giftbox quantity display (read-only) */
.cart-item__quantity-display {
  display: flex;
  align-items: center;
  height: 36px;
  min-width: 122px; /* Match quantity controls width */
  justify-content: center;
}

.giftbox-qty {
  font-size: 14px;
  color: var(--primary_grey);
  font-style: italic;
}

.qty-btn {
  background: var(--background_color_2);
  border: none;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  color: var(--primary_grey);
  transition: background-color 0.2s ease;
}

.qty-btn:hover {
  background: var(--secondary_grey);
}

.qty-input {
  border: none;
  width: 50px;
  height: 36px;
  text-align: center;
  font-size: 16px;
  background: var(--background_color);
  color: var(--primary_text);
}

.qty-input:focus {
  outline: none;
}

.cart-item__unit-price {
  min-width: 100px;
  text-align: center;
  font-size: 16px;
  color: var(--primary_text);
}

.cart-item__total-price {
  min-width: 100px;
  text-align: right;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary_text);
}

.cart-item__original-price {
  font-size: 14px;
  color: var(--primary_grey);
  text-decoration: line-through;
  font-weight: normal;
}

.cart-item__remove {
  display: flex;
}

.cart-item__remove:hover {
  background: var(--background_color_2);
  color: var(--primary_text);
}

/* Style the trash icon SVG */
.cart-item__remove svg {
  width: 16px;
  height: 16px;
}

.cart-item__remove:hover svg {
  stroke: var(--primary_text);
}

.cart-item__remove svg path {
  stroke: var(--primary_text);
}


/* Edit Delivery Options Link */
.cart-item__edit-link {
  margin-top: 0.375rem;

}

.edit-delivery-btn {
  background: none;
  border: none;
  color: var(--primary_text);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.edit-delivery-btn:hover {
  color: var(--primary_text);
  text-decoration: none;
}



.delivery-group__items {
  padding: 0;
}

.delivery-group__items .cart-item {
  border-bottom: 1px solid var(--secondary_grey);
  margin: 0;
}

.delivery-group__items .cart-item:last-child {
  border-bottom: none;
}


/* Cart Subtotal Section */
.cart-subtotal {
  width: 100%;
  border-radius: 0.25rem 0.25rem 0 0;
  padding: 1rem 1.5rem;
  margin-bottom: 0;
  border: 1px solid var(--background_color_2);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Discount Rows in Cart Totals */

.cart-totals{
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-bottom: 0;
  margin-inline: 0;
  border-bottom: none;
}


.cart-totals__value.cart-totals__value--discount {
  color: var(--primary_text);
}

/* Cart updating state */
.cart-container--updating {
  position: relative;
  pointer-events: none;
}

.cart-container__loader {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: color-mix(in srgb, var(--background_color) 70%, transparent);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 0.25rem;
}

.cart-container__loader-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--background_color);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--primary_text) 10%, transparent);
}

.cart-container__spinner {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-container__spinner svg {
  width: 100%;
  height: 100%;
  animation: cart-container-spin 1s linear infinite;
}

.cart-container__spinner svg circle {
  stroke: var(--primary_text);
  stroke-linecap: round;
  stroke-dasharray: 80, 120;
  stroke-dashoffset: 0;
  animation: cart-container-dash 1.5s ease-in-out infinite;
}

.cart-container__loader-text {
  font-size: 0.875rem;
  color: var(--primary_text);
  white-space: nowrap;
}

@keyframes cart-container-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes cart-container-dash {
  0% {
    stroke-dasharray: 1, 120;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 80, 120;
    stroke-dashoffset: -30;
  }
  100% {
    stroke-dasharray: 80, 120;
    stroke-dashoffset: -110;
  }
}

/* Qliro error state */
.cart-qliro__error {
  text-align: center;
  padding: 1rem;
  background: var(--background_color_2);
  border-radius: 4px;
  border: 1px solid var(--secondary_grey);
}

.cart-qliro__refresh-btn {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--button-bg);
  color: var(--button-content);
  border: 1px solid var(--button-border);
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.cart-qliro__refresh-btn:hover {
  opacity: 0.9;
}

/* Cart Totals */


.cart-totals__row {
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.cart-totals__label {
  color: var(--primary_text);
  display: flex;
  flex-direction: column;
  gap: 0.25rem
}

.cart-totals__value {
  color: var(--primary_text);
  font-weight: inherit;
}

/* Qliro Checkout */
.cart-qliro,
#qliro-checkout-container {
  margin: 0;
  padding: 0 1.5rem;
  min-height: 6rem;
  scroll-margin-top: 1.5rem;
}

.cart-qliro__loading {
  text-align: center;
  color: var(--primary_grey);
  font-style: italic;
  margin: 0;
}

/* While an open checkout is updated, only "Updating checkout..." shows. The widget is collapsed,
   not removed: it must stay attached to keep the customer's input and receive the update. */
#qliro-checkout-container.is-updating #qliro-root {
  height: 0;
  overflow: hidden;
  visibility: hidden;
}

.cart-header{
  padding: 1.5rem 1.5rem 0 1.5rem;
  margin-bottom: 0;
  display: flex;
  gap: .5rem;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
}

.cart-count{
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 1rem;
  height: 1rem;
  border-radius: .125rem;
  background-color: var(--secondary_grey);
  padding: 0 0.125rem;
  color: var(--primary_accent);
  line-height: 1;
}

.delivery-group {
  border-bottom: 1px solid var(--secondary_grey);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.delivery-group:last-child{
  border-bottom: none;
  margin-bottom: 0;
}


.delivery-group__items:has(.cart-item + .cart-item) > .cart-item:first-child {
    border-bottom: none;
  margin-bottom: 0.5rem;
}


.cart-item__giftbox .cart-item__main-row {
  gap: 0.5rem;
  align-items: baseline;
  flex: 1;
  flex-direction: row;
}

.cart-item__giftbox {
  border-radius: 0.25rem;
}

.cart-item__giftbox .cart-item__main-row .cart-item__info-block {
  flex: 1;
}


.cart-item__price-qty-delete > dl{
  margin-left: auto;
}

.pm__quantity-input  {
  pointer-events: none;
  user-select: none;
}

/* Empty Cart State */
.cart__empty {
  text-align: center;
  padding-block: 1.5rem;
}
.cart__empty-text {
  margin-bottom: 0.5rem;
}
.cart__empty-button {
  min-width: 148px;
  width: fit-content;
  margin: 0 auto;
}

.cart__empty .cart-subtotal{
  margin-top: 2.5rem;
}


.cart-drawer__shipping{
  padding: 1rem 1.5rem 0 1.5rem;
  display: block;
}

.cart-drawer__shipping-text {
  color: var(--primary_accent);
}

cart-items {
  display: block;
  background-color: var(--background_color);
  margin-bottom: 3rem;
}

.cart-container {
  position: relative;
}

.cart-item__title-delete-block {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: flex-start;
}

.cart-drawer__shipping-progress{
  border-radius: 1.5rem;
  overflow: hidden;
  height: 0.375rem;
  border: 1px solid var(--secondary_grey);
  margin-top: 0.625rem;
}

.cart-drawer__shipping-progress-bar  {
  background-color: var(--primary_text);
  height: 100%;
  transition: width 0.3s ease;
  border-radius: 1.5rem;
}

#cart-discount-code {
  border-radius: .25rem;
}

.cart-title,
.cart__empty-text {
  color: var(--primary_text);
}

@media screen and (min-width: 1025px) {
  .cart__empty {
    text-align: center;
    padding-block: .5rem;
  }

  .cart__empty .cart-subtotal{
    margin-top: 4.5rem;
  }
  

  .delivery-group {
    border-bottom: 1px solid var(--secondary_grey);
    padding-bottom: 1.5625rem;
    margin-bottom: 0;
  }

  .cart-items {
    padding: 0 0 1.5625rem;
    margin-top: 1.5rem;
    margin-right: 0;
    margin-bottom: 3rem;
    margin-left: 0;
    border-bottom: 1px solid var(--secondary_grey);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .cart-items > .cart-item {
    border-bottom: 1px solid var(--secondary_grey);
    padding-bottom: 1.5625rem;
    margin-bottom: 0;
  }

  .cart-items > .cart-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }


  .cart-item__main-row{
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    align-items: flex-start;

    width: 100%;
  }

  .cart-container{
    max-width: 888px;
    margin: 0 auto;
    position: relative;
  }

  .cart-totals__label {
  gap: 1rem;
  flex-direction: row;
}

  .cart-totals__row {
  align-items: center;
}

  .cart-item__remove{
    position: relative;
    top: unset;
    right: unset;
    margin-top: .875rem;
  }

  .cart-item__price-qty-delete{
    width: 100%;
    margin-top: 0;
    grid-column: span 3;
    align-items: flex-start;
  }

  .cart-item__price-qty-delete > div {
    width: 33%;
    display: flex;
    justify-content: center;
    align-items: center;

  }
  .cart-item__price-qty-delete > dl{
    justify-content: flex-end;
    width: 33%;
    display: flex;
  }

  .cart-drawer__shipping{
  margin-bottom: 2.375rem;
  padding: 0;
}


.cart-drawer__shipping-progress{
  margin-top: 0.5rem;
}

.cart-totals{
  padding-bottom: 0;
  margin-inline: unset;
  border-bottom: none;
}

  .cart-header{
    padding: 2rem 0 0;
    margin-bottom: 0;
  }

  .cart-item[data-item-type=giftbox] .cart-item__row{
    padding: 1rem;
  }

  .cart-item__image,
  .cart-item__image-container{
    width: 80px;
  }

  .cart-item__edit-link {
  margin-top: 1.25rem;

}

.cart-subtotal {
  border-radius: 0.25rem;
  border: 1px solid var(--background_color_2);
  padding: 1rem 1.5rem;
  margin-bottom: 3rem;
}

  .cart-item[data-item-type=giftbox] .cart-item__image,
  .cart-item[data-item-type=giftbox] .cart-item__image, .cart-item[data-item-type=giftbox] .cart-item__image-container{
    width: 44px;
  }

  .cde {
    max-width: 45rem;
    margin-left: auto;
    margin-right: auto;
    padding: 3rem 1.5rem 6rem;
  }

  .cart-qliro,
  #qliro-checkout-container {
    padding: 0;
  }

  .cde__title {
    margin: 0 0 1.5rem;
  }

  .cde__tab-name {
    white-space: nowrap;
  }

  .cde__radio {
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
  }

}

/* ============================================================
   Gift Message Button (per cart item)
   ============================================================ */
.cart-item__gift-message {
  margin-top: 0;
}

.cart-item__gift-message-btn {
  background: none;
  border: none;
  border-bottom: 1px solid var(--primary_text);
  padding: 0 0 1px;
  cursor: pointer;
  color: var(--primary_text);

  &:hover {
    opacity: 0.7;
  }
}

/* ============================================================
   Gift Message Popup — Figma 25046:10111 / 25038:23768
   Uses global Popup + exchangeOverlay. Desktop 708×514 / 708×568.
   Mobile height 505px. Tabs desktop width 514px.
   ============================================================ */
.Popup.popup-footer-attached.gift-message-popup {
  height: 31.5625rem;
  max-height: calc(var(--viewport-height) - 3rem);
  padding: 1.5625rem;
  gap: 1rem;
  overflow: hidden;
}

.Popup.gift-message-popup[aria-hidden="false"] {
  display: flex;
}

.gift-message-popup .popup__mobile-drag-handle {
  margin: -1.5625rem -1.5625rem 0;
  flex-shrink: 0;
}

.gift-message-popup__title {
  margin: 0;
  padding-right: 2.5rem;
  color: var(--primary_text);
  flex-shrink: 0;
}

.gift-message-popup .close-button svg {
  width: 1rem;
  height: 1rem;
}

.gift-message-popup.popup-footer-attached .popup-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  gap: 1rem;
}

.gift-message-popup__inner.popup-content__inner {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding-bottom: 0;
  gap: 1rem;

  /* .field-label is a floating label sitting 10px above its field, and overflow:auto clips
     at the padding box — without room here the first label is cut in half. */
  padding-top: 0.75rem;
}

.gift-message-popup__multi {
  flex-shrink: 0;
  width: 100%;

  &[hidden] {
    display: none;
  }
}

.gift-message-popup__tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.gift-message-popup__tabs {
  display: flex;
  align-items: stretch;
  flex: 1 1 auto;
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;

  &::-webkit-scrollbar {
    display: none;
  }
}

.gift-message-popup__tab {
  position: relative;
  flex-shrink: 0;
  padding: 0.5rem 1.5rem 0.5625rem 1.25rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--primary_grey);
  color: var(--primary_grey);
  cursor: pointer;
  white-space: nowrap;
  opacity: 0.8;
  transition: color 200ms ease, opacity 200ms ease;

  &:hover,
  &:focus-visible,
  &.is-active,
  &[aria-selected="true"] {
    color: var(--primary_text);
    opacity: 1;
  }

  &::before {
    content: "";
    position: absolute;
    left: 0.5rem;
    top: 50%;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: transparent;
    opacity: 0;
    transform: translateY(-50%) scale(0.6);
    transform-origin: center;
    transition: background-color 200ms ease, opacity 200ms ease, transform 200ms ease;
  }

  &::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1px;
    width: 100%;
    background: var(--primary_text);
    transform-origin: left center;
    transform: scaleX(0);
    opacity: 0;
    transition: transform 200ms ease, opacity 200ms ease;
  }

  &.is-active::before,
  &[aria-selected="true"]::before {
    background-color: var(--secondary_accent);
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }

  &.is-active::after,
  &[aria-selected="true"]::after {
    transform: scaleX(1);
    opacity: 1;
  }
}

.gift-message-popup__text-btn {
  flex-shrink: 0;
  margin-left: auto;
  background: none;
  border: none;
  border-bottom: 1px solid var(--primary_text);
  padding: 0 0 1px;
  cursor: pointer;
  color: var(--primary_text);
  white-space: nowrap;

  &[disabled] {
    color: var(--secondary_grey);
    border-bottom-color: var(--secondary_grey);
    cursor: default;
  }
}

.gift-message-popup__nav .gift-message-popup__text-btn {
  margin-left: 0;
}

.gift-message-popup__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.gift-message-popup__field.field {
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  align-items: stretch;
}

.gift-message-popup__textarea {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 8rem;
  resize: none;
  overflow-y: auto;
  padding-bottom: 2rem;
}

.gift-message-popup__field .gift-message-popup__textarea.input-placeholder {
  display: block;
}

.gift-message-popup__required {
  color: var(--alert_error);
}

.gift-message-popup__char-count {
  position: absolute;
  right: 1rem;
  bottom: 0.75rem;
  margin: 0;
  color: var(--primary_grey);
  text-align: right;
  pointer-events: none;
}

.gift-message-popup__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  width: 100%;

  &[hidden] {
    display: none;
  }
}

.gift-message-popup__nav-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.gift-message-popup__step {
  color: var(--primary_grey);
}

.gift-message-popup.popup-footer-attached .gift-message-popup__footer {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  flex-shrink: 0;
  width: 100%;
  margin-top: 0;

  .Button {
    flex: 1 0 0;
    min-width: 0;
    height: 2.625rem;
    width: auto;
  }
}

.gift-message-popup__save.Button--PrimaryOnDark[disabled] {
  background-color: var(--secondary_grey);
  border-color: var(--secondary_grey);
}

.gift-message-popup__save.Button--PrimaryOnDark[disabled] .ButtonText {
  color: var(--primary_grey);
}

@media (min-width: 1025px) {
  .Popup.popup-footer-attached.gift-message-popup {
    width: 44.25rem;
    max-width: 44.25rem;
    height: 32.125rem;
    max-height: none;
  }

  .Popup.popup-footer-attached.gift-message-popup.gift-message-popup--multi {
    height: 35.5rem;
  }

  .gift-message-popup__tabs {
    flex: 0 1 32.125rem;
    max-width: 32.125rem;
  }

  .gift-message-popup.popup-footer-attached .gift-message-popup__footer {
    gap: 1.5rem;
  }
}

/* ============================================================
   Cart Delivery Experience (cde) — matches Figma 24895:194746
   ============================================================ */

/* Outer wrapper */
.cde {
  width: 100%;
  max-width: 45rem;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem 1rem 3rem;
}

.cde__title {
  margin: 0 0 1rem;
}

.cde__box {
  width: 100%;
  border: 1px solid var(--secondary_grey);
  overflow: hidden;
  background: var(--background_color);
}

/* ── Tab bar ──────────────────────────────────────────────── */
.cde__tablist {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--background_color_2);
  border-bottom: 1px solid var(--secondary_grey);
}

.cde__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 1rem;
  background: none;
  border: none;
  border-right: 1px solid var(--secondary_grey);
  cursor: pointer;
  text-align: center;
  transition: background 200ms ease;

  &:last-child {
    border-right: none;
  }

  &.is-active {
    background: var(--primary_accent);

    .cde__tab-name {
      color: var(--secondary_text);
    }

    .cde__tab-price {
      color: var(--secondary_text);
      opacity: 0.92;
    }
  }
}

.cde__tab-name {
  color: var(--primary_text);
  white-space: normal;
  hyphens: manual;
  overflow-wrap: break-word;
}

.cde__tab:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cde__tab-price {
  color: var(--primary_grey);

  &.cde__tab-price--green {
    color: var(--alert_success);

    .cde__tab.is-active & {
      color: var(--secondary_text);
    }
  }
}

/* ── Panels ───────────────────────────────────────────────── */
.cde__panel {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  width: 100%;

  &.is-active {
    display: flex;
  }

  &--gift {
    gap: 1.5rem;
  }
}

/* ── Radio (delivery option + speed option) ───────────────── */
.cde__radio {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--secondary_grey);
  border-radius: 0.25rem;
  cursor: pointer;
  transition: border-color 200ms ease;

  &.is-selected,
  &:has(.cde__radio-input:checked) {
    border-color: var(--primary_accent);
  }
}

.cde__radio-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.cde__radio-dot {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 2px solid var(--secondary_grey);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 200ms ease;

  .cde__radio.is-selected &,
  .cde__radio:has(.cde__radio-input:checked) & {
    border-color: var(--primary_accent);
  }
}

.cde__radio-dot-inner {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--primary_accent);
  opacity: 0;
  transition: opacity 200ms ease;

  .cde__radio.is-selected &,
  .cde__radio:has(.cde__radio-input:checked) & {
    opacity: 1;
  }
}

.cde__radio-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.cde__radio-name {
  color: var(--primary_text);
}

.cde__radio-desc {
  color: var(--primary_grey);
}

.cde__radio-price {
  flex-shrink: 0;
  color: var(--primary_text);
}

/* ── Section helpers ──────────────────────────────────────── */
.cde__section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  padding-top: 1rem; /* Figma: title wrappers get pt 16 on top of panel gap */
}

.cde__section-title {
  margin: 0;
  color: var(--primary_text);
}

.cde__section-desc {
  margin: 0;
  color: var(--primary_grey);
}

.cde__free {
  color: var(--alert_success) !important;
}

.cde__speed-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

/* ── Hero image ───────────────────────────────────────────── */
.cde__hero-image {
  width: 100%;
  border-radius: 0.25rem;
  overflow: hidden;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}

/* ── Address section ──────────────────────────────────────── */
/* One recipient block shared by all tabs; spaced like the section it used to sit in directly */
.cde__recipient {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.cde__address-callout {
  background: var(--background_color_2);
  border-radius: 0.25rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;

  &[hidden] {
    display: none;
  }
}

.cde__address-note {
  margin: 0;
  color: var(--primary_grey);
  text-align: center;
}

/* ── Recipient fields (outside callout) ───────────────────── */
/* .field is a flex row and .input-validation is absolutely positioned just below it, so the
   error otherwise lands on top of the first-name label. Reserve room for it instead. */
.cde__recipient-fields .field:has([data-recipient-field-error][aria-hidden='false']) {
  margin-bottom: 1rem;
}

.cde__recipient-fields,
.cde__postal-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;

  &[hidden] {
    display: none;
  }
}

.cde__recipient-fields {
  margin-top: 0.25rem;
}

.cde__field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* Reuse the voucher form controls without altering the recipient grid above them. */
.cde__schedule {
  margin-top: 0.25rem; /* existing 12px form gap + 4px = 16px below the names */
  width: 100%;
}

.cde__schedule[hidden],
.cde__schedule [hidden] {
  display: none !important;
}

/* The shared stylesheet loads after this file and keeps popup-specific spacing. */
.cde__recipient-fields .cde__schedule .schedule-toggle {
  margin-top: 0;
  padding: 0;
}

.cde__schedule .schedule-toggle label {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.cde__schedule .delivery__datetime {
  margin-top: 16px;
  width: 100%;
  height: 42px;
  min-height: 42px;
  border: 1px solid var(--secondary_grey);
  border-radius: 4px;
}

.cde__schedule .field-label {
  font-size: 12px;
  line-height: 18px;
}

.cde__schedule .datetime-input-wrapper {
  width: 100%;
  min-width: 0;
  height: 40px;
}

.cde__schedule .datetime-input-wrapper .input-placeholder {
  padding: 0 44px 0 16px;
  width: 100%;
  min-width: 0;
  font-size: 16px;
  line-height: 22px;
}

.cde__recipient-fields .cde__schedule .datetime-placeholder[aria-hidden="true"] {
  display: flex;
  pointer-events: none;
  background: var(--background_color);
  left: 16px;
  width: calc(100% - 60px);
  font-size: 16px;
  line-height: 22px;
}

.cde__recipient-fields .cde__schedule .cde__schedule-calendar[aria-hidden="true"] {
  display: flex;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.cde__schedule input::-webkit-calendar-picker-indicator {
  position: absolute;
  right: 16px;
  width: 20px;
  height: 20px;
  opacity: 0;
  cursor: pointer;
}

.cde__schedule-help {
  margin: 8px 0 0;
  color: var(--primary_grey);
}

/* A translated error can wrap to several lines; keep it in normal flow above the help. */
.cde__schedule .cde__schedule-error {
  position: static;
  margin: 4px 0 0;
  color: var(--alert_error);
  line-height: 1.125rem;
}

/* ── Outline button ───────────────────────────────────────── */
.cde__outline-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.625rem;
  padding: 0 1.5rem;
  border: 1px solid var(--primary_grey);
  border-radius: 0.25rem;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary_text);
  white-space: nowrap;
  align-self: center;
  transition: border-color 200ms ease;

  &:disabled {
    border-color: var(--secondary_grey);
    color: var(--secondary_grey);
    cursor: default;
  }

  &:hover {
    border-color: var(--primary_accent);
  }

  &:disabled {
    cursor: default;
    pointer-events: none;
  }
}

/* ── Subtotal ─────────────────────────────────────────────── */
.cde__subtotal {
  border-top: 1px solid var(--secondary_grey);
  border-bottom: 1px solid var(--secondary_grey);
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Discount code + applied codes at the top of the summary (moved in from the old cart summary) */
/* Discount code, then what is being bought (experiences / gift cards) */
.cde__summary-top {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;

  .collapsible-form {
    margin-bottom: 0.25rem; /* + the 0.5rem gap ≈ the design's 12px under the button */
  }
}

.cde__summary-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;

  &[hidden] {
    display: none;
  }
}

.cde__subtotal-row.cde__summary-item {
  align-items: flex-start;
  gap: 0.75rem;

  [data-summary-title] {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  [data-summary-value] {
    flex-shrink: 0;
    white-space: nowrap;
  }
}

/* Applied discounts, then the cart subtotal */
.cde__summary-total {
  /* Only takes space once a discount or gift card is applied (it is display:none until then) */
  #cart-applied-codes {
    margin-bottom: 0.5rem;
  }
}

.cde__subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--primary_text);

  &--total {
    margin-top: 0;
  }

  &[hidden] {
    display: none;
  }
}

/* ── Disclaimer ───────────────────────────────────────────── */
.cde__disclaimer {
  display: flex;
  gap: 0.5rem;        /* 8px */
  align-items: flex-start;
  background: var(--background_color_2);
  border: 1px solid var(--secondary_grey);
  border-radius: 0.25rem;   /* 4px */
  padding: 1.0625rem;       /* 17px */

  /* Line up with .cde__panel: .cde is 45rem wide with 1rem of side padding, so the
     panel's outer edge sits at 43rem. */
  width: 100%;
  max-width: 43rem;
  margin-inline: auto;

  /* display:flex above outranks the UA [hidden] rule, so the checkout-blocked
     notice would never hide without this. */
  &[hidden] {
    display: none;
  }
}

/* This one is rendered outside .cde, so it has to reproduce that container's side inset
   itself or it runs edge to edge on a narrow screen while the panel stays inset. */
.cde__disclaimer[data-checkout-blocked] {
  width: auto;
  margin-inline: max(1rem, (100% - 43rem) / 2);
}

.cde__disclaimer-icon {
  flex-shrink: 0;
  width: 1rem;         /* 16px */
  height: 1rem;        /* 16px */
  background: var(--primary_accent);
  border-radius: 0.5rem;   /* 8px — matches Figma exactly */
  color: var(--secondary_text);
  font-size: 0.6875rem;    /* 11px */
  font-weight: 800;
  font-family: 'Noto Sans', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  line-height: 1;
}

.cde__disclaimer .u-p3 {
  color: var(--primary_grey);
  font-size: 0.875rem;     /* 14px */
  line-height: 1.25rem;    /* 20px */
  font-weight: 400;
}

/* ── Carousel (Swiper) ────────────────────────────────────── */
.cde-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.cde-carousel .swiper-slide {
  height: auto;
}

.cde-card {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  cursor: pointer;
  border: 1px solid var(--secondary_grey);
  border-radius: 0.25rem;
  overflow: visible;
  padding: 1rem;
  background: var(--background_color);
  transition: border-color 200ms ease, box-shadow 200ms ease;
  height: 100%;
  box-sizing: border-box;

  &.is-selected {
    border-color: var(--primary_accent);
    box-shadow: 0 0.5rem 1.25rem color-mix(in srgb, var(--primary_text) 7%, transparent);
  }
}

.cde-card--unavailable {
  opacity: 0.5;
  pointer-events: none;
}

.cde-card__input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.cde-card__image {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 0.5rem;
  overflow: hidden;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.cde-card__name {
  color: var(--primary_text);
}

.cde-card__price {
  color: var(--primary_text);
}

.cde-carousel__arrow {
  position: absolute;
  top: 50%;
  margin-top: 0;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  background: var(--background_color);
  border: 1px solid var(--secondary_grey);
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: opacity 200ms ease, visibility 200ms ease;
  padding: 0;
  color: var(--primary_text);
}

/* Explicit sides — beat Swiper default .swiper-button-prev/next */
.cde-carousel .cde-carousel__arrow--prev,
.cde-carousel .cde-carousel__arrow.swiper-button-prev {
  left: 0.75rem; /* 12px */
  right: auto;
}

.cde-carousel .cde-carousel__arrow--next,
.cde-carousel .cde-carousel__arrow.swiper-button-next {
  right: 0.75rem; /* 12px */
  left: auto;
}

.cde-carousel .cde-carousel__arrow svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
  flex-shrink: 0;
}

/* Hide when no more slides in that direction (or not enough slides to scroll) */
.cde-carousel .cde-carousel__arrow.swiper-button-disabled,
.cde-carousel .cde-carousel__arrow.swiper-button-lock,
.cde-carousel .cde-carousel__arrow.swiper-button-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Kill Swiper's default arrow ::after chevrons */
.cde-carousel .cde-carousel__arrow::after {
  content: none;
}

.cde-carousel__dots,
.cde-carousel .swiper-pagination {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  bottom: auto !important;
}

.cde-carousel .swiper-pagination-bullet {
  width: 0.25rem;
  height: 0.25rem;
  background: var(--secondary_grey);
  opacity: 1;
  margin: 0 !important;
  border-radius: 0.5rem;
}

.cde-carousel .swiper-pagination-bullet-active {
  width: 0.375rem;
  height: 0.375rem;
  background: var(--primary_grey);
}

/* ── Giftbox panel ────────────────────────────────────────── */
.cde-giftbox {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.cde-giftbox__section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.cde-giftbox__carousel-block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.cde-giftbox__step {
  display: none;
  width: 100%;

  &.is-active {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  &[hidden] {
    display: none;
  }
}

.cde-giftbox__checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--background_color_2);
  border-radius: 0.25rem;
  cursor: pointer;
  color: var(--primary_text);

  & .u-s2 {
    flex: 1 1 auto;
  }
}

.cde-giftbox__checkbox-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cde-giftbox__checkbox-input:focus-visible + .cde-giftbox__checkbox-visual {
  outline: 0.125rem solid var(--primary_accent);
  outline-offset: 0.125rem;
  border-radius: 0.125rem;
}

.cde-giftbox__checkbox-visual {
  position: relative;
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.cde-giftbox__checkbox-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
}

.cde-giftbox__checkbox-icon svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}

.cde-giftbox__checkbox-icon--on,
.cde-giftbox__checkbox-input:checked + .cde-giftbox__checkbox-visual .cde-giftbox__checkbox-icon--off {
  display: none;
}

.cde-giftbox__checkbox-input:checked + .cde-giftbox__checkbox-visual .cde-giftbox__checkbox-icon--on {
  display: flex;
}

.cde-giftbox__footer {
  display: flex;
  gap: 1.5rem;
  align-items: center;

  .cde__outline-btn,
  .Button {
    flex: 1 0 0;
    align-self: stretch;
  }

  [hidden] {
    display: none !important;
  }
}

.cde__empty {
  color: var(--primary_grey);
  text-align: center;
  padding: 1rem;
}

/* ── Continue to payment nav ─────────────────────────────── */
.cart-payment-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  width: 100%;
  margin: 0;
}

.cart-payment-nav__back {
  flex: 1 0 0;
  height: 2.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--primary_grey);
  border-radius: 0.25rem;
  color: var(--primary_text);
  cursor: pointer;
  padding: 0 1.53125rem;
  white-space: nowrap;
}

.cart-payment-nav__continue {
  flex: 1 0 0;
}

/* ── Single-item gift message nudge ──────────────────────── */
.cart-gift-nudge {
  width: 100%;
}

.cart-gift-nudge__text {
  flex: 1 0 0;
  min-width: 0;
  color: var(--primary_grey);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 400;
  margin: 0;
}

.cart-gift-nudge__btn {
  flex-shrink: 0;
  background: none;
  border: none;
  border-bottom: 1px solid var(--primary_text);
  color: var(--primary_text);
  padding: 0 0 1px;
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.75rem;
  line-height: 1.125rem;
  font-weight: 500;
}

@media screen and (max-width: 1024px) {
  .cart-subtotal .collapsible-form {
    margin-left: 0;
  }

  cart-items .collapsible-form {
    width: fit-content;
    max-width: 100%;
  }

  .cde__title.u-s1 {
    font-size: 1rem;
    line-height: 1.375rem;
  }

  .cde__tab {
    min-height: 4.125rem;
    padding: 0.25rem 0.5rem;
  }

  .cde__tab-name.u-s2,
  .cde__tab-price.u-s3 {
    font-size: 0.75rem;
    line-height: 1.125rem;
  }

  .cde__panel {
    padding: 1rem;
    gap: 1rem;
  }

  .cde__panel--gift {
    gap: 1rem;
  }

  .cde__section {
    padding-top: 0.5rem;
    gap: 0.5rem;
  }

  .cde__section-title,
  .cde__radio-name {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }

  .cde__section-desc,
  .cde__radio-desc,
  .cde__address-note,
  .cde__disclaimer .u-p3 {
    font-size: 0.75rem;
    line-height: 1.125rem;
  }

  .cde__radio-price.cde__free {
    font-size: 0.75rem;
    line-height: 1.125rem;
  }

  .cde__radio-dot {
    margin-top: 0.125rem;
  }

  .cde__hero-image {
    aspect-ratio: 626 / 200;
  }

  .cde__speed-options {
    gap: 0.5rem;
  }

  .cde__field-row {
    grid-template-columns: 1fr;
  }

  .cde-carousel__arrow {
    display: none;
  }

  .cde-giftbox,
  .cde-giftbox__section,
  .cde-giftbox__carousel-block {
    gap: 1rem;
  }

  .cde-giftbox__footer,
  .cart-payment-nav {
    gap: 1rem;
  }

  .cde-giftbox__checkbox-row .u-s2 {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }

  .cde__disclaimer {
    padding: 0.5625rem 1.0625rem;
  }

  .cart-gift-nudge {
    flex-wrap: wrap;
  }

  .gift-message-popup__tabs {
    width: auto;
  }

  .gift-message-popup__text-btn {
    margin-left: 0;
  }
}



