/* ============================================================
   GDPR Cookie Consent — gdpr_cookie_consent.css
   PrestaShop 8.2
   ============================================================ */

/* ── overlay wrapper ─────────────────────────────────────── */
.gcc-overlay {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 99999;
  display: flex;
  justify-content: center;
  padding: 0 12px 16px;
  pointer-events: none;
}

.gcc-overlay.gcc-position-bottom { bottom: 0; align-items: flex-end; }
.gcc-overlay.gcc-position-top    { top: 0;    align-items: flex-start; padding-top: 16px; padding-bottom: 0; }

/* ── banner card ─────────────────────────────────────────── */
.gcc-banner {
  background: #ffffff;
  border: 1px solid #e0ddd8;
  border-radius: 14px;
  padding: 20px 20px 14px;
  max-width: 700px;
  width: 100%;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  pointer-events: all;
}

/* ── header ──────────────────────────────────────────────── */
.gcc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.gcc-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gcc-icon {
  color: #666;
  flex-shrink: 0;
}

.gcc-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
}

.gcc-close {
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  color: #999;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.15s;
}
.gcc-close:hover { color: #333; }

/* ── description ─────────────────────────────────────────── */
.gcc-desc {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  margin: 0 0 14px;
}

.gcc-link {
  color: #1a6eb5;
  text-decoration: none;
  margin-left: 4px;
}
.gcc-link:hover { text-decoration: underline; }

/* ── categories row ──────────────────────────────────────── */
.gcc-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: #f7f6f3;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

@media (max-width: 520px) {
  .gcc-categories { grid-template-columns: 1fr; }
}

.gcc-category {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* ── checkbox ────────────────────────────────────────────── */
.gcc-check {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid #bbb;
  background: #fff;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
  color: transparent;
}

.gcc-check svg { display: block; }

.gcc-check--on {
  background: #2d9c6e;
  border-color: #2d9c6e;
  color: #fff;
}

.gcc-check--locked {
  background: #2d9c6e;
  border-color: #2d9c6e;
  color: #fff;
  cursor: not-allowed;
  opacity: 0.85;
}

.gcc-check:not(.gcc-check--locked):hover {
  border-color: #2d9c6e;
}

.gcc-check:focus-visible {
  outline: 2px solid #1a6eb5;
  outline-offset: 2px;
}

/* ── category labels ─────────────────────────────────────── */
.gcc-cat-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gcc-cat-name {
  font-size: 12px;
  font-weight: 600;
  color: #1a1a1a;
}

.gcc-cat-desc {
  font-size: 11px;
  color: #777;
  line-height: 1.4;
}

/* ── action buttons ──────────────────────────────────────── */
.gcc-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.gcc-btn {
  flex: 1;
  min-width: 110px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.1s;
  white-space: nowrap;
}

.gcc-btn:active { transform: scale(0.97); }

.gcc-btn--secondary {
  background: #f2f0eb;
  border: 1px solid #d8d5ce;
  color: #333;
}
.gcc-btn--secondary:hover {
  background: #e8e5de;
}

.gcc-btn--primary {
  background: #1a1a1a;
  border: 1px solid #1a1a1a;
  color: #fff;
}
.gcc-btn--primary:hover {
  background: #333;
}

/* ── footer note ─────────────────────────────────────────── */
.gcc-footer-note {
  font-size: 11px;
  color: #aaa;
  text-align: center;
  margin: 10px 0 0;
}

.gcc-reopen-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 11px;
  color: #aaa;
  text-decoration: underline;
  cursor: pointer;
}
.gcc-reopen-link:hover { color: #666; }

/* ── floating reopen button ──────────────────────────────── */
.gcc-reopen-fab {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 99998;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  color: #888;
  transition: color 0.15s, box-shadow 0.15s;
}
.gcc-reopen-fab:hover {
  color: #333;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

/* ── dark mode ───────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  .gcc-banner {
    background: #1e1e1e;
    border-color: #333;
  }
  .gcc-title   { color: #f0f0f0; }
  .gcc-desc    { color: #aaa; }
  .gcc-icon    { color: #888; }
  .gcc-close   { color: #777; }
  .gcc-close:hover { color: #ddd; }
  .gcc-categories  { background: #2a2a2a; }
  .gcc-cat-name    { color: #e8e8e8; }
  .gcc-cat-desc    { color: #888; }
  .gcc-check {
    background: #2a2a2a;
    border-color: #555;
  }
  .gcc-check:not(.gcc-check--locked):hover { border-color: #2d9c6e; }
  .gcc-btn--secondary {
    background: #2a2a2a;
    border-color: #444;
    color: #ddd;
  }
  .gcc-btn--secondary:hover { background: #333; }
  .gcc-btn--primary {
    background: #f0f0f0;
    border-color: #f0f0f0;
    color: #111;
  }
  .gcc-btn--primary:hover { background: #ddd; }
  .gcc-footer-note   { color: #555; }
  .gcc-reopen-link   { color: #555; }
  .gcc-reopen-link:hover { color: #aaa; }
  .gcc-reopen-fab {
    background: #2a2a2a;
    border-color: #444;
    color: #888;
  }
}
