/* ============================================
   COOKIE CONSENT – BOTTOM BAR
   ============================================ */

.c-cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: #1c1a17;
  color: #f0ece4;
  box-shadow: 0 -4px 32px rgba(0,0,0,0.25), 0 -1px 0 rgba(255,255,255,0.05);
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1);
  border-radius: 16px 16px 0 0;
}

.c-cookie-bar.is-visible {
  transform: translateY(0);
}

.c-cookie-bar__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  flex-wrap: wrap;
}

.c-cookie-bar__text {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.875rem;
  color: rgba(240,236,228,0.85);
  line-height: 1.5;
  max-width: 600px;
  flex: 1;
  min-width: 240px;
}

.c-cookie-bar__text a {
  color: #d4b896;
  text-decoration: underline;
}

.c-cookie-bar__actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.c-cookie-btn {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5rem 1.125rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.c-cookie-btn--accept {
  background: #3d6b52;
  color: #fff;
  border-color: #3d6b52;
}

.c-cookie-btn--accept:hover {
  background: #2e5140;
  border-color: #2e5140;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(61,107,82,0.4);
}

.c-cookie-btn--reject {
  background: transparent;
  color: rgba(240,236,228,0.7);
  border-color: rgba(240,236,228,0.2);
}

.c-cookie-btn--reject:hover {
  background: rgba(255,255,255,0.08);
  color: rgba(240,236,228,0.9);
  border-color: rgba(240,236,228,0.35);
}

.c-cookie-btn--customize {
  background: transparent;
  color: #d4b896;
  border-color: transparent;
  text-decoration: underline;
  padding-inline: 0.625rem;
}

.c-cookie-btn--customize:hover {
  color: #e8c8a0;
  background: rgba(212,184,150,0.08);
  text-decoration: none;
}


.c-cookie-bar__expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.c-cookie-bar__expand.is-open {
  max-height: 400px;
}

.c-cookie-bar__categories {
  padding: 1rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.c-cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.07);
}

.c-cookie-category__info {
  flex: 1;
}

.c-cookie-category__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(240,236,228,0.9);
  margin-bottom: 0.2rem;
}

.c-cookie-category__desc {
  font-size: 0.8125rem;
  color: rgba(240,236,228,0.5);
  line-height: 1.4;
}


.c-cookie-toggle {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.c-cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.c-cookie-toggle__slider {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.c-cookie-toggle__slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.c-cookie-toggle input:checked + .c-cookie-toggle__slider {
  background: #3d6b52;
}

.c-cookie-toggle input:checked + .c-cookie-toggle__slider::before {
  transform: translateX(18px);
}

.c-cookie-toggle input:disabled + .c-cookie-toggle__slider {
  cursor: not-allowed;
  opacity: 0.6;
}

.c-cookie-bar__expand-actions {
  padding: 0 1.5rem 1.25rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.625rem;
}

@media (max-width: 640px) {
  .c-cookie-bar__main {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.875rem;
  }

  .c-cookie-bar__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .c-cookie-btn--accept,
  .c-cookie-btn--reject {
    flex: 1;
    justify-content: center;
  }
}