.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10001;
  background: #fff;
  border-top: 1px solid rgba(36, 93, 133, 0.25);
  box-shadow: 0 -4px 24px rgba(22, 53, 86, 0.12);
  padding: 20px 0;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.cookie-consent.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-consent__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-consent__text {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #2e363e;
  max-width: 720px;
  margin: 0;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-consent__btn {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  padding: 12px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cookie-consent__btn--primary {
  background: #3785a6;
  color: #fff;
}

.cookie-consent__btn--primary:hover {
  background: #245d85;
}

.cookie-consent__btn--secondary {
  background: #163556;
  color: #fff;
}

.cookie-consent__btn--secondary:hover {
  background: #245d85;
}

.cookie-consent__btn--outline {
  background: transparent;
  color: #3785a6;
  border: 2px solid #3785a6;
}

.cookie-consent__btn--outline:hover {
  background: rgba(55, 133, 166, 0.08);
}

.cookie-settings {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.cookie-settings__overlay {
  position: absolute;
  inset: 0;
  background: rgba(22, 53, 86, 0.45);
}

.cookie-settings__modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border: 6px solid #245d85;
  border-radius: 10px;
  padding: 32px 36px;
}

.cookie-settings__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.cookie-settings__close::before,
.cookie-settings__close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 2px;
  background: #163556;
  border-radius: 1px;
}

.cookie-settings__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.cookie-settings__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.cookie-settings__close:hover::before,
.cookie-settings__close:hover::after {
  background: #3785a6;
}

.cookie-settings__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 28px;
  color: #163556;
  margin: 0 0 12px;
}

.cookie-settings__desc {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #2e363e;
  margin: 0 0 24px;
}

.cookie-settings__group {
  border: 2px solid rgba(36, 93, 133, 0.2);
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 14px;
}

.cookie-settings__group:last-of-type {
  margin-bottom: 24px;
}

.cookie-settings__group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-settings__group-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #163556;
  margin: 0;
}

.cookie-settings__group-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  line-height: 1.45;
  color: #2e363e;
  margin: 8px 0 0;
}

.cookie-settings__toggle {
  position: relative;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.cookie-settings__toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.cookie-settings__toggle-slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 26px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cookie-settings__toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.cookie-settings__toggle input:checked + .cookie-settings__toggle-slider {
  background: #3785a6;
}

.cookie-settings__toggle input:checked + .cookie-settings__toggle-slider::before {
  transform: translateX(22px);
}

.cookie-settings__toggle input:disabled + .cookie-settings__toggle-slider {
  background: #245d85;
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-settings__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-settings__save {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  background: #3785a6;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cookie-settings__save:hover {
  background: #245d85;
}

.footer-cookie-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin-top: 8px;
  display: inline-block;
}

.footer-cookie-link:hover {
  color: #fff;
}

.cookie-consent-fab {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 10000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: none;
  border-radius: 50px;
  background: #163556;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(22, 53, 86, 0.35);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cookie-consent-fab:hover {
  background: #245d85;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22, 53, 86, 0.4);
}

.cookie-consent-fab__icon {
  flex-shrink: 0;
}

.cookie-consent-fab__label {
  white-space: nowrap;
}

@media (max-width: 600px) {
  .cookie-consent-fab {
    left: 12px;
    bottom: 12px;
    padding: 12px 14px;
  }

  .cookie-consent-fab__label {
    display: none;
  }
}

@media (max-width: 900px) {
  .cookie-consent__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-consent__actions {
    justify-content: flex-start;
  }

  .cookie-consent__btn {
    white-space: normal;
    text-align: center;
    flex: 1 1 auto;
    min-width: calc(50% - 5px);
  }

  .cookie-consent__btn--outline {
    width: 100%;
    min-width: 100%;
  }
}

@media (max-width: 600px) {
  .cookie-consent {
    padding: 16px 0;
  }

  .cookie-consent__btn {
    width: 100%;
    min-width: 100%;
  }

  .cookie-settings__modal {
    padding: 24px 20px;
  }

  .cookie-settings__title {
    font-size: 22px;
    padding-right: 32px;
  }
}
