/* Cookie Consent Banner — socialgraffa clinical-white theme.
 * Adapted from the buggazi.com pattern; black accept pill, orange accents. */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #ffffff;
  border-top: 1px solid #ececea;
  box-shadow: 0 -4px 20px rgba(24, 24, 24, 0.08);
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  color: #191919;
}

.cookie-consent-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-consent-text {
  flex: 1;
  min-width: 280px;
}

.cookie-consent-text p {
  margin: 0;
  line-height: 1.5;
  color: #52504c;
}

.cookie-consent-text a {
  color: #ea580c;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
  font-family: inherit;
  min-height: 36px;
}

.cookie-btn-accept {
  background: #0a0a0a;
  color: #ffffff;
  border-color: #0a0a0a;
}
.cookie-btn-accept:hover {
  background: #262626;
}

.cookie-btn-reject {
  background: #f4f2ef;
  color: #191919;
  border-color: #dedcd8;
}
.cookie-btn-reject:hover {
  background: #e9e7e3;
}

.cookie-btn-customize {
  background: transparent;
  color: #52504c;
  border-color: #dedcd8;
}
.cookie-btn-customize:hover {
  background: #f4f2ef;
}

/* Details / Customize Panel */
.cookie-consent-details {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2rem 1.25rem;
}

.cookie-consent-categories {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #faf9f7;
  border: 1px solid #ececea;
  border-radius: 10px;
  cursor: pointer;
}

.cookie-category-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.cookie-category-info strong {
  font-size: 14px;
  color: #191919;
}
.cookie-category-info span {
  font-size: 12px;
  color: #8a8680;
}

.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.cookie-toggle input { display: none; }

.cookie-slider {
  position: relative;
  width: 44px;
  height: 24px;
  background: #dedcd8;
  border-radius: 12px;
  transition: background 0.2s;
  cursor: pointer;
}
.cookie-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(24, 24, 24, 0.2);
  transition: transform 0.2s;
}

.cookie-toggle input:checked + .cookie-slider {
  background: #f97316;
}
.cookie-toggle input:checked + .cookie-slider::after {
  transform: translateX(20px);
}

.cookie-slider-locked {
  background: #f97316;
  opacity: 0.45;
  cursor: not-allowed;
}
.cookie-slider-locked::after {
  transform: translateX(20px);
}

.cookie-always-on {
  font-size: 11px;
  color: #8a8680;
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
  .cookie-consent-inner {
    flex-direction: column;
    padding: 1rem 1.25rem;
    gap: 1rem;
  }
  .cookie-consent-actions {
    width: 100%;
    justify-content: stretch;
  }
  .cookie-btn {
    flex: 1;
    text-align: center;
    padding: 0.6rem 0.75rem;
  }
  .cookie-consent-details {
    padding: 0 1.25rem 1rem;
  }
}
