/* Cookie Consent – FreshBeans */
:root {
  --cookie-primary: #b8894e;
  --cookie-primary-dark: #8f6838;
  --cookie-primary-light: #d4ad79;
}

.cookie-banner {
  position: fixed;
  z-index: 10000;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: none;
  flex-direction: column;
  gap: 16px;
  width: min(600px, calc(100% - 48px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 24px;
  color: #f8fafc;
  background: rgba(15, 15, 16, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: cookieSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

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

.cookie-banner-main,
.cookie-content {
  width: 100%;
}

.cookie-banner-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cookie-title,
.cookie-settings-title {
  margin: 0 0 8px;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}

.cookie-title { font-size: 1.1rem; text-align: center; }
.cookie-settings-title { font-size: 0.95rem; }

.cookie-text {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.55;
  text-align: center;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.cookie-btn {
  padding: 10px 18px;
  border: 0;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cookie-btn:focus-visible {
  outline: 3px solid var(--cookie-primary-light);
  outline-offset: 3px;
}

.cookie-btn-accept {
  color: #111;
  background: var(--cookie-primary);
}

.cookie-btn-accept:hover {
  background: var(--cookie-primary-light);
  transform: translateY(-1px);
}

.cookie-btn-reject {
  color: #cbd5e1;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.cookie-btn-reject:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.cookie-btn-settings {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-btn-settings:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.cookie-settings-panel {
  width: 100%;
  margin-top: 4px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-settings-panel[hidden] { display: none; }

.cookie-settings-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.cookie-option {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.cookie-switch-label {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  cursor: pointer;
}

.cookie-switch-label input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.cookie-switch-custom {
  position: relative;
  flex: 0 0 auto;
  width: 38px;
  height: 20px;
  margin-top: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  transition: background-color 0.25s ease;
}

.cookie-switch-custom::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  content: '';
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s ease;
}

.cookie-switch-label input:focus-visible + .cookie-switch-custom {
  outline: 3px solid var(--cookie-primary-light);
  outline-offset: 3px;
}

.cookie-switch-label input:checked + .cookie-switch-custom {
  background: var(--cookie-primary);
}

.cookie-switch-label input:checked + .cookie-switch-custom::after {
  transform: translateX(18px);
}

.cookie-switch-label input:disabled + .cookie-switch-custom {
  cursor: not-allowed;
  opacity: 0.65;
}

.cookie-option-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cookie-option-name {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
}

.cookie-option-desc {
  color: #94a3b8;
  font-size: 0.75rem;
  line-height: 1.4;
}

.cookie-services-list {
  margin-top: 6px;
  color: var(--cookie-primary-light);
  font-size: 0.72rem;
  line-height: 1.35;
}

.cookie-settings-actions {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 640px) {
  .cookie-banner {
    right: 16px;
    bottom: 16px;
    left: 16px;
    width: calc(100% - 32px);
    max-height: calc(100vh - 32px);
    padding: 20px;
    border-radius: 16px;
  }

  .cookie-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-btn { width: 100%; }
}

.cookie-text a {
  color: var(--cookie-primary-light);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.cookie-text a:hover { color: #fff; }
