.cookie-banner,
.cookie-modal,
.cookie-fab {
  box-sizing: border-box;
  font-family: Poppins, Arial, sans-serif;
}

.cookie-banner *,
.cookie-modal *,
.cookie-fab * {
  box-sizing: border-box;
}

.cookie-banner[hidden],
.cookie-modal[hidden] {
  display: none !important;
}

.cookie-fab[hidden] {
  display: none !important;
}

/* =========================
   BANNER
   ========================= */

.cookie-banner {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 9999;
  width: min(460px, calc(100vw - 24px));
}

.cookie-banner__box {
  background: #ffffff;
  border: 1px solid rgba(1, 43, 99, 0.12);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14);
  padding: 24px;
}

.cookie-banner__title {
  margin: 0 0 10px;
  color: #012b63;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
}

.cookie-banner__desc {
  margin: 0;
  color: #222;
  font-size: 15px;
  line-height: 1.6;
}

.cookie-banner__desc a {
  color: #012b63;
  font-weight: 600;
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.cookie-banner__btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  min-height: 46px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  transition:
    transform 0.18s ease,
    opacity 0.18s ease,
    background-color 0.18s ease;
}

.cookie-banner__btn:hover {
  transform: translateY(-1px);
}

.cookie-banner__btn--primary {
  background: #012b63;
  color: #fff;
}

.cookie-banner__btn--secondary {
  background: #ece8df;
  color: #111;
}

.cookie-banner__btn--ghost {
  background: transparent;
  color: #012b63;
  border: 1px solid rgba(1, 43, 99, 0.2);
}

/* =========================
   MODAL
   ========================= */

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;
}

.cookie-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.cookie-modal__box {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  overflow: auto;

  margin: 0;
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.cookie-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #f1f1f1;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.cookie-modal__title {
  margin: 0 0 10px;
  color: #012b63;
  font-family: "Poppins", sans-serif;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 600;
  padding-right: 46px;
}

.cookie-modal__desc {
  margin: 0 0 22px;
  color: #333;
  font-size: 15px;
  line-height: 1.6;
}

.cookie-modal__list {
  display: grid;
  gap: 14px;
}

.cookie-option {
  border: 1px solid rgba(1, 43, 99, 0.12);
  border-radius: 16px;
  padding: 18px;
  background: #fff;
}

.cookie-option--required {
  background: #faf8f3;
}

.cookie-option__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.cookie-option__title {
  margin: 0 0 8px;
  color: #012b63;
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 600;
}

.cookie-option__text {
  margin: 0;
  color: #222;
  font-size: 14px;
  line-height: 1.6;
}

/* =========================
   SWITCH
   ========================= */

.cookie-switch {
  position: relative;
  display: inline-flex;
  width: 52px;
  min-width: 52px;
  height: 30px;
}

.cookie-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.cookie-switch__slider {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #d7d7d7;
  transition: background-color 0.2s ease;
}

.cookie-switch__slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease;
}

.cookie-switch input:checked + .cookie-switch__slider {
  background: #012b63;
}

.cookie-switch input:checked + .cookie-switch__slider::after {
  transform: translateX(22px);
}

.cookie-switch input:disabled + .cookie-switch__slider {
  background: #7d8da3;
}

.cookie-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

/* =========================
   FAB
   ========================= */

.cookie-fab {
  position: fixed !important;
  left: 20px !important;
  bottom: 20px !important;
  z-index: 9998 !important;

  width: 54px !important;
  height: 54px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  background: #012b63 !important;
  color: #fff !important;
  cursor: pointer !important;
  box-shadow: 0 12px 28px rgba(1, 43, 99, 0.28) !important;

  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.cookie-fab:hover {
  transform: translateY(-2px);
}

.cookie-fab svg {
  display: block !important;
  width: 24px !important;
  height: 24px !important;
  flex: 0 0 24px !important;
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 767px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }

  .cookie-banner__box {
    padding: 18px;
    border-radius: 16px;
  }

  .cookie-banner__title {
    font-size: 20px;
  }

  .cookie-banner__actions,
  .cookie-modal__actions {
    flex-direction: column;
  }

  .cookie-banner__btn {
    width: 100%;
  }

  .cookie-modal__box {
    width: calc(100vw - 16px);
    margin: 8px auto;
    padding: 22px 16px 16px;
    border-radius: 16px;
  }

  .cookie-option__top {
    align-items: center;
  }

  .cookie-fab {
    left: 12px !important;
    bottom: 12px !important;
  }
}