/**
* Dossier UK Header Styles
* Section-specific header layout and announcement bar
*/

/* Hide Blocksy default header */
.ct-header,
header[data-id="type-1"],
#header,
.site-header,
[data-row="middle"],
[data-row="top"],
[data-row="bottom"] {
  display: none !important;
}

/* Sticky Header custom element */
sticky-header {
  display: block;
}

/* Section Header Container — sticky element (mirrors Shopify base.css) */
.section-header {
  position: sticky;
  top: 4.8rem;
  z-index: 4;
}

.section-header.menu-open {
  z-index: 6;
}

.index .section-header {
  top: 1rem;
}

.shopify-section-header-hidden {
  top: calc(-1 * var(--header-height));
}

.shopify-section-header-hidden.menu-open {
  top: 0;
}

.section-header.animate {
  transition: top 0.15s ease-out;
}

/* ---------------------------------
  Announcement Bar
--------------------------------- */
.announcement-bar-section {
  position: sticky;
  top: 0;
  z-index: 101;
}

.promo-announcement-bar {
  background-color: #000000;
  color: #ffffff;
  padding: 0;
}

.promo-announcement-bar-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  min-height: 4rem;
  padding: 0 2.4rem;
  gap: 1.5rem;
  position: relative;
  font-size: 1.4rem;
}

.announcement__progress-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.announcement__progress-bar.show {
  display: flex;
}

.promo-text {
  font-size: 1.3rem;
  line-height: 1.4;
}

.progress-bar .progress_bar__empty {
  display: none;
}

.progress-bar--empty .progress_bar__empty {
  display: block;
  text-align: center;
  position: relative;
}

.progress-bar__info {
  position: absolute;
  top: .8rem;
  right: -2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  background: #474747;
  color: #fff;
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1rem;
  cursor: pointer;
}

/* Progress Bar in Announcement */
.announcement__progress-bar .progress-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.announcement__progress-bar .progress-bar--empty .progress_bar__empty {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.announcement__progress-bar .progress-bar__container {
  display: flex;
  flex-direction: column;
}

.announcement__progress-bar .progress-bar__row {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  max-width: 28rem;
}

.progress-bar__column {
  flex: 0 0 25%;
  text-align: center;
  position: relative;
}

.progress-bar__column--primary {
  flex: 0 0 38%;
}

.progress-bar__column p {
  line-height: 1.1;
  color: #fff;
}

.progress-bar__content {
  display: flex;
  gap: 0.3rem;
  height: 0.5rem;
}

.progress-bar__content .progress {
  flex: 1;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  transition: background-color 0.3s ease;
}

.progress-bar__column::after {
  content: "";
  position: absolute;
  right: -0.5rem;
  top: 0;
  bottom: 0.5rem;
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.progress-bar__column--third::after {
  display: none;
}

.progress-bar__column:last-child::after {
  display: none;
}

/* Announcement bar grid placement */
.promo-announcement-bar-container .announcement__progress-bar {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  justify-content: center;
}

.delivery-cut-off-container {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
}

.delivery-cut-off-container p {
  margin-bottom: 0;
  font-size: 1.3rem;
}

/* Announcement Alert Section */
.announcement-alert {
  display: flex;
  grid-column: 3;
  grid-row: 1;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  margin-left: 2rem;
}

.announcement-alert .announcement-text {
  font-size: 1.3rem;
  margin: 0;
  cursor: pointer;
}

.promo-announcement-bar_sign-up-container {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.promo-announcement-bar_sign-up-container svg {
  width: 1.8rem;
  height: 1.6rem;
  fill: white;
}

.promo-announcement-bar_sign-up-container .button {
  background: transparent;
  border: 1px solid white;
  color: white;
  font-size: 1.1rem;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  cursor: pointer;
}

/* ---------------------------------
  Header Wrapper
--------------------------------- */
.header {
  display: grid;
  grid-template-areas: "left-icons heading icons";
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1rem 1.6rem;
  max-width: 100%;
  gap: 1rem;
}

/* Header Boxes */
.header__box {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header__box--left {
  grid-area: left-icons;
  justify-self: start;
}

.header__box--center {
  grid-area: heading;
  justify-self: center;
}

.header__box--right {
  grid-area: icons;
  justify-self: end;
  display: flex;
  justify-content: space-between;
  justify-self: flex-end;
  background-color: transparent;
  column-gap: .8rem;
}

/* AI Scent Finder Pill */
.header__box .AI-pill {
  display: flex;
  padding: 1rem 1.6rem 1rem 3.6rem;
  line-height: 1.4rem;
  background-color: #fff;
  border-radius: 2rem;
  position: relative;
  align-items: center;
}

.header__box .AI-pill a {
  text-transform: uppercase;
  text-decoration: none;
  font-size: 1.6rem;
}

.header__box .AI-pill img {
  position: absolute;
  left: .5rem;
  top: .5rem;
}

/* Right wrapper (About menu inside left box) */
.header__box--right-wrapper .header__submenu .header__submenu {
  padding: 0;
}

.header__box--right-wrapper .header__submenu .header__submenu .header__menu-item {
  padding: 1rem;
}

/* Logo */
.header__heading {
  margin: 0;
  line-height: 1;
}

.header__heading-link {
  display: block;
  text-decoration: none;
  color: #000;
}

.header__heading-link .h2 {
  font-family: "Founders Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 500;
  font-size: 2.4rem;
  margin: 0;
  text-transform: lowercase;
  letter-spacing: -0.02em;
}

.header__heading-logo {
  height: auto;
  max-width: 12rem;
  vertical-align: middle;
}

/* Bundle Pill */
.bundle-pill {
  background-color: #FAF4ED;
  border-radius: 2rem;
  padding: 0.6rem 1.4rem;
}

.bundle-pill a {
  color: #EF776A;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Scent Quiz pill */
.header__menu-item#HeaderMenu-scent-quiz {
  border-radius: 1.6rem;
  padding-right: 2rem;
}

.header__menu-item#HeaderMenu-scent-quiz:hover {
  color: #ef776a;
}

.header__menu-item#HeaderMenu-scent-quiz:hover span {
  text-decoration: none;
}

/* Header Icons */
.header__icons {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  height: 100%;
}

.header__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.header__icon svg {
  width: 2rem;
  height: 2rem;
}

.header__icon--cart {
  position: relative;
}

/* Search Button */
.header__icons-search-wrapper {
  display: flex;
  align-items: center;
  height: 100%;
}

.header__search {
  display: flex;
  align-items: center;
}

.header__search summary {
  list-style: none;
}

.header__search summary::-webkit-details-marker {
  display: none;
}

.header__icon--search {
  width: fit-content;
}

.modal__toggle {
  list-style-type: none;
}

.modal__toggle-close {
  display: none;
}

.modal__toggle-open {
  display: flex;
}

.header__icon--summary {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #000;
  border-radius: 2rem;
  padding: 0.4rem 0.5rem 0.4rem 1.2rem;
  height: 3.6rem;
  cursor: pointer;
  overflow: hidden;
}

.header__icon--summary > span {
  display: flex;
  align-items: center;
}

.header__search .open-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: 9.5rem;
  padding-right: 2.5rem;
  /* overflow: hidden; */
}

.search-text-btn {
  position: relative;
  overflow: hidden;
  letter-spacing: 0.042rem;
  font-size: 1.4rem;
  line-height: 1.6rem;
  color: #7A7A7A;
  margin-bottom: 0;
}

.search-text-btn::before {
  content: "";
  width: 100%;
  height: 100%;
  background-color: white;
  position: absolute;
  top: 0;
  left: 0%;
  transition: left 1s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 1s;
}

.header__icon .open-search_icon-search {
  position: absolute;
  right: calc(100% - 2.6rem);
  top: 50%;
  transform: translateY(-50%);
  transition: right 1s cubic-bezier(0.12, 0.49, 0, 0.72);
  height: 2.8rem;
  width: 2.8rem;
}

.header__icons-search-wrapper.activate-animation .open-search_icon-search {
  right: 0%;
}

.header__icons-search-wrapper.activate-animation .search-text-btn::before {
  left: 100%;
}

.header__icons-search-wrapper.no-animation .open-search_icon-search {
  right: 0%;
  transition: none;
}

.header__icons-search-wrapper.no-animation .search-text-btn::before {
  left: 100%;
  transition: none;
}

/* Mobile Drawer Toggle */
header-drawer {
  display: none;
}

/* ---------------------------------
  Mega Menu Navigation
--------------------------------- */
.header__inline-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.header-menu__item {
  position: relative;
}

.header-menu__item>a,
.header-menu__item>summary {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.3rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: inherit;
  padding: 0.5rem 0;
  cursor: pointer;
}

.header-menu__item>summary::marker,
.header-menu__item>summary::-webkit-details-marker {
  display: none;
}

.header-menu__item>summary .icon-caret {
  transition: transform 0.2s ease;
}

.header-menu__item[open]>summary .icon-caret {
  transform: rotate(180deg);
}

/* ---------------------------------
  Benefits Modal
--------------------------------- */
#benefits-modal {
  width: 75.8rem;
  height: 55rem;
  border: none;
  border-radius: 2rem;
  outline: none;
  box-shadow: none;
  padding: 0px;
  overflow: hidden;
  background: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

#benefits-modal::backdrop {
  background-color: #00000073;
}

#benefits-modal #close-dialog-modal {
  position: absolute;
  top: 1rem;
  right: 2.8rem;
  cursor: pointer;
  text-decoration: underline;
  font-size: 1.6rem;
  line-height: 2.8rem;
  text-transform: capitalize;
  z-index: 4;
  color: black;
}

.benefits-modal-data-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  height: 100%;
  background-color: #FAF6F0;
}

.benefits-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.benefits-modal-data-container .benefits-modal-data {
  position: relative;
  display: flex;
  flex-flow: column;
  justify-content: center;
  gap: 1.6rem;
  max-width: 34.5rem;
  width: 100%;
  height: 100%;
  background-color: transparent;
  margin: 0 1.6rem;
  z-index: 2;
}

.benefits-modal-data-heading {
  font-weight: 400;
  letter-spacing: 0.02em;
  font-size: 35px;
  line-height: 30px;
  background: #fff;
  width: 100%;
  padding: 1rem 0;
  border-radius: 2rem;
}

.benefits-modal-data-content.center {
  background: #FAF6F0;
  padding: 2rem 0 1rem;
  border-radius: 2rem;
  width: 100%;
}

.benefits-modal-data-content .free-shipping-text.center {
  font-weight: 500;
  color: #ef776a;
  margin-top: 1.2rem;
}

.benefits-modal-data-content p {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.6rem;
  color: #212121;
  margin-bottom: .4rem;
}

.benefits-modal-data-content p:last-child {
  margin-bottom: 0;
}

.benefits-modal-data-content strong {
  font-weight: 500;
  background: #ebdfcf;
  padding: .5rem 1rem .5rem;
  border-radius: 2rem;
  min-width: 12.2rem;
}

.benefits-modal-data-content .discount-message {
  display: flex;
  align-items: center;
  gap: .4rem;
  background-color: #f1e9dd;
  border-radius: 2rem;
  font-size: 1.2rem;
  line-height: 1.2rem;
  padding: .2rem .8rem;
  letter-spacing: .24px;
  text-align: left;
  max-width: 24rem;
  width: 100%;
  margin: .8rem auto 1rem;
}

.benefits-modal-data-footer {
  display: flex;
  flex-flow: column;
  gap: .7rem;
  width: 100%;
}

.benefits-modal-data-footer .button {
  width: 100%;
  max-width: 100%;
  color: #fff;
  outline: none;
}

.benefits-modal-data-footer .button:hover {
  background-color: #FFFFFF;
  border: 1px solid #EF776A;
  color: #EF776A;
}

.benefits-modal-data-footer .discount-message {
  font-size: 1.2rem;
  line-height: 1.2em;
  letter-spacing: .24px;
  color: black;
  text-align: center;
}

.benefits-modal-data-footer .discount-message a {
  text-decoration: underline;
  color: black;
}

@media (min-width: 801px) {
  .benefits-modal-data-container .benefits-modal-image {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
  }
}

@media screen and (max-width: 800px) {

  .progress-bar__info {
    letter-spacing: -0.1rem;
  }
  
  #benefits-modal {
    height: auto;
    margin: auto auto 0;
    width: 100%;
    max-width: 50rem;
    top: auto;
    bottom: 0;
    left: 0;
    transform: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    height: 53rem;
  }

  #benefits-modal #close-dialog-modal {
    top: 1rem;
    right: 2rem;
    color: black;
  }

  .benefits-modal-image img {
    object-position: center top;
    position: absolute;
    left: 0;
    top: 0;
  }

  .benefits-modal-data-container {
    flex-direction: column;
    justify-content: flex-end;
  }

  .benefits-modal-data-container .benefits-modal-data {
    justify-content: flex-end;
    align-items: center;
    padding: 1.6rem 1.6rem 2.4rem;
    margin: 0;
    width: 100%;
    max-width: 100%;
  }

  .benefits-modal-data-footer .button {
    margin-bottom: 0;
    width: 100%;
    max-width: none;
  }
}
/* End of: Benefits Modal */

/* ---------------------------------
  Responsive
--------------------------------- */
@media screen and (max-width: 1023px) {
  .section-header {
    top: 10rem; /* below bottom island */
  }

  .shopify-section-header-hidden {
    top: 10rem;
  }

  header-drawer {
    display: block;
  }

  .header__inline-menu,
  .bundle-pill,
  .header__box--right-wrapper,
  .header__box .AI-pill {
    display: none;
  }

  .menu-drawer__body .AI-pill {
    margin: 0 2rem 2.4rem;
    background-color: rgba(250, 246, 240, 1);
    border-radius: 10rem;
    padding: .4rem;
    display: flex;
    gap: 1rem;
  }

  .menu-drawer__body .AI-pill a {
    text-decoration: none;
  }

  .header {
    grid-template-columns: auto 1fr auto;
  }

  .header__heading-logo {
    max-width: 9rem;
  }

  .header__search > details > summary {
    display: none;
  }

  .promo-announcement-bar-container {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0.4rem 1.6rem;
  }

  .promo-announcement-bar-container .announcement__progress-bar {
    grid-column: 1;
    width: 100%;
    justify-content: center;
  }

  .delivery-cut-off-container,
  .announcement-alert {
    display: none;
  }

  .benefits-modal-image .d-content {
    display: none;
  }

  .benefits-modal-image .m-content {
    display: block;
  }
}

@media screen and (min-width: 1024px) {
  .header {
    padding: .8rem 1.6rem 2rem;
  }

  .header__heading-logo {
    max-width: 14rem;
  }
}

/* Visually hidden utility */
.visually-hidden {
  position: absolute !important;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  word-wrap: normal !important;
}

[id^="Details-HeaderSubMenu-"] > summary {
  pointer-events: none;
  cursor: default;
}

[id^="Details-HeaderSubMenu-"] > summary .icon-caret {
  display: none;
}