[data-banner-placement][hidden],.banner-slide[hidden]{display:none!important}.banner-carousel{position:relative;overflow:hidden;border-radius:24px;background:#f4f3fa}.banner-slide{display:block;color:inherit}.banner-slide img{display:block;width:100%;height:auto;aspect-ratio:25/7;object-fit:contain}.banner-slide:focus-visible{outline:3px solid #5135ef;outline-offset:-4px}.banner-controls{display:flex;justify-content:center;align-items:center;gap:10px;padding:8px}.banner-controls button{border:1px solid #dedbea;background:#fff;color:#5135ef;border-radius:50%;min-width:34px;min-height:34px;font:inherit;cursor:pointer}.banner-dots{display:flex;flex-wrap:wrap;gap:6px}.banner-dots button{min-width:12px;min-height:12px;width:12px;height:12px;padding:0;background:#d3cdea}.banner-dots button[aria-current=true]{background:#5135ef}.admin-banner-editor{max-width:1200px}.admin-banner-editor p{line-height:1.5;overflow-wrap:anywhere}.admin-banner-list article{display:flex;align-items:center;flex-wrap:wrap;gap:10px;border:1px solid #ddddeb;border-radius:14px;padding:14px;margin-bottom:12px;background:#fff}.admin-banner-list article>img{width:160px;aspect-ratio:25/7;object-fit:contain}.admin-banner-list article>div{flex:1;min-width:150px}.admin-banner-editor form{background:#fff;padding:24px;border:1px solid #ddddeb;border-radius:18px;display:grid;gap:16px}.admin-banner-editor label{display:grid;gap:8px}.admin-banner-editor input:not([type=checkbox]),.admin-banner-editor select{max-width:100%;width:100%;padding:12px;border:1px solid #ddddeb;border-radius:10px;font:inherit}.admin-banner-editor button{padding:9px 15px;cursor:pointer;border:1px solid #ddddeb;border-radius:10px}.banner-upload-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.banner-upload-grid img{width:100%;max-height:250px;object-fit:contain}.admin-banner-editor [data-error]{color:#b62339}.admin-banner-editor [type=checkbox]{width:20px;height:20px}@media(max-width:700px){.banner-slide img{aspect-ratio:5/6}.banner-carousel{border-radius:18px}.banner-upload-grid{grid-template-columns:1fr}.admin-banner-editor form{padding:16px}}

body[data-view="admin"] #adminCatalogTree .admin-catalog-tabs { margin-bottom: 24px; }
@media (max-width: 700px) { body[data-view="admin"] #adminCatalogTree .admin-catalog-tabs { margin-bottom: 18px; } }

.banner-empty{display:flex;align-items:center;justify-content:center;min-height:180px;padding:24px;text-align:center;color:#77798d;background:#f4f3fa;border:1px dashed #d9d6e7;border-radius:24px;font-size:18px}[data-banner-placement="market"]{margin-top:24px;margin-bottom:24px}@media(max-width:700px){.banner-empty{min-height:150px;border-radius:18px;font-size:16px}[data-banner-placement="market"]{margin-top:18px;margin-bottom:18px}}

/* Banner management: compact fields, aligned image previews and actions. */
#adminCatalogTree .admin-banner-editor{max-width:none;font-size:14px}
#adminCatalogTree .banner-section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}
#adminCatalogTree .banner-section-heading h2{margin:0 0 6px;font-size:24px}
#adminCatalogTree .banner-section-heading p{margin:0;color:#757b90}
#adminCatalogTree .banner-add-link{padding:12px 18px;border-radius:10px;background:#5837f5;color:white;text-decoration:none;font-weight:650;white-space:nowrap}
#adminCatalogTree .admin-banner-list{margin-bottom:28px}
#adminCatalogTree .admin-banner-list h3{font-size:16px;margin:22px 0 12px}
#adminCatalogTree .admin-banner-list article{padding:16px;gap:16px;box-shadow:none}
#adminCatalogTree .admin-banner-list article>img{width:150px;border-radius:8px;background:#f6f5fa}
#adminCatalogTree .banner-row-info p{font-size:13px;color:#797e92;margin:6px 0 0}
#adminCatalogTree .admin-banner-list .banner-row-actions{display:flex;flex:0 1 auto;gap:8px;flex-wrap:wrap;min-width:0}
#adminCatalogTree .admin-banner-editor button{font-size:13px;font-weight:600;min-height:36px;background:#fff;padding:8px 12px}
#adminCatalogTree .admin-banner-editor button[data-delete]{color:#c04655}
#adminCatalogTree .banner-list-empty{padding:20px;border:1px dashed #dcdfea;border-radius:12px;color:#82879a;background:#fafaff;font-size:14px}
#adminCatalogTree #bannerEditForm{padding:24px;gap:18px;scroll-margin-top:100px}
#adminCatalogTree #bannerEditForm h3{margin:0;font-size:20px}
#adminCatalogTree .banner-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}
#adminCatalogTree .banner-fields .banner-link-field{grid-column:1/-1}
#adminCatalogTree #bannerEditForm label{align-content:start;font-size:14px;font-weight:500;gap:8px}
#adminCatalogTree #bannerEditForm input:not([type=checkbox]),#adminCatalogTree #bannerEditForm select{box-sizing:border-box;height:44px;min-height:0;background:#fff;padding:10px 12px;font-size:14px}
#adminCatalogTree .banner-upload-grid{gap:20px;align-items:start}
#adminCatalogTree .banner-upload-card{padding:16px;border:1px solid #e0e2ed;border-radius:14px;background:#fafafe;display:grid;grid-template-rows:auto 200px auto;gap:14px!important;min-width:0}
#adminCatalogTree .banner-upload-heading{display:flex;justify-content:space-between;gap:12px;align-items:center}
#adminCatalogTree .banner-upload-heading small{color:#81869a;font-weight:400}
#adminCatalogTree .banner-preview-area{display:flex;align-items:center;justify-content:center;height:200px;min-width:0;border:1px dashed #dcdeea;border-radius:10px;background:white;overflow:hidden}
#adminCatalogTree .banner-preview-area img{width:100%;height:100%;max-height:200px;object-fit:contain}
#adminCatalogTree .banner-preview-area [hidden]{display:none!important}
#adminCatalogTree .banner-preview-empty{color:#989caf;font-size:13px}
#adminCatalogTree #bannerEditForm input[type=file]{border:0;background:transparent;padding:0;height:36px;width:100%;font-size:12px;color:#787e91;border-radius:0}
#adminCatalogTree input[type=file]::file-selector-button{height:34px;padding:0 12px;border:1px solid #dddfea;border-radius:8px;background:white;color:#5135d9;font-weight:600;margin-right:10px;cursor:pointer}
#adminCatalogTree .banner-file-hint{margin:0;font-size:12px;color:#858b9e}
#adminCatalogTree [data-error]:empty{display:none}
#adminCatalogTree .banner-form-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;border-top:1px solid #ececf3;padding-top:18px}
#adminCatalogTree #bannerEditForm .banner-enabled{display:flex;align-items:center;gap:10px;margin:0}
#adminCatalogTree .banner-enabled input{margin:0;accent-color:#5837f5;flex-shrink:0}
#adminCatalogTree .banner-form-footer>div{display:flex;gap:8px}
#adminCatalogTree .admin-banner-editor .primary-btn{background:#5837f5;color:#fff;border-color:#5837f5;min-height:42px;padding:10px 20px}
@media(max-width:800px){#adminCatalogTree .banner-fields,#adminCatalogTree .banner-upload-grid{grid-template-columns:1fr}#adminCatalogTree .banner-section-heading,#adminCatalogTree .banner-form-footer{align-items:flex-start;flex-direction:column}#adminCatalogTree #bannerEditForm{padding:16px}#adminCatalogTree .banner-row-actions{width:100%}}

.banner-carousel,.banner-slide,.banner-slide img{border:0!important;box-shadow:none!important}.banner-slide:focus,.banner-slide:focus-visible{outline:none!important;box-shadow:none!important}.banner-slide:focus-visible img{filter:brightness(.92)}
.banner-stories{background:transparent;isolation:isolate}.banner-stories .banner-track{display:flex;touch-action:pan-y pinch-zoom;cursor:grab;will-change:transform}.banner-stories .banner-track.is-dragging{cursor:grabbing}.banner-stories .banner-slide{flex:0 0 100%;min-width:0;user-select:none;-webkit-user-select:none}.banner-stories .banner-slide img{-webkit-user-drag:none;pointer-events:none}.banner-stories .banner-story-bars{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);display:flex;gap:5px;width:min(420px,65%);z-index:2}.banner-stories .banner-story-bars button{appearance:none;flex:1;min-width:0;height:28px;padding:12px 0;border:0;border-radius:0;background:transparent;cursor:pointer}.banner-stories .banner-story-bars button>span{display:block;height:3px;border-radius:5px;overflow:hidden;background:rgba(255,255,255,.45);box-shadow:0 1px 4px #0003}.banner-stories .banner-story-bars i{display:block;width:100%;height:100%;background:#fff;transform:scaleX(0);transform-origin:left;border-radius:5px}.banner-stories .banner-story-bars button:focus-visible{outline:2px solid #5135ef;outline-offset:2px}.banner-stories .banner-story-pause{position:absolute;left:12px;top:12px;opacity:0;pointer-events:none;border:0;border-radius:8px;padding:8px 12px;background:#fff;color:#35216b;z-index:3}.banner-stories .banner-story-pause:focus-visible{opacity:1;pointer-events:auto}@media(max-width:700px){.banner-stories .banner-story-bars{bottom:6px;width:65%;gap:4px}}@media(prefers-reduced-motion:reduce){.banner-stories .banner-track{transition:none!important}}

/* Keep catalog navigation independent of the banner form button styles. */
body[data-view="admin"] #adminCatalogTree .admin-catalog-tabs > button {
  font-family: inherit;
  font-size: 16px;
  font-weight: 400 !important;
  line-height: 24px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-bottom: 4px solid transparent;
  border-radius: 0;
  background: transparent;
}
body[data-view="admin"] #adminCatalogTree .admin-catalog-tabs > button.active {
  border-bottom-color: #5136f2;
  color: #5136f2;
}
