/* AM Solutions - Custom Cookie Consent Banner Stylesheet */

.cookie-banner-glass {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 580px;
  background: var(--bg-glass);
  backdrop-filter: var(--blur-amount);
  -webkit-backdrop-filter: var(--blur-amount);
  border: var(--border-glass);
  border-radius: var(--border-radius-md);
  padding: 24px;
  z-index: 10000;
  box-shadow: var(--shadow-lg), 0 0 20px rgba(0, 0, 0, 0.15);
  font-family: var(--font-body);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
  animation: cookieSlideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.cookie-banner-hide {
  transform: translateY(40px) scale(0.95);
  opacity: 0;
  pointer-events: none;
}

.cookie-banner-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cookie-banner-text h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-banner-text p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

.cookie-banner-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-cookie-primary, .btn-cookie-secondary {
  padding: 10px 18px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-cookie-primary {
  background: var(--gradient-primary);
  color: var(--text-inverse);
  border: none;
  box-shadow: var(--shadow-sm);
}

.btn-cookie-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-cookie-secondary {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
  border: var(--border-glass);
}

.btn-cookie-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-color-hover);
}

/* Custom Settings Panel */
.cookie-settings-panel {
  transition: max-height 0.4s ease;
  max-height: 500px;
  overflow: hidden;
}

.cookie-settings-panel.hidden {
  max-height: 0;
  padding: 0;
}

.cookie-divider {
  border-color: var(--border-color);
  margin: 16px 0;
  opacity: 0.5;
}

.cookie-setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.cookie-setting-row:last-of-type {
  border-bottom: none;
}

.cookie-setting-info {
  flex: 1;
}

.cookie-setting-info h6 {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-setting-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin: 0;
}

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

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-tertiary);
  transition: .4s;
  border-radius: 24px;
  border: var(--border-glass);
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-secondary);
  transition: .4s;
  border-radius: 50%;
}

.switch-toggle input:checked + .slider {
  background: var(--gradient-primary);
}

.switch-toggle input:checked + .slider:before {
  transform: translateX(20px);
  background-color: var(--text-inverse);
}

.cookie-policy-link {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-align: center;
}

.cookie-policy-link a {
  color: var(--color-primary);
  text-decoration: none;
}

.cookie-policy-link a:hover {
  text-decoration: underline;
}

@keyframes cookieSlideUp {
  from { transform: translateY(50px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

@media (max-width: 576px) {
  .cookie-banner-glass {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 16px;
    max-height: 90vh !important;
    overflow-y: auto !important;
  }
  
  .cookie-banner-actions {
    justify-content: stretch;
  }
  
  .cookie-banner-actions button {
    flex: 1;
    text-align: center;
  }
}
