/* =========================
   COOKIE CONSENT (Milas style)
   ========================= */
:root{
  --cc-bg: rgba(0,0,0,.55);
  --cc-panel: #0f1726; /* как футер */
  --cc-border: rgba(255,255,255,.10);
  --cc-card: rgba(255,255,255,.04);
  --cc-card2: rgba(255,255,255,.06);
  --cc-text: #d6d9e4;
  --cc-muted: rgba(214,217,228,.75);
  --cc-radius: 16px;
}

.cc2-overlay{
  position: fixed;
  inset: 0;
  background: var(--cc-bg);
  z-index: 99998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.cc2-overlay.is-open{
  opacity: 1;
  pointer-events: auto;
}

/* bottom panel */
.cc2-panel{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;

  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)), var(--cc-panel);
  border-top: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 -18px 70px rgba(0,0,0,.45);

  transform: translateY(110%);
  transition: transform .22s ease;
}

.cc2-panel.is-open{
  transform: translateY(0);
}

.cc2-inner{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 16px 14px;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 14px;
  align-items: start;
}

.cc2-title{
  margin: 0 0 6px;
  color: #fff;
  font-weight: 900;
  letter-spacing: .2px;
  font-size: 14px;
  text-transform: uppercase;
  opacity: .95;
}

.cc2-text{
  margin: 0;
  color: var(--cc-muted);
  font-size: 13px;
  line-height: 1.55;
}

.cc2-links{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.cc2-link{
  display:inline-flex;
  padding: 9px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: rgba(214,217,228,.92);
  font-size: 12.5px;
}
.cc2-link:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  color:#fff;
}

/* right side "cards" */
.cc2-box{
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  border-radius: 16px;
  padding: 10px;
}

.cc2-row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.cc2-row:last-child{ border-bottom: 0; }

.cc2-row b{
  display:block;
  color:#fff;
  font-size: 13px;
  font-weight: 850;
}
.cc2-row span{
  display:block;
  margin-top: 2px;
  color: var(--cc-muted);
  font-size: 11.8px;
  line-height: 1.25;
}

/* switch */
.cc2-switch{
  position: relative;
  width: 46px;
  height: 28px;
  flex: 0 0 auto;
}
.cc2-switch input{
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
}
.cc2-slider{
  position:absolute;
  inset:0;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  transition: .2s ease;
}
.cc2-slider:after{
  content:"";
  position:absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
  transition: .2s ease;
}
.cc2-switch input:checked + .cc2-slider{
  background: rgba(214,31,44,.35);
  border-color: rgba(214,31,44,.55);
}
.cc2-switch input:checked + .cc2-slider:after{ left: 21px; background:#fff; }
.cc2-switch input:disabled + .cc2-slider{ opacity:.55; cursor:not-allowed; }

/* actions */
.cc2-actions{
  grid-column: 1 / -1;
  display:flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 6px;
}

.cc2-btn{
  appearance:none;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 850;
  font-size: 13px;
  cursor: pointer;
}
.cc2-btn:hover{ background: rgba(255,255,255,.08); }

.cc2-btn--primary{
  border-color: rgba(214,31,44,.55);
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  box-shadow: 0 10px 26px rgba(214, 31, 44, .28);
}
.cc2-btn--primary:hover{ filter: brightness(1.03); }

.cc2-btn--ghost{
  background: transparent;
  border-color: rgba(255,255,255,.12);
}

.cc2-x{
  position:absolute;
  right: 12px;
  top: 10px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color:#fff;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size: 18px;
  line-height: 1;
}
.cc2-x:hover{ background: rgba(255,255,255,.10); }

/* mobile */
@media (max-width: 820px){
  .cc2-inner{ grid-template-columns: 1fr; }
  .cc2-x{ top: 8px; }
}

/* =========================
   CONSENT buttons layout
   ========================= */
.cc2-actions{
  grid-column: 1 / -1;
  display:flex;
  flex-direction: column;   /* главное: accept отдельно */
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-top: 6px;
}

/* Aceptar todo — один в ряду и шире */
.cc2-btn--accept{
  width: min(520px, 100%);  /* на мобилке почти во всю ширину */
  padding: 12px 18px;       /* чуть крупнее */
  font-size: 14px;
}

/* Нижний ряд с двумя меньшими кнопками */
.cc2-actions-sub{
  width: min(520px, 100%);
  display:flex;
  gap: 10px;
  justify-content: center;
}

/* Эти две кнопки меньше, чем Accept */
.cc2-actions-sub .cc2-btn{
  flex: 1 1 auto;
  padding: 10px 14px;
  font-size: 13px;
  opacity: .98;
}

/* Если хочешь, чтобы "Guardar" была чуть шире "Rechazar" */
@media (max-width: 520px){
  .cc2-actions-sub .cc2-btn{ width: 50%; }
}
