/* Shared language control and direction rules. Loaded after page styles so
   the same control behaves consistently on the landing and legal pages. */
.language {
  position: relative;
}

.language > button {
  border: 1px solid #e2eae7;
  border-radius: 24px;
  background: #fff;
  padding: 10px 14px;
  color: #243a63;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.language-globe,
.language-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.language-chevron {
  width: 14px;
  height: 14px;
  margin-left: -1px;
  flex: 0 0 14px;
}

.language-chevron svg {
  display: block;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.language > button:hover {
  background: #f5fbf9;
  border-color: #bde9dc;
}

.language > button[aria-expanded="true"] {
  border-color: #69cdb8;
  box-shadow: 0 0 0 3px #dff6ef;
}

.language-menu {
  display: none;
  right: 0;
  top: calc(100% + 8px);
  min-width: 152px;
  padding: 8px;
  background: #fff;
  border: 1px solid #e4ece8;
  border-radius: 8px;
  box-shadow: 0 12px 24px #1d38531f;
  position: absolute;
  z-index: 5;
}

.language-menu.open {
  display: block;
}

.language-menu button {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 9px 8px;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.language-menu button.selected,
.language-menu button[aria-checked="true"] {
  background: #e7f8f2;
  color: #167f70;
  font-weight: 800;
}

.site-language-actions {
  flex: 0 0 auto;
}

.site-language-actions .language > button {
  white-space: nowrap;
}

html[dir="rtl"] body {
  direction: rtl;
}

html[dir="rtl"] .language-menu {
  right: auto;
  left: 0;
}

html[dir="rtl"] .language-menu button {
  text-align: right;
}

html[dir="rtl"] .carousel {
  direction: ltr;
}

html[dir="rtl"] .phone {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .stores {
  direction: rtl;
}

.account-site-header {
  min-height: 72px;
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 16px 24px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #f8f6f1;
}

.account-site-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1f3557;
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

.account-site-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.account-site-brand b {
  color: #51bfa8;
}

@media (max-width: 640px) {
  .account-site-header {
    width: 100%;
    padding-inline: 18px;
  }
}

@media (max-width: 520px) {
  .site-language-actions {
    width: auto;
    margin-inline-start: auto;
  }

  .account-site-brand {
    font-size: 17px;
    gap: 6px;
  }

  .account-site-brand img {
    width: 30px;
    height: 30px;
  }
}

body[data-page="delete"] #root {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
}

body[data-page="delete"] {
  min-height: 100vh;
  background: #f8f6f1;
  display: flex;
  flex-direction: column;
}

body[data-page="delete"] .account-site-header {
  width: 100%;
  max-width: none;
  padding-inline: max(24px, calc((100vw - 1120px) / 2 + 24px));
}

body[data-page="delete"] #root > div {
  width: 100%;
  min-height: calc(100vh - 72px);
}

body[data-page="delete"] #root > div > div {
  width: 100% !important;
  max-width: none !important;
  min-height: 100% !important;
  margin: 0 !important;
  box-sizing: border-box;
}

@media (min-width: 960px) {
  body[data-page="delete"] #root > div > div > div {
    width: min(100%, 1040px) !important;
    max-width: 1040px !important;
    margin: 0 auto !important;
    box-sizing: border-box;
    justify-content: flex-start !important;
    padding-top: 56px !important;
    padding-bottom: 48px !important;
  }

  body[data-page="delete"] #root > div > div > div > div {
    width: 100% !important;
    max-width: 1040px !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 24px !important;
  }

  body[data-page="delete"] #root > div > div > div > div > div:nth-child(1) {
    flex: 1 1 360px !important;
    max-width: 420px !important;
    align-items: flex-start !important;
    text-align: left !important;
  }

  body[data-page="delete"] #root > div > div > div > div > div:nth-child(1) * {
    text-align: left !important;
  }

  body[data-page="delete"] #root > div > div > div > div > div:nth-child(2) {
    flex: 1 1 560px !important;
    width: auto !important;
  }

  body[data-page="delete"] #root > div > div > div > div > div:nth-child(3) {
    flex-basis: 100% !important;
  }
}

/* Shared site navigation. Keep the four frequent destinations in the header
   and present policy/account actions as a visible, right-aligned footer group. */
header.site-header {
  min-height: 92px;
  width: 100%;
  padding: 16px max(24px, 5%);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-direction: row;
  background: #fff;
  border-bottom: 1px solid #edf3f0;
}

.site-header .brand,
.site-header .site-brand,
.site-header .account-site-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  color: #20365f;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.site-header .brand img,
.site-header .site-brand img,
.site-header .account-site-brand img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.site-header .brand b,
.site-header .site-brand b,
.site-header .account-site-brand b {
  color: #51bfa8;
}

.site-primary-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 1 auto;
  flex-wrap: wrap;
}

.site-primary-nav a {
  box-sizing: border-box !important;
  min-height: 38px;
  padding: 8px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #172548;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.site-primary-nav a:hover,
.site-primary-nav a:focus-visible {
  background: #f0faf7;
  border-color: #c9eee4;
  color: #167f70;
}

.site-primary-nav a.active,
.site-primary-nav a[aria-current="page"] {
  margin-top: 0;
  background: #e7f8f2;
  border-color: #bde9dc;
  color: #167f70;
  font-weight: 800;
}

.site-header .site-language-actions {
  flex: 0 0 auto;
}

.site-footer {
  width: min(100%, 1120px);
  max-width: 1120px;
  margin: 54px auto 28px;
  padding: 0 24px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: #748195;
  font-size: 12px;
}

.legal-footer.site-footer {
  width: min(100%, 820px);
  max-width: 820px;
  margin: 0 auto 28px;
}

.site-secondary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  margin-inline-start: auto;
  text-align: end;
}

.site-footer-contact {
  color: #68778b;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  direction: ltr;
  unicode-bidi: isolate;
}

.site-footer-identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: max-content;
}

.site-footer-contact-label {
  font-weight: 750;
}

.site-footer-contact:hover,
.site-footer-contact:focus-visible {
  color: #167f70;
  text-decoration: underline;
  text-decoration-color: #7dcdbb;
  text-underline-offset: 3px;
}

.site-secondary-nav a {
  color: #68778b;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: #c7d8d3;
  text-underline-offset: 3px;
}

.site-secondary-nav a:hover,
.site-secondary-nav a:focus-visible,
.site-secondary-nav a[aria-current="page"] {
  color: #167f70;
  text-decoration-color: #7dcdbb;
}

.site-secondary-nav a[aria-current="page"] {
  font-weight: 800;
}

.account-site-header.site-header {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: max(24px, calc((100vw - 1120px) / 2 + 24px));
  background: #f8f6f1;
}

.account-site-footer.site-footer {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 16px max(24px, calc((100vw - 1120px) / 2 + 24px)) 24px;
  background: #f8f6f1;
}

html[dir="rtl"] .site-secondary-nav {
  text-align: start;
}

.legal-section a[href^="mailto:"] {
  direction: ltr;
  unicode-bidi: isolate;
  overflow-wrap: anywhere;
}

@media (max-width: 820px) {
  header.site-header,
  .account-site-header.site-header {
    height: auto;
    min-height: 0;
    padding: 16px 5%;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 16px;
  }

  .site-header .brand,
  .site-header .site-brand,
  .site-header .account-site-brand {
    font-size: 22px;
  }

  .site-header .brand img,
  .site-header .site-brand img,
  .site-header .account-site-brand img {
    width: 38px;
    height: 38px;
  }

  .site-header .site-primary-nav {
    order: 3;
    width: 100%;
    flex-basis: 100%;
    justify-content: center;
    gap: 7px;
  }

  .site-header .site-primary-nav a {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 13px;
  }

  .site-header .site-language-actions,
  .account-site-header .language {
    width: auto;
    margin-inline-start: auto;
  }

  .site-footer,
  .legal-footer.site-footer,
  .account-site-footer.site-footer {
    padding-inline: 5%;
  }
}

@media (max-width: 520px) {
  .site-header .language-menu {
    left: auto;
    right: 0;
  }

  .site-header .site-primary-nav {
    gap: 5px;
  }

  .site-header .site-primary-nav a {
    padding: 7px 8px;
    font-size: 12px;
  }

  .site-footer,
  .legal-footer.site-footer,
  .account-site-footer.site-footer {
    align-items: flex-end;
    gap: 10px;
    padding-inline: 18px;
  }

  .site-secondary-nav {
    width: 100%;
    gap: 10px;
    justify-content: flex-end;
    margin-inline-start: 0;
  }
}
