/* assets/css/consent.css */

.roleta-consent-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9998;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.roleta-consent-overlay.open {
  display: flex;
}

.roleta-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #fff;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
  border-radius: 16px 16px 0 0;
  padding: 24px;
  max-width: 960px;
  margin: 0 auto;
  display: none;
  animation: slideUp 0.35s ease-out;
}

.roleta-consent-banner.open {
  display: block;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.roleta-consent-banner h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #111;
}

.roleta-consent-banner p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
  margin-bottom: 12px;
}

.roleta-consent-banner .links a {
  font-size: 0.85rem;
  color: #0056b3;
  text-decoration: none;
  margin-right: 12px;
}

.roleta-consent-banner .links a:hover {
  text-decoration: underline;
}

.roleta-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.roleta-consent-actions .btn {
  flex: 1 1 auto;
  min-width: 120px;
  border-radius: 8px;
  font-weight: 500;
  padding: 10px 14px;
  border: none;
  cursor: pointer;
  text-align: center;
  font-size: 0.95rem;
}

.roleta-consent-actions .btn-primary {
  background: #0056b3;
  color: #fff;
}

.roleta-consent-actions .btn-secondary {
  background: #f1f3f5;
  color: #212529;
}

.roleta-consent-actions .btn-outline {
  background: transparent;
  color: #0056b3;
  border: 1px solid #0056b3;
}

.roleta-consent-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.roleta-consent-modal-backdrop.open {
  display: flex;
}

.roleta-consent-modal {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  padding: 24px;
}

.roleta-consent-modal h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: #111;
}

.roleta-consent-category {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #e9ecef;
}

.roleta-consent-category:last-child {
  border-bottom: none;
}

.roleta-consent-category .cat-info h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 4px;
  color: #111;
}

.roleta-consent-category .cat-info p {
  font-size: 0.85rem;
  color: #555;
  margin: 0;
  line-height: 1.4;
}

.roleta-consent-toggle {
  position: relative;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
  margin-left: 12px;
}

.roleta-consent-toggle input {
  opacity: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
}

.roleta-consent-toggle .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #ccc;
  border-radius: 28px;
  transition: 0.2s;
}

.roleta-consent-toggle .slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}

.roleta-consent-toggle input:checked + .slider {
  background: #0056b3;
}

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

.roleta-consent-toggle input:disabled + .slider {
  opacity: 0.7;
  cursor: not-allowed;
}

.roleta-consent-toggle .status {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #888;
}

.roleta-consent-toggle input:checked ~ .status {
  color: #0056b3;
}

.roleta-consent-modal .modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  justify-content: flex-end;
}

.roleta-consent-modal .modal-actions .btn {
  border-radius: 8px;
  font-weight: 500;
  padding: 10px 16px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.roleta-footer-link {
  font-size: 0.85rem;
  color: #888;
  text-decoration: none;
}

.roleta-footer-link:hover {
  color: #555;
  text-decoration: underline;
}

@media (max-width: 576px) {
  .roleta-consent-banner {
    padding: 18px;
    border-radius: 12px 12px 0 0;
  }
  .roleta-consent-actions {
    flex-direction: column;
  }
  .roleta-consent-actions .btn {
    width: 100%;
  }
  .roleta-consent-modal {
    padding: 18px;
  }
}
