/* ==================== COOKIE CONSENT BANNER (Modal Overlay) ==================== */

.cpn-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.cpn-overlay.show {
  display: flex;
}

.cpn-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 2rem 1.75rem 1.5rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow:
    0 4px 16px rgba(33, 53, 119, 0.10),
    0 12px 40px rgba(209, 124, 43, 0.12);
}

.cpn-icon {
  width: 48px;
  height: 48px;
  background: var(--orange-50, #fdf3e7);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.375rem;
}

.cpn-card h3 {
  font-family: var(--font-display, 'Poppins', sans-serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gray-900, #0a0a0a);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.cpn-card > p {
  font-size: 0.83rem;
  color: var(--gray-500, #6b7280);
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

.cpn-accept {
  display: block;
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, var(--orange-500, #d17c2b), var(--orange-700, #a8601f));
  color: #ffffff;
  font-family: var(--font-display, 'Poppins', sans-serif);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(209, 124, 43, 0.30);
  margin-bottom: 0.75rem;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.cpn-accept:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.cpn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
}

.cpn-link {
  font-size: 0.75rem;
  color: var(--gray-400, #9ca3af);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
  padding: 0;
  font-family: inherit;
  transition: color 0.15s;
}

.cpn-link:hover {
  color: var(--gray-600, #6b7280);
}

.cpn-link--faint {
  font-size: 0.7rem;
  color: var(--gray-300, #d1d5db);
}

.cpn-link--faint:hover {
  color: var(--gray-400, #9ca3af);
}

.cpn-sep {
  color: var(--gray-200, #e5e7eb);
  font-size: 0.8rem;
  line-height: 1;
  user-select: none;
}

.cpn-legal {
  font-size: 0.67rem;
  color: var(--gray-300, #d1d5db);
  margin: 0.75rem 0 0;
}

.cpn-legal a {
  color: var(--gray-400, #9ca3af);
  text-decoration: none;
}

.cpn-legal a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .cpn-card {
    padding: 1.5rem 1.25rem 1.25rem;
  }
  .cpn-accept {
    font-size: 0.9rem;
  }
}

/* ==================== SETTINGS MODAL ==================== */
.cpn-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.cpn-modal.show {
    display: flex;
}

.cpn-modal-box {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
    animation: slideUp 0.4s ease;
}

.cpn-modal-header {
    background: var(--blue-900);
    color: white;
    padding: 24px;
}

.cpn-modal-header h2 {
    font-size: 1.25rem;
    margin: 0;
    color: white;
}

.cpn-modal-body {
    padding: 24px;
    max-height: 400px;
    overflow-y: auto;
}

.cpn-option {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-100);
}

.cpn-option:last-child {
    border-bottom: none;
}

.cpn-option-info h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--gray-800);
}

.cpn-option-info p {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin: 0;
}

/* Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: var(--gray-200);
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--orange-500);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

input:disabled + .slider {
    background-color: var(--gray-100);
    cursor: not-allowed;
}

.cpn-modal-footer {
  padding: 20px 24px;
  background: var(--gray-50);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.cpn-btn {
  padding: 10px 20px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.cpn-btn-primary {
  background: var(--blue-700);
  color: white;
}

.cpn-btn-primary:hover {
  background: var(--blue-900);
  transform: translateY(-2px);
}

.cpn-btn-outline {
  background: transparent;
  border: 1px solid var(--gray-300);
  color: var(--gray-600);
}

.cpn-btn-outline:hover {
  border-color: var(--gray-400);
  background: rgba(0, 0, 0, 0.02);
}
