/* ============================================
   FRUIT.FUL cookie consent — matches V2 window DNA
   ============================================ */

.fr-consent {
  position: fixed;
  bottom: 20px;
  right: 20px;
  left: auto;
  width: min(440px, calc(100% - 40px));
  z-index: 99998;
  background: var(--bg, #FBFBFB);
  border: 3px solid var(--dark, #1A1A1A);
  box-shadow: 8px 8px 0 rgba(0,0,0,0.85);
  font-family: 'Space Grotesk', sans-serif;
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.25s ease;
}

.fr-consent.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.fr-consent-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--brand, #D63B1B);
  border-bottom: 3px solid var(--dark, #1A1A1A);
  user-select: none;
}

.fr-consent-bar-title {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: white;
}

.fr-consent-dots { display: flex; gap: 5px; }

.fr-consent-dot {
  width: 22px;
  height: 22px;
  border: 2px solid var(--dark, #1A1A1A);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 12px;
  line-height: 1;
}
.fr-consent-dot.d1 { background: #F2A7C3; }
.fr-consent-dot.d2 { background: #E87BA8; }
.fr-consent-dot.d3 { background: #D61B6A; color: white; }

.fr-consent-body {
  padding: 20px 22px 22px;
}

.fr-consent-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand, #D63B1B);
  margin-bottom: 8px;
}

.fr-consent h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--dark, #1A1A1A);
  margin: 0 0 10px;
}

.fr-consent p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--gray, #777);
  margin: 0 0 16px;
  font-weight: 300;
}

.fr-consent a {
  color: var(--brand, #D63B1B);
  text-decoration: none;
  border-bottom: 1px solid var(--brand, #D63B1B);
  font-weight: 500;
}

.fr-consent-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.fr-consent-btn {
  flex: 1 1 auto;
  min-width: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 11px 14px;
  border: 1px solid var(--dark, #1A1A1A);
  background: transparent;
  color: var(--dark, #1A1A1A);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.fr-consent-btn:hover {
  background: var(--dark, #1A1A1A);
  color: white;
}

.fr-consent-btn.fr-consent-primary {
  background: var(--brand, #D63B1B);
  color: white;
  border-color: var(--brand, #D63B1B);
  flex: 2 1 auto;
}

.fr-consent-btn.fr-consent-primary:hover {
  background: #B83218;
  border-color: #B83218;
}

/* ─── detailed view (categories) ─── */
.fr-consent-cat {
  border-top: 1px solid #E8E8E8;
  padding: 14px 0 8px;
}
.fr-consent-cat:first-of-type { border-top: none; padding-top: 4px; }

.fr-consent-cat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 4px;
}

.fr-consent-cat-head input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 34px;
  height: 20px;
  background: #E8E8E8;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
  margin: 0;
}
.fr-consent-cat-head input[type="checkbox"]::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.fr-consent-cat-head input[type="checkbox"]:checked {
  background: var(--brand, #D63B1B);
}
.fr-consent-cat-head input[type="checkbox"]:checked::before {
  transform: translateX(14px);
}
.fr-consent-cat-head input[type="checkbox"]:disabled {
  background: #BBB;
  cursor: default;
}

.fr-consent-cat-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark, #1A1A1A);
  flex-grow: 1;
}

.fr-consent-cat-meta {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #BBB;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.fr-consent-cat p {
  margin: 0;
  padding-left: 44px;
  font-size: 12px;
  color: var(--gray, #777);
}

/* ─── mobile ─── */
@media (max-width: 600px) {
  .fr-consent {
    right: 6px;
    left: 6px;
    bottom: 6px;
    width: auto;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.85);
  }
  .fr-consent-body { padding: 16px 16px 18px; }
  .fr-consent-actions { flex-direction: column; }
  .fr-consent-btn { flex: 0 0 auto; }
}
