/* Borlabs-inspiriert, an BarBae (Mahogany / Gold) angepasst */

.barbae-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100000;
  display: flex;
  justify-content: center;
  padding: 0 16px 16px;
  pointer-events: none;
}

.barbae-cookie-banner[hidden] {
  display: none !important;
}

.barbae-cookie-banner__inner {
  pointer-events: auto;
  width: 100%;
  max-width: 1100px;
  background: linear-gradient(180deg, #1f1c19 0%, #171512 100%);
  color: #f1ecdf;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06);
  padding: 22px 24px 20px;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

.barbae-cookie-banner__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.barbae-cookie-banner__icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(181, 158, 125, 0.18);
  color: #e1c48c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.barbae-cookie-banner__title {
  margin: 0 0 6px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
}

.barbae-cookie-banner__text {
  margin: 0;
  color: rgba(241, 236, 223, 0.88);
  max-width: 72ch;
}

.barbae-cookie-banner__text a {
  color: #e1c48c;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.barbae-cookie-banner__text a:hover {
  color: #f5e6c8;
}

.barbae-cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 16px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.barbae-cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.barbae-cookie-btn:focus-visible {
  outline: 2px solid #e1c48c;
  outline-offset: 2px;
}

.barbae-cookie-btn--primary {
  background: #584738;
  color: #f1ecdf;
  border-color: rgba(255, 255, 255, 0.12);
}

.barbae-cookie-btn--primary:hover {
  background: #6d5a47;
}

.barbae-cookie-btn--ghost {
  background: transparent;
  color: rgba(241, 236, 223, 0.92);
  border-color: rgba(255, 255, 255, 0.22);
}

.barbae-cookie-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
}

.barbae-cookie-btn--link {
  background: transparent;
  color: #c9b89a;
  border: none;
  padding-left: 10px;
  padding-right: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.barbae-cookie-btn--link:hover {
  color: #e1c48c;
}

/* Modal */
.barbae-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(12, 10, 8, 0.62);
  backdrop-filter: blur(4px);
}

.barbae-cookie-modal[hidden] {
  display: none !important;
}

body.barbae-cookie-modal-open {
  overflow: hidden;
}

.barbae-cookie-modal__card {
  width: 100%;
  max-width: 520px;
  max-height: min(88vh, 640px);
  overflow: auto;
  background: #faf8f3;
  color: #2c261f;
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  border: 1px solid #ddd6c9;
}

.barbae-cookie-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 12px;
  border-bottom: 1px solid #ddd6c9;
}

.barbae-cookie-modal__header h2 {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #584738;
}

.barbae-cookie-modal__close {
  border: none;
  background: #efe8da;
  color: #584738;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.barbae-cookie-modal__close:hover {
  background: #e4dccf;
}

.barbae-cookie-modal__body {
  padding: 16px 22px 22px;
  font-size: 14px;
  line-height: 1.55;
}

.barbae-cookie-category {
  border: 1px solid #ddd6c9;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: #fff;
}

.barbae-cookie-category__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.barbae-cookie-category__row h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: #2c261f;
}

.barbae-cookie-category__row p {
  margin: 0;
  color: #5c5348;
  font-size: 13px;
}

.barbae-cookie-switch {
  position: relative;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.barbae-cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.barbae-cookie-switch__ui {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #cec1a8;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.barbae-cookie-switch__ui::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 4px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.barbae-cookie-switch input:checked + .barbae-cookie-switch__ui {
  background: #584738;
}

.barbae-cookie-switch input:checked + .barbae-cookie-switch__ui::after {
  transform: translateX(20px);
}

.barbae-cookie-switch input:disabled + .barbae-cookie-switch__ui {
  opacity: 0.55;
  cursor: not-allowed;
}

.barbae-cookie-modal__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 8px;
}

.barbae-cookie-modal__footer .barbae-cookie-btn--primary {
  background: #584738;
  color: #f1ecdf;
}

.barbae-cookie-modal__footer .barbae-cookie-btn--primary:hover {
  background: #6d5a47;
}

.footer-cookie-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline;
}

.footer-cookie-link:hover {
  color: #e1c48c;
}

@media (max-width: 640px) {
  .barbae-cookie-banner__inner {
    padding: 18px 16px 16px;
    border-radius: 12px 12px 0 0;
  }

  .barbae-cookie-banner__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .barbae-cookie-btn {
    width: 100%;
  }
}
