/* FutCoach Cookie Consent Banner — kept in sync with www.futcoach.io */

.fc-cc-root,
.fc-cc-root * {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.fc-cc-root {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #111827;
}

.fc-cc-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2147483000;
  background: #ffffff;
  color: #111827;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(17, 31, 75, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  border: 1px solid rgba(17, 31, 75, 0.08);
}

@media (min-width: 760px) {
  .fc-cc-banner {
    flex-direction: row;
    align-items: center;
  }
}

.fc-cc-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
}

.fc-cc-text strong {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
  color: #111F4B;
}

.fc-cc-text a {
  color: #111F4B;
  text-decoration: underline;
}

.fc-cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.fc-cc-btn {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  background: #ffffff;
  color: #111F4B;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}

.fc-cc-btn:focus-visible {
  outline: 2px solid #4CAF50;
  outline-offset: 2px;
}

.fc-cc-btn--primary {
  background: #111F4B;
  color: #ffffff;
  border-color: #111F4B;
}

.fc-cc-btn--primary:hover {
  background: #0c1638;
  border-color: #0c1638;
}

.fc-cc-btn--secondary {
  background: #ffffff;
  color: #111F4B;
  border-color: #111F4B;
}

.fc-cc-btn--secondary:hover {
  background: rgba(17, 31, 75, 0.06);
}

.fc-cc-btn--ghost {
  background: transparent;
  color: #111F4B;
  border-color: rgba(17, 31, 75, 0.25);
}

.fc-cc-btn--ghost:hover {
  background: rgba(17, 31, 75, 0.05);
  border-color: rgba(17, 31, 75, 0.4);
}

/* Modal */
.fc-cc-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 31, 75, 0.45);
  z-index: 2147483100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.fc-cc-modal {
  background: #ffffff;
  color: #111827;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.fc-cc-modal-header {
  padding: 20px 24px 8px;
}

.fc-cc-modal-header h2 {
  margin: 0 0 6px;
  font-size: 20px;
  color: #111F4B;
}

.fc-cc-modal-header p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #4b5563;
}

.fc-cc-modal-body {
  padding: 8px 24px;
  overflow-y: auto;
}

.fc-cc-category {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid rgba(17, 31, 75, 0.08);
}

.fc-cc-category:first-child {
  border-top: none;
}

.fc-cc-category-text {
  flex: 1;
}

.fc-cc-category-text h3 {
  margin: 0 0 4px;
  font-size: 15px;
  color: #111F4B;
}

.fc-cc-category-text p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #4b5563;
}

/* Toggle */
.fc-cc-toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 24px;
  flex-shrink: 0;
}

.fc-cc-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.fc-cc-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cbd5e1;
  transition: .2s;
  border-radius: 999px;
}

.fc-cc-toggle-slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background-color: #ffffff;
  transition: .2s;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.fc-cc-toggle input:checked + .fc-cc-toggle-slider {
  background-color: #4CAF50;
}

.fc-cc-toggle input:checked + .fc-cc-toggle-slider::before {
  transform: translateX(16px);
}

.fc-cc-toggle input:disabled + .fc-cc-toggle-slider {
  background-color: #94a3b8;
  cursor: not-allowed;
  opacity: 0.85;
}

.fc-cc-modal-footer {
  padding: 16px 24px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  border-top: 1px solid rgba(17, 31, 75, 0.08);
  background: #f8fafc;
}

@media (prefers-color-scheme: dark) {
  .fc-cc-banner,
  .fc-cc-modal {
    background: #1d2428;
    color: #e5e7eb;
    border-color: rgba(255, 255, 255, 0.08);
  }
  .fc-cc-text strong,
  .fc-cc-modal-header h2,
  .fc-cc-category-text h3 {
    color: #ffffff;
  }
  .fc-cc-text a {
    color: #93c5fd;
  }
  .fc-cc-modal-header p,
  .fc-cc-category-text p {
    color: #cbd5e1;
  }
  .fc-cc-category {
    border-top-color: rgba(255, 255, 255, 0.08);
  }
  .fc-cc-modal-footer {
    background: #161c20;
    border-top-color: rgba(255, 255, 255, 0.08);
  }
  .fc-cc-btn--secondary {
    background: transparent;
    color: #e5e7eb;
    border-color: rgba(255, 255, 255, 0.5);
  }
  .fc-cc-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.08);
  }
  .fc-cc-btn--ghost {
    color: #e5e7eb;
    border-color: rgba(255, 255, 255, 0.3);
  }
  .fc-cc-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
  }
}
