
/* Banner */
.apconsent-banner{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  display: none;
  padding: 14px;
  background: rgba(0,0,0,.55);
}
.apconsent-banner.is-visible{ display:block; }

.apconsent-card{
  margin: 0 auto;
  width: min(980px, 100%);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 55px rgba(0,0,0,.25);
  overflow: hidden;
}
.apconsent-header{ padding: 12px 16px; border-bottom: 1px solid rgba(0,0,0,.08); }
.apconsent-title{ font-size: 16px; font-weight: 700; }
.apconsent-body{ padding: 12px 16px; }
.apconsent-message{ margin: 0 0 10px 0; }
.apconsent-links{ display:flex; flex-wrap:wrap; gap:10px 14px; margin: 0 0 10px 0; }
.apconsent-links a{ text-decoration: underline; }

.apconsent-actions{
  padding: 0 16px 14px 16px;
  display:flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* Modal */
.apconsent-modal{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  padding: 16px;
}
.apconsent-modal.is-visible{ display:flex; }

.apconsent-modal-card{
  width: min(760px, 100%);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 55px rgba(0,0,0,.25);
  overflow: hidden;
}

.apconsent-modal-header{
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  display:flex;
  align-items:center;
  justify-content: space-between;
}
.apconsent-x{
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.apconsent-modal-body{ padding: 14px 16px; }

.apconsent-row{
  display:flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.apconsent-row:last-child{ border-bottom:none; }
.apconsent-row-left{ flex: 1; }
.apconsent-row-title{ font-weight: 700; margin-bottom: 4px; }
.apconsent-row-desc{ font-size: 13px; opacity: .85; }
.apconsent-row-right{ display:flex; align-items:center; }

/* Switch */
.apconsent-switch{ position: relative; display:inline-block; width: 46px; height: 26px; }
.apconsent-switch input{ opacity:0; width:0; height:0; }
.apconsent-slider{
  position:absolute; cursor:pointer; inset:0;
  background:#ddd; border-radius: 999px;
  transition: .15s;
}
.apconsent-slider:before{
  content:""; position:absolute; height: 20px; width: 20px;
  left: 3px; top: 3px;
  background:#fff; border-radius: 50%;
  transition: .15s;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.apconsent-switch input:checked + .apconsent-slider{ background:#3b82f6; }
.apconsent-switch input:checked + .apconsent-slider:before{ transform: translateX(20px); }
.apconsent-switch input:disabled + .apconsent-slider{ opacity:.6; cursor:not-allowed; }

.apconsent-modal-actions{
  padding: 0 16px 14px 16px;
  display:flex;
  justify-content: flex-end;
}

.apconsent-footnote{
  padding: 12px 16px 16px 16px;
  font-size: 12px;
  opacity: .75;
}


/* Button fallback styles (in case theme doesn't use Bootstrap) */
.apconsent-btn{
  appearance: none;
  border: 1px solid rgba(0,0,0,.2);
  background: #fff;
  color: #111;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.1;
}
.apconsent-btn:hover{ filter: brightness(.98); }
.apconsent-btn:active{ transform: translateY(1px); }
.apconsent-btn:disabled{ opacity:.6; cursor:not-allowed; }

.apconsent-btn-sm{ padding: 8px 12px; font-weight: 700; border-radius: 10px; }

.apconsent-btn-secondary{
  background: #f6f6f6;
}

.apconsent-btn-reject{
  background: #fff;
  border-color: rgba(0,0,0,.35);
}

.apconsent-btn-accept{
  background: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
}
