.scj-header-banner-card{
  position:relative;
}

.scj-header-banner-media{
  position:relative;
  width:100%;
  aspect-ratio:1280/400;
  overflow:hidden;
  background:#e9e9e9;
}

.scj-header-banner-media::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(0deg,rgba(0,0,0,.18),rgba(0,0,0,.04));
}

.scj-header-banner-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}

.scj-header-banner-edit{
  position:absolute;
  top:14px;
  right:14px;
  z-index:4;
  min-height:40px;
  padding:9px 15px;
  border:0;
  border-radius:999px;
  color:#0f5b35;
  background:rgba(255,255,255,.95);
  box-shadow:0 10px 25px rgba(0,0,0,.22);
  font-size:12px;
  font-weight:900;
  cursor:pointer;
}

.scj-header-banner-edit:hover{
  transform:translateY(-2px);
}

.scj-header-banner-modal[hidden]{
  display:none;
}

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

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

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

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

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

.scj-header-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-header-banner-form{
  display:grid;
  gap:15px;
}

.scj-header-banner-preview{
  width:100%;
  aspect-ratio:1280/400;
  overflow:hidden;
  border:1px dashed rgba(31,122,74,.35);
  border-radius:16px;
  background:#f5f5f5;
}

.scj-header-banner-preview img{
  width:100%;
  height:100%;
  object-fit:cover;
}

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

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

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

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

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

.scj-header-banner-save{
  border:0;
  color:#fff;
  background:#1f7a4a;
}

.scj-header-banner-save:disabled{
  opacity:.6;
  cursor:wait;
}

@media(max-width:620px){
  .scj-header-banner-edit{
    top:8px;
    right:8px;
    padding:8px 11px;
  }

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

  .scj-header-banner-media{
    aspect-ratio:16/7;
  }
}
