/* Hero Slider body UI only. Existing admin sidebar/header remain untouched. */
.ac-hero-admin{max-width:none}
.ac-hero-admin .page-header{margin-bottom:22px}
.ac-hero-admin .page-header h1{margin:0;font-size:28px;line-height:1.15;font-weight:800;color:#f7f8fb}
.ac-hero-admin .page-header p{max-width:900px;margin:9px 0 0;color:#aeb3bf;font-size:14px;line-height:1.6}

.ac-hg-form{padding:24px!important;border:1px solid #34363d!important;border-radius:15px!important;background:#202126!important;box-shadow:none!important}
.ac-hg-form h2{margin:0;color:#f7f8fb;font-size:21px;line-height:1.25;font-weight:800}
.ac-hg-heading{display:grid;grid-template-columns:295px minmax(330px,1.3fr) minmax(300px,1fr);gap:16px;margin-top:22px;margin-bottom:18px}
.ac-hg-field{display:flex;flex-direction:column;gap:8px;min-width:0;color:#aeb3bf;font-size:12px;font-weight:600}
.ac-hg-field>span{line-height:1.3}
.ac-hg-field .form-input{box-sizing:border-box;width:100%;min-width:0;min-height:44px;padding:0 14px;border:1px solid #3a3d45!important;border-radius:10px!important;background:#1b1c20!important;color:#f1f3f7!important;outline:none;box-shadow:none!important;font-size:14px}
.ac-hg-field .form-input:focus{border-color:#6b707c!important;box-shadow:0 0 0 3px #ffffff08!important}
.ac-hg-textarea{min-height:86px!important;padding:12px 14px!important;resize:vertical;line-height:1.55}
.ac-hg-promises{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:18px 0}
.ac-hg-actions-settings{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:18px 0 4px}

.ac-hg-section{margin-top:28px;padding-top:28px;border-top:1px solid #34363d}
.ac-hg-section-title{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:20px}
.ac-hg-section-copy{min-width:0;max-width:480px}
.ac-hg-section-title h2{margin:0 0 7px}
.ac-hg-section-title p{margin:0;color:#aeb3bf;font-size:13px;line-height:1.55}

.ac-hg-upload-panel{width:min(560px,48%);padding:0 12px 12px;border-radius:14px;background:#ef334f;overflow:hidden}
.ac-hg-upload-btn{position:relative;display:flex!important;align-items:center;justify-content:center;width:100%;min-height:43px;margin:0!important;padding:0 14px!important;border:0!important;border-radius:0!important;background:transparent!important;color:#fff!important;font-weight:800!important;cursor:pointer;white-space:nowrap;box-shadow:none!important}
.ac-hg-upload-btn input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.ac-hg-upload-note{padding:10px 14px;border-left:3px solid #f6b800;border-radius:8px;background:#391d27;color:#e9eaf0;font-size:11px;line-height:1.65;text-align:center}
.ac-hg-upload-note strong{color:#fff}

.ac-hg-main-images{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:16px;border:0;border-radius:15px;background:#f6f6f3}
.ac-hg-main-image{min-width:0;padding:0;border:1px solid #dedfe3;border-radius:13px;background:#fff;overflow:hidden;box-shadow:none}
.ac-hg-main-image-media{position:relative;background:#f1f2ef}
.ac-hg-main-image img{display:block;width:100%;height:258px;object-fit:cover;background:#eef1f2}
.ac-hg-image-number{position:absolute;top:10px;left:10px;display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#25272e;color:#fff;font-size:11px;font-weight:800}
.ac-hg-image-actions{display:grid;grid-template-columns:34px 1fr 34px auto;align-items:center;gap:9px;padding:9px 12px;color:#2b2e36;background:#fff}
.ac-hg-image-actions strong{text-align:center;font-size:12px;font-weight:600}
.ac-hg-image-actions button{min-height:32px;padding:4px 9px;border:1px solid #e0e1e5;border-radius:8px;background:#fff;color:#40444d;font-size:13px;font-weight:700;cursor:pointer}
.ac-hg-image-actions button:disabled{opacity:.28;cursor:not-allowed}
.ac-hg-image-actions .ac-hg-remove-image{border-color:#ff526b;color:#ed2e4b;background:#fff}
.ac-hg-empty{grid-column:1/-1;padding:45px 20px;border:1px dashed #c6cad1;border-radius:12px;background:#fff;color:#626a78;text-align:center}
.ac-hg-empty small{display:block;margin-top:8px;color:#9198a4}

.ac-hg-products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.ac-hg-product{min-width:0;margin:0;padding:16px;border:1px solid #34363d;border-radius:15px;background:#1b1c20}
.ac-hg-product legend{padding:0 2px;color:#f4f5f8;font-size:15px;font-weight:800}
.ac-hg-product .ac-hg-field{margin-top:4px}
.ac-hg-product select.form-input{appearance:auto}
.ac-hg-preview,.ac-hg-placeholder{box-sizing:border-box;width:100%;height:196px;margin-top:15px;border-radius:11px;background:#f5f5f4;object-fit:contain}
.ac-hg-placeholder{display:grid;place-items:center;color:#8f96a2;font-size:12px}
.ac-hg-product-meta{display:flex;flex-direction:column;gap:5px;margin-top:12px;min-width:0}
.ac-hg-product-meta strong{overflow:hidden;color:#f0f1f5;font-size:12px;font-weight:700;white-space:nowrap;text-overflow:ellipsis}
.ac-hg-product-meta span{color:#f2ce00;font-size:12px;font-weight:800}
.ac-hg-product-meta small{overflow:hidden;color:#717784;font-size:10px;white-space:nowrap;text-overflow:ellipsis}

.ac-hg-footer-actions{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:30px;padding-top:22px;border-top:1px solid #34363d}
.ac-hg-active{display:flex;align-items:center;gap:9px;color:#f0f2f6;font-size:13px;font-weight:700}
.ac-hg-active input{width:16px;height:16px;accent-color:#4b8df8}
.ac-hg-footer-actions .btn-new-order{min-width:180px;min-height:45px;border:0!important;border-radius:999px!important;background:#ed2148!important;color:#fff!important;font-weight:800!important;box-shadow:0 9px 25px #ed214824!important}
.ac-hg-footer-actions .btn-new-order:hover{filter:brightness(1.04)}
.ac-hg-footer-actions button:disabled{opacity:.55;cursor:wait}

.ac-hg-error,.ac-hg-success{padding:13px 16px;margin:0 0 18px;border-radius:10px;font-size:13px}
.ac-hg-error{border:1px solid #9f123955;background:#4b1420;color:#fecdd3}
.ac-hg-success{border:1px solid #04785766;background:#123c2d;color:#a7f3d0}

@media(max-width:1320px){
  .ac-hg-heading{grid-template-columns:1fr 1.35fr 1.05fr}
  .ac-hg-upload-panel{width:min(520px,48%)}
}
@media(max-width:1120px){
  .ac-hg-heading{grid-template-columns:1fr 1fr}
  .ac-hg-heading>.ac-hg-field:last-child{grid-column:1/-1}
  .ac-hg-promises{grid-template-columns:1fr 1fr}
  .ac-hg-actions-settings{grid-template-columns:1fr 1fr}
  .ac-hg-products{grid-template-columns:1fr 1fr}
  .ac-hg-upload-panel{width:50%}
}
@media(max-width:760px){
  .ac-hg-form{padding:16px!important}
  .ac-hero-admin .page-header h1{font-size:24px}
  .ac-hg-heading,.ac-hg-promises,.ac-hg-actions-settings,.ac-hg-main-images,.ac-hg-products{grid-template-columns:1fr}
  .ac-hg-heading>.ac-hg-field:last-child{grid-column:auto}
  .ac-hg-section-title{flex-direction:column;align-items:stretch}
  .ac-hg-section-copy{max-width:none}
  .ac-hg-upload-panel{width:auto}
  .ac-hg-main-image img{height:220px}
  .ac-hg-preview,.ac-hg-placeholder{height:220px}
  .ac-hg-footer-actions{flex-direction:column;align-items:stretch}
  .ac-hg-footer-actions .btn-new-order{width:100%}
}
