/* ==========================================================
   BANCO SOL - COOKIE CONSENT
   ========================================================== */

.bs-cookie-banner{
  position:fixed;
  left:16px;
  right:16px;
  bottom:16px;
  display:none;
  justify-content:center;
  z-index:999999;
}

.bs-cookie-content{
  width:min(1320px,100%);
  background:#fff;
  display:flex;
  align-items:center;
  gap:20px;
  padding:16px 22px;
  border-radius:14px;
  border:1px solid rgba(245,180,0,.28);
  box-shadow:0 12px 35px rgba(0,0,0,.16);
}

.bs-cookie-content::before{
  content:"";
  width:54px;
  min-width:54px;
  height:54px;
  background:url("/assets/img/logo-banco-sol-footer.png") center/contain no-repeat;
}

.bs-cookie-content h3{
  margin:0;
  font-size:18px;
  font-weight:900;
  color:#111;
  line-height:1.2;
  white-space:nowrap;
}

.bs-cookie-content p{
  margin:0;
  color:#444;
  font-size:14px;
  line-height:1.45;
  max-width:640px;
}

.bs-cookie-actions{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:nowrap;
  white-space:nowrap;
}

.bs-cookie-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:140px;
  height:44px;
  padding:0 20px;
  border-radius:12px;
  font-size:14px;
  font-weight:800;
  cursor:pointer;
  transition:.25s ease;
}

.bs-cookie-btn.primary{
  background:#F5B400;
  color:#111;
  border:1px solid #F5B400;
}

.bs-cookie-btn.primary:hover{
  background:#DA9F00;
}

.bs-cookie-btn.secondary{
  background:#fff;
  color:#111;
  border:1px solid #F5B400;
}

.bs-cookie-btn.secondary:hover{
  background:#FFF7DA;
}

.bs-cookie-btn.link{
  min-width:auto;
  height:auto;
  padding:0;
  border:0;
  background:transparent;
  color:#111;
  border-radius:0;
  font-weight:800;
  border-bottom:2px solid #F5B400;
}

/* ================= MODAL ================= */

.bs-cookie-modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:25px;
  background:rgba(0,0,0,.65);
  backdrop-filter:blur(6px);
  z-index:1000000;
}

.bs-cookie-modal-box{
  width:min(860px,96vw);
  background:#fff;
  border-radius:20px;
  padding:32px;
  position:relative;
  box-shadow:0 30px 80px rgba(0,0,0,.35);
}

.bs-cookie-modal-box h2{
  margin:0 0 12px;
  font-size:28px;
  font-weight:900;
  color:#111;
}

.bs-cookie-close{
  position:absolute;
  right:20px;
  top:15px;
  background:none;
  border:none;
  font-size:34px;
  cursor:pointer;
  color:#111;
}

.bs-cookie-option{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding:18px 0;
  border-bottom:1px solid #ececec;
}

.bs-cookie-option h4{
  margin:0 0 6px;
  font-size:17px;
  font-weight:800;
  color:#111;
}

.bs-cookie-option p{
  margin:0;
  font-size:14px;
  color:#555;
  line-height:1.5;
}

/* ================= SWITCH ================= */

.bs-switch{
  width:58px;
  min-width:58px;
  height:32px;
  position:relative;
}

.bs-switch input{
  display:none;
}

.bs-switch span{
  position:absolute;
  inset:0;
  border-radius:30px;
  background:#d6d6d6;
  cursor:pointer;
  transition:.30s;
}

.bs-switch span:before{
  content:"";
  position:absolute;
  width:24px;
  height:24px;
  left:4px;
  top:4px;
  border-radius:50%;
  background:#fff;
  transition:.30s;
  box-shadow:0 3px 8px rgba(0,0,0,.25);
}

.bs-switch input:checked + span{
  background:#F5B400;
}

.bs-switch input:checked + span:before{
  transform:translateX(26px);
}

.bs-switch.disabled{
  opacity:.7;
}

.bs-cookie-modal-actions{
  display:flex;
  justify-content:flex-end;
  gap:14px;
  margin-top:26px;
}

/* ================= DESKTOP ================= */

@media (min-width:993px){
  .bs-cookie-content{
    flex-wrap:nowrap;
  }

  .bs-cookie-content p{
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .bs-cookie-actions{
    flex-wrap:nowrap;
  }
}

/* ================= MOBILE ================= */

@media (max-width:992px){
  .bs-cookie-banner{
    left:12px;
    right:12px;
    bottom:12px;
  }

  .bs-cookie-content{
    display:block;
    padding:22px;
  }

  .bs-cookie-content::before{
    display:block;
    margin-bottom:14px;
  }

  .bs-cookie-content h3{
    font-size:20px;
    white-space:normal;
    margin-bottom:10px;
  }

  .bs-cookie-content p{
    font-size:15px;
    line-height:1.6;
    max-width:none;
  }

  .bs-cookie-actions{
    margin-top:20px;
    display:grid;
    grid-template-columns:1fr;
    gap:12px;
  }

  .bs-cookie-btn{
    width:100%;
    min-width:100%;
  }

  .bs-cookie-btn.link{
    width:auto;
    min-width:auto;
    justify-self:center;
    border-bottom:2px solid #F5B400;
  }

  .bs-cookie-modal-box{
    padding:24px;
  }

  .bs-cookie-modal-actions{
    display:grid;
    grid-template-columns:1fr;
  }
}