/* ── Banner container ────────────────────────────────────────────────────── */
#ct-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #ffffff;
  border-top: 1px solid #e0e0e0;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
  font-family: Century-Gothic, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: #282828;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

#ct-consent-banner.ct-visible {
  transform: translateY(0);
}

.ct-consent-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
}

/* ── Main screen ─────────────────────────────────────────────────────────── */
#ct-main {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.ct-consent-text {
  flex: 1;
  min-width: 220px;
  line-height: 1.5;
}

.ct-consent-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
  color: #190b28;
}

.ct-consent-description {
  color: #828282;
  font-size: 13px;
}

.ct-consent-description a {
  color: #04bacb;
  text-decoration: underline;
  white-space: nowrap;
}

.ct-consent-description a:hover {
  opacity: 0.75;
}

.ct-consent-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  align-items: center;
  flex-wrap: wrap;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.ct-consent-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: 9999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
  white-space: nowrap;
}

.ct-consent-btn-accept {
  background: #04bacb;
  color: #282828;
  border-color: #04bacb;
}

.ct-consent-btn-accept:hover {
  background: #03a8b8;
  border-color: #03a8b8;
}

.ct-consent-btn-decline {
  background: transparent;
  color: #828282;
  border-color: #bdbdbd;
}

.ct-consent-btn-decline:hover {
  border-color: #828282;
  color: #282828;
}

.ct-consent-btn-secondary {
  background: transparent;
  color: #190b28;
  border-color: #190b28;
}

.ct-consent-btn-secondary:hover {
  background: #190b28;
  color: #ffffff;
}

/* ── Settings screen ─────────────────────────────────────────────────────── */
#ct-settings {
  padding-top: 4px;
}

.ct-hidden {
  display: none !important;
}

.ct-categories {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 14px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
}

.ct-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
}

.ct-category:last-child {
  border-bottom: none;
}

.ct-category-info {
  flex: 1;
}

.ct-category-label {
  font-weight: 600;
  font-size: 13px;
  color: #190b28;
  margin-bottom: 2px;
}

.ct-category-desc {
  font-size: 12px;
  color: #828282;
  line-height: 1.5;
}

/* ── Toggle switch ───────────────────────────────────────────────────────── */
.ct-toggle-wrap {
  flex-shrink: 0;
}

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

.ct-toggle-label {
  display: block;
  position: relative;
  width: 40px;
  height: 22px;
  background: #bdbdbd;
  border-radius: 11px;
  cursor: pointer;
  transition: background 0.2s;
}

.ct-toggle-label::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.ct-toggle:checked + .ct-toggle-label {
  background: #04bacb;
}

.ct-toggle:checked + .ct-toggle-label::after {
  transform: translateX(18px);
}

.ct-toggle:disabled + .ct-toggle-label {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Settings actions ────────────────────────────────────────────────────── */
.ct-settings-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ── Floating "Cookie settings" button ───────────────────────────────────── */
#ct-floating {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 99998;
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-family: Century-Gothic, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #828282;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

#ct-floating:hover {
  color: #190b28;
  border-color: #190b28;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  #ct-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .ct-consent-actions {
    width: 100%;
  }

  .ct-consent-btn {
    flex: 1;
    text-align: center;
  }

  .ct-settings-actions {
    justify-content: stretch;
  }

  .ct-settings-actions .ct-consent-btn {
    flex: 1;
  }
}
