/* ===== Banner Rotativo ===== */

.scj-banner-section{
  padding:42px 0 52px;
}

.scj-banner-section .container{
  width:min(1100px, calc(100% - 32px));
  margin-left:auto;
  margin-right:auto;
}

.scj-banner-section-title{
  margin:0 0 20px;
  text-align:center;
  font-size:clamp(24px,3vw,34px);
  font-weight:900;
}

.scj-banner-manage{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 auto 14px;
  min-height:42px;
  padding:9px 16px;
  border:1px solid #d4b66f;
  border-radius:999px;
  background:#fff;
  color:#0b2948;
  font:700 13px Arial,sans-serif;
  cursor:pointer;
  box-shadow:0 7px 20px rgba(11,41,72,.1);
}

.scj-banner-manage:hover{background:#f7f2e9}

.scj-banner-toolbar{
  width:100%;
  max-width:560px;
  margin:0 auto 14px;
  padding:12px 14px;
  border:1px solid rgba(31,122,74,.18);
  border-radius:14px;
  background:#f7f7f7;
  box-shadow:0 8px 20px rgba(0,0,0,.06);
}

.scj-banner-toolbar-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.scj-banner-toolbar strong{
  color:#0f5b35;
}

.scj-banner-count{
  margin-top:3px;
  color:#6b6b6b;
  font-size:12px;
}

.scj-banner-add{
  flex:0 0 auto;
  width:44px;
  height:44px;
  border:0;
  border-radius:50%;
  color:#fff;
  background:#198754;
  font-size:28px;
  line-height:1;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(25,135,84,.25);
}

.scj-banner-stage{
  position:relative;
  width:100%;
  max-width:560px;
  margin:0 auto;
}

.scj-banner-carousel{
  position:relative;
  width:100%;
  max-width:560px;
  aspect-ratio:1080 / 1350;
  height:auto;
  margin:0 auto;
  overflow:hidden;
  border-radius:22px;
  background:#f7f7f7;
  box-shadow:0 14px 32px rgba(0,0,0,.14);
}


.scj-banner-track{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}

.scj-banner-slide{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .45s ease;
}

.scj-banner-slide.is-active{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

.scj-banner-link{
  display:block;
  width:100%;
  height:100%;
}

.scj-banner-image-wrap{
  position:relative;
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background:#f7f7f7;
}

.scj-banner-slide img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover !important;
  object-position:center center !important;
}

.scj-banner-admin-actions{
  position:absolute;
  top:12px;
  right:12px;
  z-index:8;
  display:none;
  gap:8px;
}

.scj-banner-runtime.is-managing .scj-banner-admin-actions{display:flex}

.scj-banner-admin-actions button{
  min-height:36px;
  padding:8px 12px;
  border:0;
  border-radius:999px;
  background:rgba(255,255,255,.95);
  box-shadow:0 6px 18px rgba(0,0,0,.2);
  font-size:12px;
  font-weight:900;
  cursor:pointer;
}

.scj-banner-move-up,.scj-banner-move-down{color:#173c66}

.scj-banner-edit{
  color:#0f5b35;
}

.scj-banner-delete{
  color:#aa1e2d;
}

.scj-banner-nav{
  position:absolute;
  top:50%;
  z-index:10;
  transform:translateY(-50%);
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:50%;
  color:#fff;
  background:rgba(0,0,0,.48);
  font-size:25px;
  font-weight:900;
  cursor:pointer;
}

.scj-banner-navigation{
  width:min(560px,100%);
  margin:18px auto 0;
  display:grid;
  grid-template-columns:48px 1fr 48px;
  align-items:center;
  gap:12px;
}

.scj-banner-prev,.scj-banner-next{
  width:48px;
  height:48px;
  padding:0;
  display:grid;
  place-items:center;
  border:1px solid rgba(23,60,102,.18);
  border-radius:50%;
  background:#fff;
  color:#173c66;
  font-size:25px;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 7px 20px rgba(11,41,72,.13);
}

.scj-banner-prev:hover,.scj-banner-next:hover{background:#173c66;color:#fff}

.scj-banner-dots{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:7px;
  margin-top:0;
}

.scj-banner-dot{
  width:10px;
  height:10px;
  padding:0;
  border:0;
  border-radius:50%;
  background:#c7c7c7;
  cursor:pointer;
}

.scj-banner-dot.is-active{
  background:#198754;
}

.scj-banner-empty{
  max-width:1080px;
  margin:0 auto;
  padding:34px 20px;
  border:1px dashed rgba(31,122,74,.3);
  border-radius:18px;
  text-align:center;
  background:#f7f7f7;
}

/* Modal do gerenciador */
.scj-banner-modal[hidden]{
  display:none;
}

.scj-banner-modal{
  position:fixed;
  inset:0;
  z-index:100000;
  display:grid;
  place-items:center;
  padding:18px;
}

.scj-banner-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.7);
}

.scj-banner-dialog{
  position:relative;
  z-index:1;
  width:min(650px,100%);
  max-height:calc(100vh - 36px);
  overflow:auto;
  padding:26px;
  border-radius:22px;
  background:#f7f7f7;
  box-shadow:0 24px 70px rgba(0,0,0,.4);
}

.scj-banner-dialog h2{
  margin:0;
  color:#0f5b35;
}

.scj-banner-help{
  margin:8px 40px 18px 0;
  color:#6b6b6b;
}

.scj-banner-close{
  position:absolute;
  top:14px;
  right:14px;
  width:38px;
  height:38px;
  border:0;
  border-radius:50%;
  background:#efefef;
  font-size:24px;
  cursor:pointer;
}

.scj-banner-form{
  display:grid;
  gap:15px;
}

.scj-banner-form label{
  display:grid;
  gap:7px;
  font-weight:800;
}

.scj-banner-form input{
  width:100%;
  min-height:44px;
  padding:10px 12px;
  border:1px solid rgba(0,0,0,.16);
  border-radius:12px;
  font:inherit;
}

.scj-banner-preview{
  width:min(100%, 300px);
  aspect-ratio:1080/1350;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border:1px dashed rgba(31,122,74,.35);
  border-radius:16px;
  background:#f7f7f7;
}

.scj-banner-preview img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  background:#f7f7f7;
}

.scj-banner-select-image{
  min-height:44px;
  border:1px solid rgba(31,122,74,.25);
  border-radius:12px;
  color:#0f5b35;
  background:rgba(31,122,74,.08);
  font-weight:900;
  cursor:pointer;
}

.scj-banner-message{
  min-height:22px;
  color:#9b172b;
  font-weight:800;
}

.scj-banner-form-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
}

.scj-banner-form-actions button{
  min-height:44px;
  padding:10px 16px;
  border-radius:999px;
  font-weight:900;
  cursor:pointer;
}

.scj-banner-cancel{
  border:1px solid rgba(0,0,0,.14);
  background:#f7f7f7;
}

.scj-banner-save{
  border:0;
  color:#fff;
  background:#198754;
}

@media(max-width:620px){
  .scj-banner-section{
    padding:34px 0 42px;
  }

  .scj-banner-section .container{
    width:calc(100% - 24px);
  }

  .scj-banner-stage,
  .scj-banner-carousel{
    max-width:1080px;
  }

  .scj-banner-carousel{
    width:100%;
    height:auto;
    aspect-ratio:1080 / 1350;
  }

  .scj-banner-nav{
    width:38px;
    height:38px;
  }

  .scj-banner-dialog{
    padding:22px 16px;
  }
}
