/* Cookie consent — Closyfy marketing site (Essembl-style preferences UI) */

.cc-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  padding: 20px 24px;
  background: #fff;
  border-top: 1px solid #E5E5EA;
  box-shadow: 0 -8px 32px rgba(58, 46, 38, 0.08);
  transform: translateY(110%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.cc-banner.cc-visible {
  transform: translateY(0);
}

.cc-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.cc-banner-text {
  flex: 1 1 280px;
  font-size: 14px;
  line-height: 1.55;
  color: #3A2E26;
  max-width: 56ch;
}

.cc-banner-text a {
  color: #B6875A;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cc-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.cc-btn {
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}

.cc-btn:active { transform: scale(0.98); }

.cc-btn-primary {
  background: #3A2E26;
  color: #fff;
}

.cc-btn-primary:hover { opacity: 0.9; }

.cc-btn-secondary {
  background: transparent;
  color: #3A2E26;
  border: 1px solid #3A2E26;
}

.cc-btn-secondary:hover { background: #FAF5F0; }

.cc-btn-ghost {
  background: transparent;
  color: #7A6A5A;
  text-decoration: underline;
  padding: 12px 8px;
}

/* Modal */
.cc-overlay {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(58, 46, 38, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.cc-overlay.cc-open {
  opacity: 1;
  visibility: visible;
}

.cc-modal {
  position: fixed;
  inset: 24px;
  z-index: 2110;
  margin: auto;
  max-width: 640px;
  max-height: min(90vh, 820px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(58, 46, 38, 0.18);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.96) translateY(8px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}

.cc-modal.cc-open {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
}

.cc-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px 28px 0;
  flex-shrink: 0;
}

.cc-modal-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 32px;
  font-weight: 500;
  color: #3A2E26;
  line-height: 1.1;
}

.cc-close {
  width: 36px;
  height: 36px;
  border: none;
  background: #FAF5F0;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  color: #7A6A5A;
  cursor: pointer;
  flex-shrink: 0;
}

.cc-close:hover { background: #F5EDE4; color: #3A2E26; }

.cc-modal-body {
  padding: 20px 28px;
  overflow-y: auto;
  flex: 1;
}

.cc-modal-intro {
  font-size: 14px;
  line-height: 1.6;
  color: #7A6A5A;
  margin-bottom: 24px;
}

.cc-modal-intro a {
  color: #3A2E26;
  text-decoration: underline;
}

.cc-category {
  border-top: 1px solid #E5E5EA;
  padding: 18px 0;
}

.cc-category:first-of-type { border-top: none; padding-top: 0; }

.cc-category-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.cc-category-head input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: #3A2E26;
  flex-shrink: 0;
}

.cc-category-head input:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.cc-category-label {
  flex: 1;
}

.cc-category-title {
  font-size: 15px;
  font-weight: 600;
  color: #3A2E26;
  margin-bottom: 6px;
}

.cc-category-title button.cc-details-toggle {
  font: inherit;
  font-weight: 600;
  background: none;
  border: none;
  padding: 0;
  margin-left: 4px;
  color: #3A2E26;
  text-decoration: underline;
  cursor: pointer;
}

.cc-category-desc {
  font-size: 13px;
  line-height: 1.55;
  color: #7A6A5A;
}

.cc-details-panel {
  display: none;
  margin-top: 16px;
  overflow-x: auto;
}

.cc-details-panel.cc-open { display: block; }

.cc-details-provider {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7A6A5A;
  margin: 16px 0 8px;
}

.cc-details-provider:first-child { margin-top: 0; }

.cc-cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 520px;
}

.cc-cookie-table thead th {
  background: #3A2E26;
  color: #fff;
  text-align: left;
  padding: 10px 12px;
  font-weight: 500;
}

.cc-cookie-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #E5E5EA;
  vertical-align: top;
  color: #3A2E26;
}

.cc-cookie-table tbody tr:last-child td { border-bottom: none; }

.cc-modal-footer {
  padding: 16px 28px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
  border-top: 1px solid #E5E5EA;
}

.cc-modal-footer .cc-btn { flex: 1 1 140px; text-align: center; }

@media (max-width: 600px) {
  .cc-modal { inset: 0; max-width: none; max-height: none; border-radius: 0; }
  .cc-banner-inner { flex-direction: column; align-items: stretch; }
  .cc-banner-actions { flex-direction: column; }
  .cc-banner-actions .cc-btn { width: 100%; text-align: center; }
  .cc-modal-footer { flex-direction: column; }
}
