/* Overlay */
.svcc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 9998;
}

.svcc-overlay.svcc-visible {
  opacity: 1;
  visibility: visible;
}

/* Banner (modal) */
.svcc-banner {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.svcc-banner.svcc-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.svcc-banner-inner {
  max-width: 840px;
  width: 100%;
  background: #ffffff;
  border-radius: 1.5rem;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.28);
  padding: 2rem;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .svcc-banner-inner {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 2.25rem 2.5rem;
  }
}

/* Icono cookie */
.svcc-banner-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.svcc-cookie-img {
  width: 140px;     /* fuerza que se vea grande */
  height: auto;
  display: block;
}



.svcc-cookie-bite {
  position: absolute;
  top: 12px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: #ffffff;
  border-radius: 999px;
  box-shadow:
    inset 0 0 0 1px rgba(148, 163, 184, 0.3),
    0 0 0 6px rgba(255, 255, 255, 0.65);
}

/* Textos */
.svcc-banner-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.svcc-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
}

.svcc-text {
  margin: 0;
  font-size: .95rem;
  line-height: 1.6;
  color: #4b5563;
}

.svcc-link-text {
  margin: 0;
  font-size: .85rem;
}

.svcc-policy-link {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.svcc-policy-link:hover {
  text-decoration-thickness: 2px;
}

/* Botones principales */
.svcc-buttons-main {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
    margin-top: 1.5rem;
    justify-content: flex-end;
}

.svcc-btn {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: .55rem 1.25rem;
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}

.svcc-btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}

.svcc-btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.svcc-btn-secondary {
  background: #e5e7eb;
  color: #111827;
}

.svcc-btn-secondary:hover {
  background: #d1d5db;
}

.svcc-btn-outline {
  background: #ffffff;
  color: #111827;
  border-color: #d1d5db;
}

.svcc-btn-outline:hover {
  border-color: #9ca3af;
}

/* Panel de configuración */
.svcc-config-panel {
  margin-top: 1.25rem;
  border-radius: 1.1rem;
  background: #f9fafb;
  padding: 1rem 1.25rem;
  border: 1px solid #e5e7eb;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: all .25s ease;
}

.svcc-config-panel.svcc-open {
  max-height: 650px;
  opacity: 1;
  transform: translateY(0);
}

.svcc-config-title {
  margin: 0 0 .75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
}

/* Filas */
.svcc-row {
  border-radius: .9rem;
  background: #ffffff;
  padding: .75rem .9rem;
  margin-bottom: .6rem;
  border: 1px solid #e5e7eb;
}

.svcc-row-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: .5rem;
}

.svcc-row-title {
  font-size: .9rem;
  font-weight: 500;
  color: #111827;
}

.svcc-row-badge {
  font-size: .75rem;
  padding: .25rem .5rem;
  border-radius: 999px;
  background: #e5e7eb;
  color: #374151;
}

/* Botón desplegar descripción */
.svcc-row-toggle {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: .15rem .25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.svcc-row-toggle-icon {
  font-size: .75rem;
  display: inline-block;
  transition: transform .2s ease;
}

.svcc-row-toggle.svcc-open .svcc-row-toggle-icon {
  transform: rotate(180deg);
}

/* Descripción */
.svcc-row-desc {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease, opacity .25s ease;
  opacity: 0;
  margin-top: .15rem;
}

.svcc-row-desc p {
  margin: .5rem 0 0;
  font-size: .8rem;
  color: #4b5563;
}

.svcc-row-desc.svcc-open {
  max-height: 200px;
  opacity: 1;
}

/* Switch con check a la derecha */
.svcc-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  width: 46px;
  height: 24px;
}

.svcc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.svcc-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background-color: #e5e7eb;
  transition: .2s;
}

.svcc-slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(148, 163, 184, 0.7);
  transition: .2s;
}

.svcc-switch input:checked + .svcc-slider {
  background-color: #22c55e;
}

.svcc-switch input:checked + .svcc-slider::before {
  transform: translateX(22px);
}

/* Botones del configurador */
.svcc-buttons-config {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  margin-top: .75rem;
}

/* Botón flotante para reabrir */
.svcc-reopen {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  padding: .45rem .9rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  color: #f9fafb;
  font-size: .8rem;
  text-decoration: none;
  z-index: 9997;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.4);
}

.svcc-reopen:hover {
  background: rgba(15, 23, 42, 1);
}

@media (max-width: 480px) {
  .svcc-banner-inner {
    padding: 1.5rem;
  }
  .svcc-buttons-main {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .svcc-btn {
    width: 100%;
    text-align: center;
  }
}
