/* Cookie consent banner
   Figma: 4109:38876 (1920) · 4109:38850 (1280) · 4109:38837 (720) · 4109:38863 (360)
*/

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  background:
    linear-gradient(
      0deg,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0.1) 14%
    ),
    #ffffff;
  border-top: 0.5px solid #6b7280;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: #1f2933;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner__inner {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
}

.cookie-banner__content {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.cookie-banner__heading {
  display: flex;
  align-items: flex-start;
  gap: 22px; /* icon 32 → text */
}

.cookie-banner__icon {
  flex-shrink: 0;
  display: block;
  width: 32px;
  height: 32px;
  margin-top: 0;
}

.cookie-banner__text {
  min-width: 0;
  flex: 1;
}

.cookie-banner__title {
  margin: 0;
  padding: 0;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0.02em;
  color: #1f2933;
  align-self: center;
}

.cookie-banner__desc {
  margin: 10px 0 0 calc(32px + 22px); /* align under title, not icon */
  padding: 0;
  font-family:
    "General Sans", Inter, "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: 0.02em;
  color: #1f2933;
}

.cookie-banner__desc a {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 700;
  color: #1f2933;
  text-decoration: none;
}

.cookie-banner__desc a:hover {
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.cookie-banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 120px;
  /* Neutralize .btn--border's min-width: 320px from components.css,
     which loads only on the main (segment-picker) home page. */
  min-width: 0;
  height: 43px;
  margin: 0;
  padding: 10px 13px;
  border-radius: 3px;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    opacity 0.15s ease;
}

.cookie-banner__btn:focus {
  outline: none;
}

.cookie-banner__btn--accept {
  border: 1px solid transparent;
  background: #1f2933;
  color: #ffffff;
}

.cookie-banner__btn--accept:hover {
  background: rgba(31, 41, 51, 0.7);
}

.cookie-banner__btn--accept:active {
  background: rgba(31, 41, 51, 0.9);
}

.cookie-banner__btn--accept:focus,
.cookie-banner__btn--accept:focus-visible {
  outline: none;
  background: #1f2933;
  border-color: #8f9499;
}

.cookie-banner__btn--accept:disabled {
  background: #1f2933;
  opacity: 0.5;
}

.cookie-banner__btn--cancel {
  border: 1px solid #8f9499;
  background: #ffffff;
  color: #1f2933;
  margin-left: 30px; /* Accept → Cancel */
}

.cookie-banner__btn--cancel:hover {
  background: #f3f4f6;
  color: #1f2933;
}

.cookie-banner__btn--cancel:active {
  background: #ededed;
  color: #1f2933;
}

.cookie-banner__btn--cancel:focus,
.cookie-banner__btn--cancel:focus-visible {
  outline: none;
  background: #ededed;
  border-color: #1f2933;
  color: #1f2933;
}

.cookie-banner__btn--cancel:disabled {
  background: #ffffff;
  border-color: #8f9499;
  opacity: 0.5;
}

.cookie-banner__customise {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0 26px; /* Cancel → Customise */
  padding: 0;
  min-height: 0; /* reset .btn--text's 42px from components.css */
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  color: #1f2933;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.cookie-banner__customise:hover {
  color: rgba(31, 41, 51, 0.7);
  text-decoration: none;
}

.cookie-banner__customise:active {
  color: rgba(31, 41, 51, 0.9);
}

.cookie-banner__customise:focus {
  outline: none;
}

.cookie-banner__customise:focus-visible {
  outline: none;
  color: rgba(31, 41, 51, 0.9);
  border-color: #1f2933;
}

/* ---------- 360 (default / ≤719) — Figma 4109:38863 · 360×273 ---------- */
.cookie-banner {
  height: 273px;
  min-height: 273px;
}

.cookie-banner__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 16px 24px 24px;
  gap: 0;
}

.cookie-banner__content {
  gap: 22px;
}

.cookie-banner__text {
  max-width: 245px;
}

@media (max-width: 719px) {
  .cookie-banner__inner {
    align-items: center;
  }

  .cookie-banner__content {
    width: 100%;
    justify-content: center;
  }

  .cookie-banner__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    flex: 0 1 auto;
  }

  .cookie-banner__heading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-inline: auto;
  }

  .cookie-banner__icon {
    margin-top: 0;
  }

  .cookie-banner__title {
    text-align: left;
    align-self: center;
  }

  .cookie-banner__desc {
    max-width: 245px;
    width: 100%;
    margin: 10px auto 0;
    text-align: center;
  }

  .cookie-banner__actions {
    margin-inline: auto;
  }
}

.cookie-banner__actions {
  display: grid;
  grid-template-columns: 120px 120px;
  column-gap: 24px; /* Accept 48 → Cancel 192 */
  row-gap: 28px; /* buttons y:150 → Customise y:221 → 221−193=28 */
  justify-content: center;
  margin-top: 32px; /* desc ends ~118 → buttons y:150 */
  width: 100%;
}

.cookie-banner__btn--cancel {
  margin-left: 0;
}

.cookie-banner__customise {
  grid-column: 1 / -1;
  justify-self: center;
  margin: 0;
}

/* ---------- 720–1279 — Figma 4109:38837 · 720×157 ---------- */
@media (min-width: 720px) and (max-width: 1279px) {
  .cookie-banner {
    height: 157px;
    min-height: 157px;
  }

  .cookie-banner__inner {
    padding: 16px 35px 16px 24px;
  }

  .cookie-banner__text {
    max-width: 607px;
  }

  .cookie-banner__actions {
    display: flex;
    grid-template-columns: none;
    justify-content: flex-start;
    /* Align under text (x:78), not icon (x:24): 32 + 22 */
    margin-top: 16px; /* desc ~82 → buttons y:98 */
    margin-left: 54px;
    width: auto;
    column-gap: 0;
    row-gap: 0;
  }

  .cookie-banner__btn--cancel {
    margin-left: 30px;
  }

  .cookie-banner__customise {
    grid-column: auto;
    justify-self: auto;
    margin-left: 26px;
  }
}

/* ---------- 1280–1919 — Figma 4109:38850 · 1280×155 ---------- */
@media (min-width: 1280px) and (max-width: 1919px) {
  .cookie-banner {
    height: 155px;
    min-height: 155px;
  }

  .cookie-banner__inner {
    padding: 16px 40px 24px;
  }

  .cookie-banner__text {
    max-width: 1100px;
  }

  .cookie-banner__actions {
    display: flex;
    grid-template-columns: none;
    justify-content: flex-start;
    /* Align with icon (x:40) */
    margin-top: 24px; /* 88 − 16 − ~48 content block ≈ 24 after content */
    margin-left: 0;
    width: auto;
    column-gap: 0;
    row-gap: 0;
  }

  .cookie-banner__btn--cancel {
    margin-left: 30px;
  }

  .cookie-banner__customise {
    grid-column: auto;
    justify-self: auto;
    margin-left: 26px;
  }
}

/* ---------- ≥1920 — Figma 4109:38876 · 1920×80 single row ---------- */
@media (min-width: 1920px) {
  .cookie-banner {
    height: 80px;
    min-height: 80px;
    border-top-color: rgba(255, 255, 255, 0.45);
  }

  .cookie-banner__inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    /* Figma left 259 / right ≈ 247 (1920 − 1589 − 84) */
    padding: 0 247px 0 259px;
    gap: 48px;
  }

  .cookie-banner__content {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 354px - 48px);
  }

  .cookie-banner__text {
    max-width: 900px;
  }

  .cookie-banner__actions {
    display: flex;
    flex-shrink: 0;
    margin: 0;
    width: auto;
    grid-template-columns: none;
  }

  .cookie-banner__btn--cancel {
    margin-left: 30px;
  }

  .cookie-banner__customise {
    grid-column: auto;
    justify-self: auto;
    margin-left: 26px;
  }
}
