/* Shared Captain Cookie header and footer */

:root {
  --font-heading: var(--cc-font-heading, "Fredoka", sans-serif);
  --font-body: var(--cc-font-body, "Nunito Sans", sans-serif);
}

/* Shared editable-image placeholder used by designed page sections. */
.image-slot {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px dashed rgba(8, 45, 104, .18);
  color: rgba(8, 45, 104, .36);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.2px;
}

.page-with-shared-chrome {
  padding-top: 116px;
}

.cookie-header,
.captain-footer {
  font-family: var(--font-body);
}

.cookie-header button,
.cookie-header a,
.captain-footer button,
.captain-footer a,
.captain-footer input {
  font-family: inherit;
}

.cookie-header {
  position: absolute;
  top: 16px;
  left: 50%;
  z-index: 60;
  width: min(1220px, calc(100% - 44px));
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 22px 8px 30px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.96);
  box-shadow:
    0 15px 45px rgba(0, 49, 101, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateX(-50%);
}

.cookie-header > * {
  position: relative;
  z-index: 2;
}

.cookie-logo {
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  min-width: 220px;
  height: 64px;
  color: #06275f;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
}

.cookie-logo img {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 2;
  width: 250px;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
  margin-top: 17px;
  transform: translate(-50%, -48%);
  pointer-events: none;
}

.cookie-logo-fallback {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #06275f;
  line-height: 0.84;
  text-transform: uppercase;
}

.cookie-logo-fallback strong {
  display: block;
  font-size: 27px;
  font-weight: 950;
  letter-spacing: 0;
}

.cookie-logo-word {
  display: flex;
  align-items: center;
  margin-top: 2px;
  font-size: 26px;
  font-weight: 950;
  letter-spacing: 0;
}

.cookie-logo-cookie {
  position: relative;
  display: inline-block;
  width: 23px;
  height: 23px;
  margin: 0 1px;
  border: 2px solid #7b3918;
  border-radius: 50%;
  background: #d58a2a;
  box-shadow: inset -4px -4px 0 rgba(82, 35, 13, 0.22);
  transform: translateY(2px);
}

.cookie-logo-cookie::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #4b2313;
  box-shadow:
    9px 3px 0 #4b2313,
    5px 11px 0 #4b2313;
}

.cookie-logo-tagline {
  margin-top: 8px;
  font-size: 7px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.35px;
  white-space: nowrap;
}

.cookie-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4.1vw, 58px);
  margin-inline: auto;
}

.cookie-navigation a {
  font-family: var(--font-body);
  position: relative;
  display: inline-block;
  color: #071b47;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.25px;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.25s ease;
}

.cookie-navigation a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: #ff7617;
  pointer-events: none;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.cookie-navigation a:hover {
  color: #ff7617;
}

.cookie-navigation a:hover::after,
.cookie-navigation a.is-active::after,
.cookie-navigation .current-menu-item > a::after,
.cookie-navigation .current_page_item > a::after,
.cookie-navigation a[aria-current="page"]::after {
  transform: translateX(-50%) scaleX(1);
}

.cookie-header-icons {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 28px;
}

.cookie-icon-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #071b47;
  text-decoration: none;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.cookie-icon-button:hover {
  color: #ff7617;
  transform: translateY(-2px);
}

.cookie-icon-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cookie-cart-count {
  position: absolute;
  top: -8px;
  right: -9px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border: 2px solid #fffaf1;
  border-radius: 50%;
  background: #ffc900;
  color: #071b47;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.cookie-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #071b47;
  cursor: pointer;
}

.cookie-mobile-toggle svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.captain-bottom-section {
  position: relative;
  width: 100%;
  overflow: visible;
  background:
    radial-gradient(circle at 50% 0%, #fffef9 0%, #fff9eb 55%, #fff3dd 100%);
  color: #06275f;
}

.captain-bottom-section--footer-only {
  margin-top: 28px;
  padding: 0 0 18px;
}

.captain-footer {
  position: relative;
  z-index: 5;
  width: min(1340px, calc(100% - 24px));
  margin: -2px auto 0;
  padding: 26px 30px 14px;
  border: 3px solid #052657;
  border-radius: 28px 28px 12px 12px;
  background:
    radial-gradient(circle at 80% 20%, rgba(26, 93, 164, 0.55), transparent 38%),
    linear-gradient(135deg, #073a79 0%, #06336d 42%, #041f50 100%);
  color: #ffffff;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.16),
    0 -8px 25px rgba(6, 39, 95, 0.12);
  overflow: hidden;
}

.captain-footer::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px dashed rgba(255, 255, 255, 0.45);
  border-radius: 27px 27px 9px 9px;
  pointer-events: none;
}

.captain-footer-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.45fr 1fr 1fr 1.2fr 1fr 1.35fr 1.9fr;
  gap: 22px;
  align-items: start;
}

.captain-footer-plane {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 2px;
  color: #ffffff;
  font-size: 39px;
  opacity: 0.95;
  transform: rotate(-18deg);
}

.captain-footer-column {
  min-width: 0;
}

.captain-footer-column .captain-widget {
  margin: 0;
}

.captain-footer-column .captain-widget + .captain-widget {
  margin-top: 14px;
}

.captain-footer-column:not(.captain-footer-contact) {
  padding-right: 18px;
  border-right: 1px dashed rgba(255, 255, 255, 0.32);
}

.captain-footer-column h3,
.captain-footer-newsletter h3 {
  margin: 0 0 10px;
  color: #ffca16;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.2;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.captain-footer-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.captain-footer-column li {
  position: relative;
  margin-bottom: 7px;
  padding-left: 15px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.42;
}

.captain-footer-column:not(.captain-footer-contact) li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffca16;
}

.captain-footer-column a {
  color: inherit;
  text-decoration: none;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.captain-footer-column a:hover {
  color: #ffca16;
}

.captain-footer h3,
.captain-footer p,
.captain-footer a,
.captain-footer li,
.captain-footer input,
.captain-footer button {
  font-family: var(--font-body);
}

.captain-footer-contact {
  padding-right: 10px;
}

.captain-footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding-left: 0;
}

.captain-footer-contact-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  color: #ffca16;
  font-size: 15px;
}

.captain-footer-newsletter {
  position: relative;
  padding-left: 5px;
  padding-right: 10px;
}

.captain-footer-newsletter p {
  max-width: 270px;
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.captain-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.captain-newsletter-input-wrap {
  display: block;
  width: 100%;
}

.captain-newsletter-form input {
  width: 100%;
  height: 34px;
  padding: 0 17px;
  border: 3px solid rgba(6, 39, 95, 0.2);
  border-radius: 999px;
  outline: none;
  background: #ffffff;
  color: #06275f;
  box-shadow: inset 0 2px 5px rgba(6, 39, 95, 0.1);
  font-size: 13px;
  font-weight: 600;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.captain-newsletter-form input:focus {
  border-color: #ffca16;
  box-shadow: 0 0 0 4px rgba(255, 202, 22, 0.18);
}

.captain-newsletter-form button {
  width: auto;
  min-width: 138px;
  height: 34px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd632, #ffb900);
  color: #06275f;
  box-shadow: 0 5px 0 rgba(188, 127, 0, 0.25);
  cursor: pointer;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.3px;
  white-space: nowrap;
  text-transform: uppercase;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.captain-newsletter-form button:hover {
  box-shadow: 0 7px 0 rgba(188, 127, 0, 0.25);
  transform: translateY(-2px);
}

.captain-newsletter-form button span {
  flex-shrink: 0;
  font-size: 21px;
  line-height: 1;
}

.captain-footer-stamp {
  position: absolute;
  top: -5px;
  right: -6px;
  width: 78px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(72, 174, 210, 0.4);
  border-radius: 50%;
  color: rgba(72, 174, 210, 0.6);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
  pointer-events: none;
  transform: rotate(12deg);
}

.captain-footer-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.25);
}

.captain-footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  font-weight: 600;
}

.captain-footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.captain-footer-bottom-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.captain-footer-bottom-links a:hover {
  color: #ffca16;
}

.captain-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

@media screen and (max-width: 1200px) {
  .cookie-navigation {
    gap: 25px;
  }

  .cookie-navigation a {
    font-size: 14px;
  }

  .cookie-header-icons {
    gap: 13px;
    margin-left: 20px;
  }

  .captain-footer-inner {
    grid-template-columns: 0.35fr repeat(3, 1fr) 1fr 1.2fr;
  }

  .captain-footer-column:nth-of-type(4) {
    display: none;
  }

  .captain-footer-newsletter {
    grid-column: span 2;
  }
}

@media screen and (max-width: 900px) {
  .captain-footer {
    width: calc(100% - 18px);
    padding: 45px 30px 20px;
    border-radius: 28px 28px 12px 12px;
  }

  .captain-footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px 25px;
  }

  .captain-footer-plane {
    display: none;
  }

  .captain-footer-column:nth-of-type(4) {
    display: block;
  }

  .captain-footer-column:not(.captain-footer-contact) {
    padding-right: 0;
    border-right: 0;
  }

  .captain-footer-newsletter {
    grid-column: 1 / -1;
    max-width: 500px;
  }
}

@media screen and (max-width: 820px) {
  .page-with-shared-chrome {
    padding-top: 92px;
  }

  .cookie-header {
    top: 14px;
    width: calc(100% - 24px);
    min-height: 64px;
    padding: 7px 10px 7px 20px;
  }

  .cookie-logo {
    justify-content: flex-start;
    width: 145px;
    min-width: 145px;
    height: 46px;
    font-size: 19px;
  }

  .cookie-logo img {
    width: 118px;
    margin-top: 0;
    transform: translate(-50%, -50%);
  }

  .cookie-logo-fallback strong {
    font-size: 22px;
  }

  .cookie-logo-word {
    font-size: 21px;
  }

  .cookie-logo-cookie {
    width: 19px;
    height: 19px;
  }

  .cookie-logo-tagline {
    margin-top: 6px;
    font-size: 6px;
  }

  .cookie-navigation {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 250, 241, 0.98);
    box-shadow: 0 18px 40px rgba(6, 39, 95, 0.15);
  }

  .cookie-navigation.is-open {
    display: flex;
  }

  .cookie-navigation a {
    padding: 14px 16px;
    border-radius: 13px;
    font-size: 14px;
  }

  .cookie-navigation a:hover {
    background: rgba(6, 39, 95, 0.06);
  }

  .cookie-navigation a::after {
    display: none;
  }

  .cookie-header-icons {
    gap: 8px;
    margin-left: auto;
  }

  .cookie-header-icons .account-icon {
    display: none;
  }

  .cookie-mobile-toggle {
    display: inline-flex;
  }
}

@media screen and (max-width: 600px) {
  .page-with-shared-chrome {
    padding-top: 84px;
  }

  .cookie-header {
    top: 12px;
    right: 10px;
    left: 10px;
    width: auto;
    min-height: 58px;
    padding: 7px 10px 7px 14px;
    border-radius: 999px;
    transform: none;
  }

  .cookie-logo {
    justify-content: center;
    width: 138px;
    min-width: 138px;
    height: 44px;
  }

  .cookie-logo img {
    width: 118px;
  }

  .cookie-icon-button {
    width: 30px;
    height: 30px;
  }

  .captain-footer {
    width: calc(100% - 10px);
    margin-top: -4px;
    padding: 36px 20px 18px;
    border-radius: 24px 24px 10px 10px;
  }

  .captain-footer::before {
    inset: 8px;
  }

  .captain-footer-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .captain-footer-column,
  .captain-footer-newsletter {
    padding-bottom: 18px;
    border-right: 0 !important;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.25);
    text-align: left;
  }

  .captain-footer-column h3,
  .captain-footer-newsletter h3 {
    margin-bottom: 12px;
    font-size: 18px;
  }

  .captain-footer-column li {
    margin-bottom: 9px;
    font-size: 15px;
  }

  .captain-footer-newsletter p {
    max-width: 100%;
    font-size: 14px;
  }

  .captain-newsletter-form input {
    height: 42px;
    font-size: 14px;
  }

  .captain-newsletter-form button {
    min-width: 144px;
    height: 38px;
    font-size: 13px;
  }

  .captain-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .captain-footer-bottom p,
  .captain-footer-bottom-links a {
    font-size: 13px;
  }
}

@media screen and (max-width: 480px) {
  .cookie-header-icons .search-icon {
    display: none;
  }
}

/* Non-home readability scale */
body.page-with-shared-chrome {
  font-size: 16px;
}

body.page-with-shared-chrome .cookie-navigation a {
  font-size: clamp(16px, 1.15vw, 18px);
}

body.page-with-shared-chrome main :where(p, li, label, input, select, textarea, small) {
  font-size: 16px;
  line-height: 1.55;
}

body.page-with-shared-chrome main :where(a, button) {
  font-size: 16px;
}

body.page-with-shared-chrome .captain-footer-column li,
body.page-with-shared-chrome .captain-footer-column a,
body.page-with-shared-chrome .captain-footer-newsletter p,
body.page-with-shared-chrome .captain-footer-bottom p,
body.page-with-shared-chrome .captain-footer-bottom-links a,
body.page-with-shared-chrome .captain-newsletter-form input {
  font-size: 16px;
  line-height: 1.45;
}

body.page-with-shared-chrome .captain-newsletter-form button {
  min-width: 150px;
  height: 40px;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

body.page-with-shared-chrome .captain-footer-column h3,
body.page-with-shared-chrome .captain-footer-newsletter h3 {
  font-size: 19px;
}

.captain-newsletter-status {
  min-height: 1.1em;
  margin: 0;
  color: #06275f;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}
