:root {
  --cc-bg: #ffffff;
  --cc-text: #0f172a;
  --cc-muted: #475569;
  --cc-border: #dbe3ee;
  --cc-primary: #0b63ce;
  --cc-primary-hover: #0956b4;
  --cc-shadow: 0 14px 40px rgba(15, 23, 42, 0.18);
  --cc-radius: 18px;
}

#cc-banner,
#cc-modal,
#cc-floating-settings {
  font-family: Arial, Helvetica, sans-serif;
  box-sizing: border-box;
}

#cc-banner *,
#cc-modal *,
#cc-floating-settings * {
  box-sizing: border-box;
}

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

#cc-banner[hidden],
#cc-modal[hidden],
#cc-floating-settings[hidden] {
  display: none !important;
}

#cc-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 999999;
}

.cc-banner-inner {
  max-width: 1500px;
  margin: 0 auto;
  background: var(--cc-bg);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  box-shadow: var(--cc-shadow);
  padding: 24px 26px;

  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
}

.cc-icon {
  width: 58px;
  height: 58px;
  color: var(--cc-primary);
  flex: 0 0 auto;
}

.cc-copy h2 {
  margin: 0 0 7px 0;
  color: var(--cc-text);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
}

.cc-copy p {
  margin: 0;
  color: var(--cc-muted);
  font-size: 15px;
  line-height: 1.55;
}

.cc-link {
  display: inline-block;
  margin-top: 7px;
  color: var(--cc-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cc-link:hover {
  text-decoration-thickness: 2px;
}

.cc-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.cc-actions-banner {
  justify-content: flex-end;
}

.cc-btn {
  appearance: none;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--cc-text);
  border-radius: 10px;
  min-height: 46px;
  padding: 11px 18px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.cc-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.cc-btn:focus-visible,
#cc-floating-settings:focus-visible,
.cc-switch input:focus-visible + .cc-slider {
  outline: 3px solid rgba(11, 99, 206, .25);
  outline-offset: 2px;
}

.cc-btn-primary {
  background: var(--cc-primary);
  border-color: var(--cc-primary);
  color: #ffffff;
}

.cc-btn-primary:hover {
  background: var(--cc-primary-hover);
  border-color: var(--cc-primary-hover);
}

.cc-btn-neutral {
  background: #ffffff;
  border-color: #aeb9c7;
}

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

#cc-modal {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  background: rgba(15, 23, 42, .48);
  padding: 20px;
  overflow-y: auto;

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

.cc-dialog {
  width: min(680px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--cc-border);
  box-shadow: 0 24px 80px rgba(15, 23, 42, .28);
  padding: 26px;
}

.cc-dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.cc-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--cc-primary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.cc-dialog h2 {
  margin: 0 0 7px 0;
  color: var(--cc-text);
  font-size: 26px;
  line-height: 1.2;
}

.cc-dialog p {
  margin: 0;
  color: var(--cc-muted);
  font-size: 15px;
  line-height: 1.55;
}

.cc-icon-button {
  appearance: none;
  width: 42px;
  height: 42px;
  border: 1px solid #d6dee9;
  border-radius: 10px;
  background: #ffffff;
  color: var(--cc-text);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.cc-icon-button:hover {
  background: #f8fafc;
}

.cc-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid #e7edf4;
}

.cc-category h3 {
  margin: 0 0 5px 0;
  color: var(--cc-text);
  font-size: 17px;
}

.cc-always {
  white-space: nowrap;
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 700;
}

.cc-actions-modal {
  justify-content: flex-end;
  padding-top: 22px;
  border-top: 1px solid #e7edf4;
}

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

.cc-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 30px;
  flex: 0 0 auto;
}

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

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

.cc-slider::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  left: 3px;
  top: 3px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .20);
  transition: .2s ease;
}

.cc-switch input:checked + .cc-slider {
  background: var(--cc-primary);
}

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

/* ===== FLOATING SETTINGS BUTTON ===== */

#cc-floating-settings {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 999998;

  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid #d3dce8;
  background: #ffffff;
  color: var(--cc-primary);
  box-shadow: 0 7px 24px rgba(15, 23, 42, .18);

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

  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

#cc-floating-settings:hover {
  transform: translateY(-2px);
  background: #f8fbff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .22);
}

/* ===== MAP PLACEHOLDER ===== */

.cc-map-placeholder {
  min-height: 260px;
  width: 100%;
  border: 1px solid #dbe3ee;
  border-radius: 14px;
  background: #f8fafc;
  padding: 28px;

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

.cc-map-placeholder > div {
  max-width: 560px;
}

.cc-map-placeholder p {
  margin: 0 0 14px 0;
  color: var(--cc-muted);
  line-height: 1.55;
}

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

@media (max-width: 980px) {
  .cc-banner-inner {
    grid-template-columns: auto 1fr;
  }

  .cc-actions-banner {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .cc-actions-banner .cc-btn {
    flex: 1 1 180px;
  }
}

@media (max-width: 640px) {
  #cc-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .cc-banner-inner {
    display: block;
    padding: 20px;
    border-radius: 16px;
  }

  .cc-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 12px;
  }

  .cc-copy h2 {
    font-size: 21px;
  }

  .cc-copy p {
    font-size: 14px;
  }

  .cc-actions-banner {
    margin-top: 17px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .cc-actions-banner .cc-btn {
    width: 100%;
  }

  #cc-modal {
    padding: 10px;
    align-items: flex-end;
  }

  .cc-dialog {
    max-height: 92vh;
    padding: 20px;
    border-radius: 18px;
  }

  .cc-dialog h2 {
    font-size: 22px;
  }

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

  .cc-actions-modal {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cc-actions-modal .cc-btn {
    width: 100%;
  }

  #cc-floating-settings {
    left: 12px;
    bottom: 12px;
    width: 46px;
    height: 46px;
  }
}
