/* =========================================================
   Cookie Consent Plugin — Styles
   Primary: #FF4D4D
   ========================================================= */

:root {
  --ccp-primary: #FF4D4D;
  /* Primary Light */
  --ccp-primary-h: #CC0000;
  /* Primary Dark */
  --ccp-text: #1E1E1E;
  /* Theme Black */
  --ccp-muted: #7A7A7A;
  /* Theme Gray */
  --ccp-border: #F0F0F0;
  /* Light Gray */
  --ccp-bg: #ffffff;
  --ccp-radius: 20px;
  --ccp-font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Banner ────────────────────────────────────────────── */
.ccp-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99990;
  padding: 0 16px 16px;
  display: flex;
  justify-content: center;
  animation: ccpSlideUp .3s ease;
}

.ccp-banner__inner {
  background: var(--ccp-bg);
  border-radius: var(--ccp-radius);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  padding: 22px 28px;
  max-width: 1000px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
  position: relative;
  flex-wrap: wrap;
  font-family: var(--ccp-font);
}

.ccp-banner__text {
  flex: 1;
  min-width: 200px;
}

.ccp-banner__title {
  font-weight: 600;
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--ccp-text);
}

.ccp-banner__desc {
  font-size: 13.5px;
  color: var(--ccp-text);
  line-height: 1.65;
  margin: 0;
}

.ccp-banner__actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}

/* ── Overlay + Modal ───────────────────────────────────── */
.ccp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  z-index: 99995;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: ccpFadeIn .2s ease;
}

.ccp-modal {
  background: var(--ccp-bg);
  border-radius: var(--ccp-radius);
  box-shadow: 0 12px 60px rgba(0, 0, 0, .2);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  font-family: var(--ccp-font);
  animation: ccpSlideUp .25s ease;
  overflow: hidden;
}

.ccp-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 28px 0;
  flex-shrink: 0;
}

.ccp-modal__title {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  color: var(--ccp-text);
  text-align: center;
  flex: 1;
}

.ccp-modal__body {
  overflow-y: auto;
  padding: 20px 28px;
  flex: 1;
}

.ccp-modal__intro {
  font-size: 13.5px;
  color: var(--ccp-text);
  line-height: 1.7;
  margin: 0 0 20px;
}

.ccp-modal__footer {
  padding: 18px 28px;
  border-top: 1px solid var(--ccp-border);
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  flex-shrink: 0;
  box-shadow: var(--shadow-xl);
}

/* ── Cookie Item ───────────────────────────────────────── */
.ccp-item {
  margin-bottom: 4px;
}

.ccp-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.ccp-item__name {
  font-weight: 600;
  font-size: 20px;
  color: var(--ccp-text);
}

.ccp-item__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ccp-item__label {
  font-weight: 500;
  font-size: 16px;
  margin: 0 0 5px;
  color: var(--ccp-text);
}

.ccp-item__text {
  font-size: 13px;
  color: var(--ccp-text);
  line-height: 1.6;
  margin: 0;
}

.ccp-item__note {
  font-size: 12.5px;
  color: #777;
  font-style: italic;
  line-height: 1.6;
  margin: 8px 0 0;
}

.ccp-divider {
  border: none;
  border-top: 1px solid var(--ccp-border);
  margin: 22px 0;
}

/* ── Toggle switch ─────────────────────────────────────── */
.ccp-toggle {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.ccp-toggle__input {
  display: none !important;
}

.ccp-toggle__track {
  width: 52px;
  height: 28px;
  border-radius: 14px;
  background: #D1D5DB;
  position: relative;
  transition: background .25s;
  display: block;
}

.ccp-toggle__track--on,
.ccp-toggle__input:checked+.ccp-toggle__track {
  background: var(--ccp-primary);
}

.ccp-toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
  transition: left .22s cubic-bezier(.4, 0, .2, 1);
}

.ccp-toggle__input:checked+.ccp-toggle__track .ccp-toggle__thumb {
  left: 27px;
}

.ccp-toggle--disabled {
  cursor: not-allowed;
  opacity: .9;
}

.ccp-btn {
  padding: 0.5rem 2rem;
  border-radius: 9999px;
  font-family: var(--ccp-font);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 200ms ease-in-out;
  white-space: nowrap;
  border: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ccp-btn:hover {
  opacity: 1;
  background-color: var(--ccp-primary-h);
  color: #fff;
}

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

.ccp-btn--primary {
  background: var(--ccp-primary);
  color: #fff;
}

.ccp-btn--outline {
  background: transparent;
  border: 1px solid var(--ccp-text);
  color: var(--ccp-text);
}

.ccp-btn--outline:hover {
  background: var(--ccp-text);
  color: #fff;
}

/* ── Close button ──────────────────────────────────────── */
.ccp-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ccp-primary);
  font-size: 18px;
  line-height: 1;
  padding: 4px 6px;
  flex-shrink: 0;
}

.ccp-banner .ccp-close {
  position: absolute;
  top: 12px;
  right: 14px;
}

/* ── Link ──────────────────────────────────────────────── */
.ccp-link {
  color: var(--ccp-primary);
  text-decoration: none;
  font-weight: 500;
}

.ccp-link:hover {
  text-decoration: underline;
}

/* ── Animations ────────────────────────────────────────── */
@keyframes ccpSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ccpFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 600px) {
  .ccp-banner__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 18px;
  }

  .ccp-banner__actions {
    width: 100%;
  }

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

  .ccp-item__grid {
    grid-template-columns: 1fr;
  }

  .ccp-modal__header {
    padding: 20px 18px 0;
  }

  .ccp-modal__body {
    padding: 16px 18px;
  }

  .ccp-modal__footer {
    padding: 14px 18px;
  }
}