/* Cookie Consent Banner — valuedterminal.de
   All classes prefixed vt-cc- to avoid collisions */

/* ── Overlay ── */
.vt-cc-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
}

/* ── Banner Card ── */
.vt-cc-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 100000;
  max-width: 380px;
  width: calc(100% - 40px);
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #fff;
  overflow: hidden;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s ease;
  pointer-events: auto;
}

.vt-cc-banner.vt-cc-visible {
  transform: translateY(0);
  opacity: 1;
}

.vt-cc-banner.vt-cc-hiding {
  transform: translateY(120%);
  opacity: 0;
}

/* ── Inner content ── */
.vt-cc-content {
  padding: 22px 20px 18px;
}

/* ── Header ── */
.vt-cc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.vt-cc-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: #d4873a;
}

.vt-cc-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  margin: 0;
}

/* ── Body text ── */
.vt-cc-text {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 6px;
}

.vt-cc-text a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vt-cc-text a:hover {
  color: #fff;
}

.vt-cc-note {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0 16px;
  font-style: italic;
}

/* ── Buttons ── */
.vt-cc-buttons {
  display: flex;
  gap: 8px;
}

.vt-cc-btn {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  text-align: center;
  line-height: 1;
}

.vt-cc-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.vt-cc-btn:active {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(0.98);
}

/* Accept All — orange/bronze accent */
.vt-cc-btn[data-action="accept-all"] {
  background: rgba(212, 135, 58, 0.25);
  border-color: rgba(212, 135, 58, 0.5);
  color: #d4873a;
}

.vt-cc-btn[data-action="accept-all"]:hover {
  background: rgba(212, 135, 58, 0.35);
  border-color: rgba(212, 135, 58, 0.65);
}

/* ── Settings Panel ── */
.vt-cc-settings {
  display: none;
}

.vt-cc-settings.vt-cc-active {
  display: block;
}

.vt-cc-main.vt-cc-hidden {
  display: none;
}

/* Settings header with back arrow */
.vt-cc-settings-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.vt-cc-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
  padding: 0;
}

.vt-cc-back:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.vt-cc-settings-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

/* ── Category rows ── */
.vt-cc-categories {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.vt-cc-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.vt-cc-category-info {
  flex: 1;
  min-width: 0;
}

.vt-cc-category-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 2px;
}

.vt-cc-category-desc {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
  line-height: 1.4;
}

/* ── Toggle Switch ── */
.vt-cc-toggle {
  position: relative;
  flex-shrink: 0;
  width: 40px;
  height: 22px;
}

.vt-cc-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.vt-cc-toggle-track {
  position: absolute;
  inset: 0;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: background 0.25s;
}

.vt-cc-toggle-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.vt-cc-toggle input:checked + .vt-cc-toggle-track {
  background: #4ade80;
}

.vt-cc-toggle input:checked + .vt-cc-toggle-track::after {
  transform: translateX(18px);
}

/* Disabled state (essential) */
.vt-cc-toggle.vt-cc-disabled {
  opacity: 0.5;
}

.vt-cc-toggle.vt-cc-disabled .vt-cc-toggle-track {
  cursor: not-allowed;
}

/* ── Mobile (≤480px) ── */
@media (max-width: 480px) {
  .vt-cc-banner {
    bottom: 0;
    left: 0;
    right: 0;
    max-width: none;
    width: 100%;
    border-radius: 14px 14px 0 0;
    border-bottom: none;
  }

  .vt-cc-content {
    padding: 20px 18px 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
}
