/* ── Cookie Banner ─────────────────────────────────────────────────── */

.cb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cb-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ── Bottom Banner ───────────────────────────────────────────────────── */

.cb-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  z-index: 10001;
  padding: 22px 24px 24px;
  border-top: 1px solid #e8e8e8;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.09);
  transform: translateY(110%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cb-banner.active {
  transform: translateY(0);
}

.cb-banner__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.cb-banner__text {
  flex: 1;
  min-width: 260px;
}

.cb-banner__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #151531;
  margin-bottom: 8px;
}

.cb-banner__desc {
  font-size: 0.9rem;
  color: #4d4d4d;
  line-height: 1.65;
}

.cb-banner__btns {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  align-items: center;
}

.cb-btn-settings {
  height: 42px;
  padding: 0 22px;
  border-radius: 10px;
  border: 2px solid #151531;
  background: transparent;
  color: #151531;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: "Baloo 2", sans-serif;
  transition: background 0.2s;
  white-space: nowrap;
}

.cb-btn-settings:hover {
  background: #f5f5f5;
}

.cb-btn-accept {
  height: 42px;
  padding: 0 22px;
  border-radius: 10px;
  border: none;
  background: #151531;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: "Baloo 2", sans-serif;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.cb-btn-accept:hover {
  opacity: 0.82;
}

/* ── Modal ───────────────────────────────────────────────────────────── */

.cb-modal {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.cb-modal.active {
  opacity: 1;
  pointer-events: all;
}

.cb-modal__window {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 1px 1px 20px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 560px;
  min-height: 424px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  transform: scale(0.96) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.cb-modal.active .cb-modal__window {
  transform: scale(1) translateY(0);
}

/* Tabs */

.cb-tabs {
  display: flex;
  border-bottom: 1px solid #ebebeb;
  padding: 0 6px;
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: none;
}

.cb-tabs::-webkit-scrollbar {
  display: none;
}

.cb-tab {
  padding: 15px 12px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #888;
  cursor: pointer;
  white-space: nowrap;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  font-family: "Baloo 2", sans-serif;
  transition: color 0.2s, border-color 0.2s;
  line-height: 1;
}

.cb-tab.active {
  color: #151531;
  border-bottom-color: #151531;
}

/* Content */

.cb-content {
  overflow-y: auto;
  padding: 22px 22px 6px;
  flex: 1;
}

.cb-panel {
  display: none;
}

.cb-panel.active {
  display: block;
}

.cb-panel h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #151531;
  margin-bottom: 10px;
  text-align: left;
}

.cb-panel p {
  font-size: 0.9rem;
  color: #4d4d4d;
  line-height: 1.65;
  margin-bottom: 10px;
  text-align: left;
}

.cb-panel a {
  color: #151531;
  text-decoration: underline;
}

.cb-note {
  background: #f4f4f4;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.9rem !important;
  color: #666 !important;
  margin-bottom: 14px !important;
  border-left: 3px solid #c8effe;
}

/* Necessary list */

.cb-necessary-list {
  margin: 4px 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cb-necessary-list li {
  font-size: 0.9rem;
  color: #4d4d4d;
  line-height: 1.5;
}

/* Service rows */

.cb-service-list {
  margin-top: 4px;
}

.cb-service {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #f0f0f0;
}

.cb-service__info {
  flex: 1;
}

.cb-service__name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #151531;
  margin-bottom: 2px;
}

.cb-service__desc {
  font-size: 0.9rem;
  color: #888;
  line-height: 1.4;
}

/* Toggle switch */

.cb-toggle {
  flex-shrink: 0;
  position: relative;
  width: 44px;
  height: 26px;
  display: block;
}

.cb-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.cb-toggle__track {
  position: absolute;
  inset: 0;
  background: #d5d5d5;
  border-radius: 26px;
  cursor: pointer;
  transition: background 0.25s;
}

.cb-toggle input:checked + .cb-toggle__track {
  background: #151531;
}

.cb-toggle__track::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: left 0.25s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.cb-toggle input:checked + .cb-toggle__track::after {
  left: 21px;
}

.cb-toggle--locked .cb-toggle__track {
  background: #c8effe;
  cursor: not-allowed;
}

.cb-toggle--locked .cb-toggle__track::after {
  left: 21px;
}

/* Modal footer */

.cb-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px;
  border-top: 1px solid #ebebeb;
  flex-shrink: 0;
}

.cb-btn-reject {
  height: 38px;
  padding: 0 18px;
  border-radius: 10px;
  border: 2px solid #151531;
  background: transparent;
  color: #151531;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: "Baloo 2", sans-serif;
  transition: background 0.2s;
}

.cb-btn-reject:hover {
  background: #f5f5f5;
}

.cb-btn-save {
  height: 38px;
  padding: 0 18px;
  border-radius: 10px;
  border: none;
  background: #151531;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: "Baloo 2", sans-serif;
  transition: opacity 0.2s;
}

.cb-btn-save:hover {
  opacity: 0.82;
}

/* ── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 600px) {
  .cb-banner {
    padding: 18px 16px 20px;
  }

  .cb-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .cb-banner__btns {
    flex-direction: row;
  }

  .cb-btn-settings,
  .cb-btn-accept {
    flex: 1;
    display: block;
    text-align: center;
  }

  .cb-modal__window {
    min-height: unset;
    height: 80dvh;
    max-height: 80dvh;
  }

  .cb-modal__footer {
    flex-direction: column-reverse;
  }

  .cb-btn-reject,
  .cb-btn-save {
    width: 100%;
    text-align: center;
  }
}
