/* LYA v49: final responsive close marks, floating icon alignment, and desktop Gifts readability. */

/* Close actions retain their click behavior but display only the X mark. */
.offer-close,
.modal-close,
.lightbox-close,
.contact-card-close,
.lya-carousel-lightbox-close,
.crop-dialog-close,
.site-shell .member-offer.promotion-offer .offer-close,
.site-shell .feature-backdrop .modal-close,
.site-shell .media-lightbox .lightbox-close,
.site-shell .lya-contact-card .contact-card-close,
.site-shell .lya-carousel-lightbox .lya-carousel-lightbox-close,
.site-shell .crop-dialog .crop-dialog-close {
  box-sizing: content-box !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  display: inline-grid !important;
  place-items: center !important;
  line-height: 1 !important;
  color: #750000 !important;
}

.offer-close svg,
.modal-close svg,
.lightbox-close svg,
.contact-card-close svg,
.lya-carousel-lightbox-close svg,
.crop-dialog-close svg,
.site-shell .member-offer.promotion-offer .offer-close svg,
.site-shell .feature-backdrop .modal-close svg,
.site-shell .media-lightbox .lightbox-close svg,
.site-shell .lya-contact-card .contact-card-close svg,
.site-shell .lya-carousel-lightbox .lya-carousel-lightbox-close svg,
.site-shell .crop-dialog .crop-dialog-close svg {
  width: 20px !important;
  height: 20px !important;
  color: currentColor !important;
  stroke: currentColor !important;
}

/* The image/icon stays centered inside the existing floating button frames. */
.site-shell .shop-floating .floating-contact-logo,
.site-shell .shop-floating .floating-contact-logo:first-child,
.site-shell .shop-floating .floating-contact-logo:nth-child(2),
.site-shell .shop-floating .floating-contact-logo:nth-child(3) {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  padding: 0 !important;
  line-height: 1 !important;
  text-align: center !important;
  vertical-align: middle !important;
}

.site-shell .shop-floating .floating-contact-logo svg,
.site-shell .shop-floating .ask-button svg,
.site-shell .shop-floating .floating-bag svg {
  display: block !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  vertical-align: middle !important;
}

.site-shell .shop-floating .ask-button,
.site-shell .shop-floating .floating-bag {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  text-align: center !important;
  vertical-align: middle !important;
  gap: 8px !important;
}

/* PC only: hide Period Underwear size-guide text and image inside View details. */
@media (min-width: 851px) {
  #collective-lingerie .category-product .product-size-guide,
  #collective-lingerie .product-size-guide {
    display: none !important;
  }

  /* Use one spacious desktop column so every Gifts label and price stays readable. */
  #gifts .gift-options {
    width: 100% !important;
    max-width: 900px !important;
    grid-template-columns: minmax(0, 1fr) !important;
    column-gap: 0 !important;
    row-gap: 18px !important;
    align-items: stretch !important;
  }

  #gifts .gift-options > label,
  #gifts .gift-options > .gift-product-choice,
  #gifts .gift-options > .gift-product-choice > label {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    grid-column: 1 / -1 !important;
  }

  #gifts .gift-options > label,
  #gifts .gift-options > .gift-product-choice > label {
    display: grid !important;
    align-items: center !important;
    column-gap: 16px !important;
    padding: 12px 0 !important;
    min-height: 128px !important;
  }

  #gifts .gift-options > label {
    grid-template-columns: 18px 96px minmax(0, 1fr) auto !important;
  }

  #gifts .gift-options > .gift-product-choice > label {
    grid-template-columns: 18px 104px minmax(0, 1fr) auto !important;
    min-height: 146px !important;
  }

  #gifts .gift-options > label .gift-option-media {
    width: 96px !important;
    min-width: 96px !important;
    height: 104px !important;
  }

  #gifts .gift-options > .gift-product-choice .gift-product-media {
    width: 104px !important;
    min-width: 104px !important;
    height: 122px !important;
  }

  #gifts .gift-options > label > span,
  #gifts .gift-options > .gift-product-choice > label > span {
    min-width: 0 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    white-space: normal !important;
    line-height: 1.45 !important;
    text-align: left !important;
  }

  #gifts .gift-options > label > b,
  #gifts .gift-options > .gift-product-choice > label > b {
    justify-self: end !important;
    align-self: center !important;
    min-width: max-content !important;
    white-space: nowrap !important;
    text-align: right !important;
  }

  #gifts .gift-options > .gift-product-choice > label > span small {
    display: block !important;
    margin-top: 6px !important;
    line-height: 1.3 !important;
  }
}

/* Mobile keeps its existing Gifts arrangement and keeps Size guide available. */
@media (max-width: 850px) {
  .site-shell .gift-options > label > span,
  .site-shell .gift-options > .gift-product-choice > label > span {
    overflow-wrap: normal !important;
    word-break: normal !important;
    line-height: 1.4 !important;
  }

  .site-shell .shop-floating .floating-contact-logo,
  .site-shell .shop-floating .ask-button,
  .site-shell .shop-floating .floating-bag {
    align-items: center !important;
    justify-content: center !important;
  }
}
