/* =========================================================
   BetWiz Cookie Consent (PRO-MINIMAL v3)
   Brand: #004bad (blue), #ee9219 (yellow)
========================================================= */

:root{
  --bw-blue:#004bad;
  --bw-yellow:#ee9219;
}

.hidden{ display:none !important; }

/* Backdrop */
.bw-consent-backdrop{
  position: fixed !important;
  inset: 0 !important;
  z-index: 9998;
  background: rgba(15, 23, 42, 0.45);
}

/* Modal */
.bw-consent-modal{
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) translateY(10px);
  z-index: 9999;

  width: min(560px, calc(100vw - 32px));
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(226,232,240,0.95);
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(15,23,42,0.24);
  padding: 16px 16px 14px;

  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
}

.bw-consent-modal:not(.hidden){
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
}

/* Header: ikonka + tekst w jednej linii */
.bw-consent-head{
  display:flex;
  align-items:flex-start;
  gap:12px;
}

/* Kontener na logo ma stały rozmiar i nie pozwala "wylać się" */
.bw-consent-icon{
  flex:0 0 64px;
  width:64px;
  height:64px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border-radius:12px; /* opcjonalnie */
}

/* Sam obrazek */
.bw-consent-logo{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

/* Close */
.bw-consent-close{
  position:absolute;
  right: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(226,232,240,0.95);
  background: rgba(255,255,255,0.95);
  cursor: pointer;
  color: #0f172a;
}

.bw-consent-title{
  font-weight: 900;
  color:#0f172a;
  font-size: 16px;
  line-height: 1.1;
}

.bw-consent-text{
  margin-top: 6px;
  color:#475569;
  font-size: 14px;
}

/* Status */
.bw-consent-status{
  margin-top: 10px;
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.bw-badge{
  font-size: 12.5px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(226,232,240,0.95);
  background: rgba(248,250,252,0.9);
  color: #0f172a;
}

.bw-badge--ok{
  background: rgba(0, 75, 173, 0.10);
  border-color: rgba(0, 75, 173, 0.25);
  color: var(--bw-blue);
}

.bw-badge--no{
  background: rgba(238, 146, 25, 0.14);
  border-color: rgba(238, 146, 25, 0.35);
  color: #8a4b00;
}

.bw-badge--pending{
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

.bw-status-meta{
  color:#64748b;
  font-size: 12.5px;
  font-weight: 700;
}

/* Cards */
.bw-consent-card{
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(226,232,240,0.95);
  border-radius: 16px;
  background: rgba(248,250,252,0.65);
}

.bw-consent-card--tight{ margin-top: 10px; }

.bw-consent-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.bw-consent-row-title{
  font-weight: 950;
  color:#0f172a;
  font-size: 14px;
}

.bw-consent-row-desc{
  margin-top: 4px;
  color:#64748b;
  font-size: 13px;
  max-width: 380px;
}

/* Pill */
.bw-pill{
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 75, 173, 0.25);
  background: rgba(0, 75, 173, 0.10);
  color: var(--bw-blue);
  white-space: nowrap;
}

/* Switch */
.bw-switch{
  position: relative;
  width: 46px;
  height: 26px;
  flex: 0 0 auto;
}

.bw-switch input{
  position:absolute;
  opacity:0;
  inset:0;
  cursor:pointer;
}

.bw-switch-ui{
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.10);
  border: 1px solid rgba(15, 23, 42, 0.18);
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.bw-switch input:checked + .bw-switch-ui{
  background: rgba(0, 75, 173, 0.35);
  border-color: rgba(0, 75, 173, 0.45);
  box-shadow: 0 10px 25px rgba(0, 75, 173, 0.18);
}

.bw-switch-ui::after{
  content:"";
  position:absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius:999px;
  background:#fff;
  transition: transform .15s ease, box-shadow .15s ease;
}

.bw-switch input:checked + .bw-switch-ui::after{
  transform: translateX(20px);
}

/* Links */
.bw-consent-links{
  margin-top: 12px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  font-size: 13px;
}

.bw-consent-links a{
  color: var(--bw-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Actions */
.bw-consent-actions{
  display:flex;
  gap:10px;
  margin-top: 14px;
  justify-content:flex-end;
  flex-wrap:wrap;
}

.bw-consent-actions--2{
  justify-content: flex-end;
}

.bw-btn{
  border-radius: 12px;
  padding: 10px 14px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
}

.bw-btn--ghost{
  background: transparent;
  border-color: rgba(226,232,240,0.95);
  color: #0f172a;
}

.bw-btn--primary{
  background: var(--bw-blue);
  color:#fff;
}

/* Floating button */
.bw-consent-fab{
  position: fixed !important;
  left: 18px !important;
  bottom: 18px !important;
  z-index: 9999;

  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(226,232,240,0.95);
  background: rgba(255,255,255,0.97);
  box-shadow: 0 18px 55px rgba(15,23,42,0.22);
  cursor: pointer;

  display:flex;
  align-items:center;
  justify-content:center;
}

.bw-consent-fab:hover{ transform: translateY(-1px); }

.bw-cookie-svg{
  width: 30px;
  height: 30px;
  display:block;
}

/* Mobile */
@media (max-width: 520px){
  .bw-consent-modal{
    width: calc(100vw - 24px);
    padding: 14px 14px 12px;
    border-radius: 16px;
  }

  .bw-consent-actions{
    justify-content: stretch;
  }
  .bw-consent-actions .bw-btn{
    flex: 1 1 auto;
  }

  .bw-consent-row-desc{ max-width: 260px; }
}
