/* =============================================
   MyCrawlBot — GDPR Cookie Consent Styles
   ============================================= */

/* ── BANNER ────────────────────────────────── */
.mcb-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.10);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

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

.mcb-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.mcb-banner-text {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.mcb-banner-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.mcb-banner-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #0a0a0a;
  margin-bottom: 6px;
  font-family: 'Inter', sans-serif;
}

.mcb-banner-text p {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.65;
  margin: 0 0 8px;
  font-family: 'Inter', sans-serif;
}

.mcb-policy-link {
  font-size: 0.8125rem;
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-family: 'Inter', sans-serif;
}
.mcb-policy-link:hover {
  color: #1d4ed8;
}

/* ── BANNER ACTIONS ────────────────────────── */
.mcb-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  min-width: 200px;
}

/* ── BUTTONS ───────────────────────────────── */
.mcb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 5px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
  white-space: nowrap;
  text-align: center;
  line-height: 1;
}
.mcb-btn:active {
  transform: scale(0.98);
}

.mcb-btn-primary {
  background: #0a0a0a;
  color: #ffffff;
}
.mcb-btn-primary:hover {
  background: #1a1a1a;
}

.mcb-btn-secondary {
  background: #f1f5f9;
  color: #0a0a0a;
  border: 1px solid #e2e8f0;
}
.mcb-btn-secondary:hover {
  background: #e2e8f0;
}

.mcb-btn-ghost {
  background: transparent;
  color: #64748b;
  border: 1px solid #e2e8f0;
}
.mcb-btn-ghost:hover {
  background: #f8fafc;
  color: #0a0a0a;
}

/* ── MODAL OVERLAY ─────────────────────────── */
.mcb-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mcb-modal-overlay.mcb-visible {
  opacity: 1;
  pointer-events: all;
}

/* ── MODAL BOX ─────────────────────────────── */
.mcb-modal {
  background: #ffffff;
  border-radius: 10px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.mcb-modal-overlay.mcb-visible .mcb-modal {
  transform: translateY(0) scale(1);
}

/* ── MODAL HEADER ──────────────────────────── */
.mcb-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 0;
}

.mcb-modal-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0a0a0a;
  font-family: 'Inter', sans-serif;
  margin: 0;
}

.mcb-modal-close {
  background: none;
  border: none;
  font-size: 1rem;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  transition: color 0.15s, background 0.15s;
  line-height: 1;
}
.mcb-modal-close:hover {
  color: #0a0a0a;
  background: #f1f5f9;
}

/* ── MODAL BODY ────────────────────────────── */
.mcb-modal-body {
  padding: 20px 28px;
}

.mcb-modal-intro {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.65;
  margin: 0 0 24px;
  font-family: 'Inter', sans-serif;
}
.mcb-modal-intro a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── COOKIE CATEGORY ROWS ──────────────────── */
.mcb-cookie-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #f1f5f9;
}
.mcb-cookie-row:last-child {
  border-bottom: none;
}

.mcb-cookie-info {
  flex: 1;
  min-width: 0;
}

.mcb-cookie-info strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0a0a0a;
  margin-bottom: 3px;
  font-family: 'Inter', sans-serif;
}

.mcb-cookie-info span {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.5;
  font-family: 'Inter', sans-serif;
}

/* ── TOGGLE SWITCH ─────────────────────────── */
.mcb-toggle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.mcb-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  cursor: pointer;
}

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

.mcb-slider {
  position: absolute;
  inset: 0;
  background: #e2e8f0;
  border-radius: 100px;
  transition: background 0.2s;
}

.mcb-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  transition: transform 0.2s;
}

.mcb-toggle input:checked + .mcb-slider {
  background: #0a0a0a;
}

.mcb-toggle input:checked + .mcb-slider::before {
  transform: translateX(20px);
}

.mcb-toggle input:focus-visible + .mcb-slider {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.mcb-toggle--locked {
  cursor: not-allowed;
  opacity: 0.6;
}

.mcb-always-on {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #10b981;
  font-family: 'Inter', sans-serif;
}

/* ── MODAL FOOTER ──────────────────────────── */
.mcb-modal-footer {
  display: flex;
  gap: 12px;
  padding: 20px 28px 24px;
  border-top: 1px solid #f1f5f9;
}

.mcb-modal-footer .mcb-btn {
  flex: 1;
}

/* ── PERSISTENT TRIGGER BUTTON — removed ── */

/* ── SCROLLBAR inside modal ────────────────── */
.mcb-modal::-webkit-scrollbar {
  width: 4px;
}
.mcb-modal::-webkit-scrollbar-track {
  background: transparent;
}
.mcb-modal::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 4px;
}

/* ── RESPONSIVE ────────────────────────────── */
@media (max-width: 768px) {
  .mcb-banner-inner {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
    align-items: stretch;
  }

  .mcb-banner-actions {
    min-width: unset;
    flex-direction: column;
    width: 100%;
  }

  .mcb-banner-text {
    gap: 12px;
  }

  .mcb-modal-footer {
    flex-direction: column;
  }

  .mcb-cookie-trigger {
    bottom: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .mcb-banner-inner {
    padding: 16px;
  }
  .mcb-modal-header,
  .mcb-modal-body,
  .mcb-modal-footer {
    padding-left: 20px;
    padding-right: 20px;
  }
}
