.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  background: #F7F7F7;
  color: #0B1323;
  border-top: 1px solid rgba(224,178,147,.55);
  box-shadow: 0 -12px 40px rgba(11,19,35,.16);
  transform: translateY(110%);
  transition: transform .3s ease;
  font-family: 'Montserrat', -apple-system, 'Segoe UI', sans-serif;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 35px;
}

.cookie-text {
  flex: 1;
  min-width: 0;
}

.cookie-text h3 {
  margin: 0 0 8px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 600;
  color: #0B1323;
}

.cookie-text p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: #4A576B;
}

.cookie-links {
  margin-top: 9px !important;
}

.cookie-links a,
.cookie-links button {
  color: #2B567F;
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-links button {
  margin-left: 18px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

.cookie-buttons {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
}

.cookie-btn,
.cookie-save {
  appearance: none;
  border-radius: 999px;
  padding: 12px 17px;
  font-family: 'Montserrat', -apple-system, 'Segoe UI', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: .2s ease;
}

.cookie-reject,
.cookie-settings {
  border: 1px solid rgba(11,19,35,.25);
  background: transparent;
  color: #0B1323;
}

.cookie-accept,
.cookie-save {
  border: 1px solid #2B567F;
  background: linear-gradient(135deg, #0B1323 0%, #2B567F 100%);
  color: #fff;
  box-shadow: 0 8px 22px rgba(11,19,35,.20);
}

.cookie-btn:hover,
.cookie-save:hover {
  transform: translateY(-1px);
}

.cookie-reject:hover,
.cookie-settings:hover {
  border-color: #2B567F;
  color: #2B567F;
}

.cookie-accept:hover,
.cookie-save:hover {
  box-shadow: 0 11px 28px rgba(43,86,127,.30);
}

/* modal */

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(11,19,35,.62);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}

.cookie-modal.is-visible {
  opacity: 1;
  visibility: visible;
}

.cookie-modal-box {
  position: relative;
  width: min(600px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #F7F7F7;
  border: 1px solid rgba(224,178,147,.45);
  border-radius: 22px;
  padding: 35px;
  box-shadow: 0 24px 70px rgba(11,19,35,.32);
  font-family: 'Montserrat', -apple-system, 'Segoe UI', sans-serif;
}

.cookie-modal-box h2 {
  margin: 0 35px 12px 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  color: #0B1323;
}

.cookie-modal-intro {
  margin: 0 0 24px;
  color: #4A576B;
  font-size: 13px;
  line-height: 1.65;
}

.cookie-close {
  position: absolute;
  top: 13px;
  right: 16px;
  border: 0;
  background: transparent;
  color: #0B1323;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.cookie-close:hover {
  color: #2B567F;
}

.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0;
  border-top: 1px solid rgba(11,19,35,.10);
}

.cookie-category strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13.5px;
  color: #0B1323;
}

.cookie-category span:not(.switch-slider):not(.cookie-always) {
  display: block;
  color: #4A576B;
  font-size: 11.5px;
  line-height: 1.45;
}

.cookie-always {
  flex: 0 0 auto;
  color: #C7925B;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .08em;
}

.switch {
  position: relative;
  flex: 0 0 46px;
  width: 46px;
  height: 25px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  inset: 0;
  background: #B9C0CC;
  border-radius: 999px;
  cursor: pointer;
  transition: .2s;
}

.switch-slider:before {
  content: "";
  position: absolute;
  width: 19px;
  height: 19px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .2s;
  box-shadow: 0 1px 4px rgba(11,19,35,.22);
}

.switch input:checked + .switch-slider {
  background: #2B567F;
}

.switch input:checked + .switch-slider:before {
  transform: translateX(21px);
}

.cookie-save {
  width: 100%;
  margin-top: 22px;
  padding: 13px 18px;
}

/* floating settings button */

.cookie-floating {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 99998;
  display: none;
  border: 1px solid #2B567F;
  border-radius: 999px;
  background: #F7F7F7;
  color: #2B567F;
  padding: 9px 14px;
  font-family: 'Montserrat', -apple-system, 'Segoe UI', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  box-shadow: 0 5px 18px rgba(11,19,35,.16);
}

.cookie-floating.is-visible {
  display: block;
}

.cookie-floating:hover {
  background: #0B1323;
  color: #fff;
}

body.cookies-modal-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .cookie-inner {
    display: block;
    padding: 18px 18px 20px;
  }

  .cookie-text h3 {
    font-size: 19px;
  }

  .cookie-text p {
    font-size: 11.5px;
  }

  .cookie-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 15px;
  }

  .cookie-accept {
    grid-column: 1 / -1;
  }

  .cookie-btn {
    width: 100%;
  }

  .cookie-modal-box {
    padding: 28px 22px;
    border-radius: 18px;
  }

  .cookie-modal-box h2 {
    font-size: 24px;
  }

  .cookie-category {
    align-items: flex-start;
  }

  .cookie-category > div {
    flex: 1;
  }

  .cookie-floating {
    bottom: 10px;
    left: 10px;
  }
}
