/* =====================================================================
   Vieweet Cookie Consent
   Custom two-stage cookie consent: small banner + full settings modal.
   Layout structure follows screenshots/ references; typography and
   colors pulled from the site's existing Webflow stylesheet so the
   popup feels native (Poppins headings, Inter body, --primary #0e0333).
   ===================================================================== */

:root {
  --vcc-primary: #0e0333;
  --vcc-text: #0e0333;
  --vcc-muted: #4b4b4b;
  --vcc-border: #e5e5ea;
  --vcc-bg: #ffffff;
  --vcc-footer-bg: #f1edf7;
  --vcc-shadow: 0 20px 50px rgba(14, 3, 51, 0.18);
  --vcc-radius: 18px;
}

/* ---------- Shared ---------- */

.vcc-root,
.vcc-root * {
  box-sizing: border-box;
}

.vcc-root {
  font-family: Inter, sans-serif;
  color: var(--vcc-text);
  -webkit-font-smoothing: antialiased;
}

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

.vcc-title {
  font-family: Poppins, sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 14px;
  color: var(--vcc-primary);
}

.vcc-body {
  font-family: Inter, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--vcc-muted);
  margin: 0;
}

.vcc-body a {
  color: var(--vcc-primary);
  font-weight: 600;
  text-decoration: underline;
}

/* ---------- Small banner (bottom-left) ---------- */

.vcc-banner {
  position: fixed;
  left: 24px;
  bottom: 24px;
  width: 340px;
  max-width: calc(100vw - 32px);
  background: var(--vcc-bg);
  border-radius: var(--vcc-radius);
  box-shadow: var(--vcc-shadow);
  padding: 24px 24px 20px;
  z-index: 9998;
  animation: vcc-slide-in 0.35s ease-out;
}

@keyframes vcc-slide-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.vcc-banner__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */

.vcc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Poppins, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  line-height: 1;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid var(--vcc-primary);
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
}

.vcc-btn:hover {
  box-shadow: 0 0 10px 1px rgba(14, 3, 51, 0.4);
}

.vcc-btn:active {
  transform: translateY(1px);
}

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

.vcc-btn--outline {
  background: #ffffff;
  color: var(--vcc-primary);
}

.vcc-btn--link {
  background: transparent;
  border: none;
  padding: 10px 4px;
  color: var(--vcc-primary);
  text-decoration: underline;
  font-weight: 600;
}

.vcc-btn--link:hover {
  box-shadow: none;
  opacity: 0.75;
}

/* ---------- Modal overlay + dialog ---------- */

.vcc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 3, 51, 0.55);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: vcc-fade-in 0.25s ease-out;
}

@keyframes vcc-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.vcc-modal {
  background: var(--vcc-bg);
  border-radius: var(--vcc-radius);
  box-shadow: var(--vcc-shadow);
  width: 100%;
  max-width: 600px;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: vcc-pop-in 0.3s ease-out;
}

@keyframes vcc-pop-in {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

.vcc-modal__header {
  padding: 28px 32px 0;
  position: relative;
}

.vcc-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f4f4f7;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vcc-primary);
  font-size: 20px;
  line-height: 1;
  transition: background 0.2s ease;
}

.vcc-modal__close:hover {
  background: #e5e5ea;
}

.vcc-modal__body {
  padding: 14px 32px 24px;
  overflow-y: auto;
  flex: 1 1 auto;
}

.vcc-modal__intro {
  font-family: Inter, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--vcc-muted);
  margin: 0 0 24px;
}

/* ---------- Category list ---------- */

.vcc-categories {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.vcc-category {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.vcc-category__content {
  flex: 1 1 auto;
}

.vcc-category__title {
  font-family: Poppins, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--vcc-primary);
  margin: 0 0 6px;
  text-transform: uppercase;
}

.vcc-category__title--active {
  opacity: 0.65;
  font-size: 12px;
  font-weight: 500;
  margin-left: 8px;
  text-transform: uppercase;
}

.vcc-category__desc {
  font-family: Inter, sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: var(--vcc-muted);
  margin: 0;
}

/* ---------- Checkbox (custom) ---------- */

.vcc-checkbox {
  position: relative;
  flex: 0 0 auto;
  margin-top: 2px;
}

.vcc-checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.vcc-checkbox__box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border: 2px solid var(--vcc-primary);
  background: #ffffff;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.vcc-checkbox__box::after {
  content: "";
  width: 6px;
  height: 11px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.vcc-checkbox input:checked + .vcc-checkbox__box {
  background: var(--vcc-primary);
  border-color: var(--vcc-primary);
}

.vcc-checkbox input:checked + .vcc-checkbox__box::after {
  opacity: 1;
}

.vcc-checkbox input:disabled + .vcc-checkbox__box {
  cursor: not-allowed;
  opacity: 0.85;
}

.vcc-checkbox input:focus-visible + .vcc-checkbox__box {
  outline: 2px solid var(--vcc-primary);
  outline-offset: 2px;
}

/* ---------- Modal footer ---------- */

.vcc-modal__footer {
  background: var(--vcc-footer-bg);
  padding: 20px 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Responsive ---------- */

@media (max-width: 520px) {
  .vcc-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
    padding: 20px;
  }

  .vcc-banner__actions {
    gap: 6px;
  }

  .vcc-btn {
    padding: 10px 16px;
    font-size: 13px;
  }

  .vcc-modal__header { padding: 22px 22px 0; }
  .vcc-modal__body { padding: 12px 22px 20px; }
  .vcc-modal__footer { padding: 16px 22px; }
  .vcc-title { font-size: 20px; }
}

/* ---------- Body lock while modal open ---------- */

body.vcc-lock {
  overflow: hidden;
}
