/* Sepahan v1.1.45 final emergency fixes */
/* Hide story scrollbar completely */
.sepahan-story-under-header,
.sepahan-story-under-header *{
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
}
.sepahan-story-under-header::-webkit-scrollbar,
.sepahan-story-under-header *::-webkit-scrollbar{
  width:0!important;height:0!important;display:none!important;background:transparent!important;
}
.sepahan-story-under-header{overflow-x:auto!important;overflow-y:hidden!important;padding-bottom:0!important}

/* Admin settings - hard reset and professional compact switches */
.toplevel_page_sepahan-settings #wpcontent{background:#f6f8fc!important}
.sepahan-options-wrap{direction:rtl!important;margin-top:18px!important;color:#172033!important;font-family:Tahoma,Arial,sans-serif!important}
.sepahan-options-wrap *{box-sizing:border-box!important}
.sepahan-options-brand h1{font-size:17px!important;line-height:1.4!important;white-space:nowrap!important;margin:0!important;font-weight:900!important;letter-spacing:-.5px!important}
.sepahan-options-mark{width:38px!important;height:38px!important;min-width:38px!important;border-radius:14px!important;display:flex!important;align-items:center!important;justify-content:center!important;background:linear-gradient(135deg,#eef6ff,#fff)!important;color:#2563eb!important;box-shadow:0 8px 24px rgba(37,99,235,.12)!important}
.sepahan-options-mark .dashicons{font-size:21px!important;width:21px!important;height:21px!important;line-height:21px!important}
.sepahan-section-card{background:rgba(255,255,255,.92)!important;border:1px solid #e5edf7!important;border-radius:22px!important;padding:18px!important;margin-bottom:18px!important;box-shadow:0 16px 42px rgba(15,23,42,.06)!important;backdrop-filter:blur(8px)!important}
.sepahan-field-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
.sepahan-field{position:relative!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:12px!important;min-height:64px!important;padding:14px 16px!important;background:linear-gradient(135deg,#fff,#f8fbff)!important;border:1px solid #e4ebf5!important;border-radius:18px!important;overflow:hidden!important}
.sepahan-field>label:not(.sepahan-switch){display:block!important;min-width:0!important;font-size:13px!important;font-weight:800!important;color:#18243a!important;line-height:1.9!important;white-space:normal!important;overflow:visible!important;z-index:2!important}
.sepahan-field small{grid-column:1 / -1!important;display:block!important;margin:2px 0 0!important;color:#64748b!important;font-size:11px!important;line-height:1.8!important;z-index:2!important}
.sepahan-field input[type=text],.sepahan-field input[type=number],.sepahan-field input[type=url]{width:210px!important;max-width:100%!important;height:38px!important;border-radius:12px!important;border:1px solid #dbe5f0!important;background:#fff!important;color:#172033!important;padding:0 12px!important;box-shadow:none!important;text-align:right!important}
.sepahan-color-row,.sepahan-media-row{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;min-width:0!important;z-index:2!important}
.sepahan-color-row input[type=color]{width:44px!important;height:34px!important;border-radius:10px!important;border:1px solid #dbe5f0!important;background:#fff!important;padding:3px!important}
.sepahan-color-row code{direction:ltr!important;background:#eef6ff!important;color:#1d4ed8!important;border-radius:9px!important;padding:6px 8px!important;font-size:11px!important}
.sepahan-field-switch{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;min-height:62px!important;overflow:hidden!important}
.sepahan-field-switch .sepahan-switch{position:static!important;display:flex!important;flex-direction:row-reverse!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;width:100%!important;margin:0!important;padding:0!important;min-height:auto!important;cursor:pointer!important;line-height:1.8!important}
.sepahan-field-switch .sepahan-switch strong{display:block!important;flex:1 1 auto!important;min-width:0!important;color:#18243a!important;font-size:13px!important;font-weight:850!important;line-height:1.9!important;text-align:right!important;white-space:normal!important;padding:0!important;margin:0!important;position:static!important;z-index:2!important}
.sepahan-field-switch .sepahan-switch input{position:absolute!important;opacity:0!important;width:1px!important;height:1px!important;margin:0!important;pointer-events:none!important}
.sepahan-field-switch .sepahan-switch span{position:relative!important;display:block!important;flex:0 0 44px!important;width:44px!important;height:24px!important;min-width:44px!important;max-width:44px!important;border-radius:999px!important;background:#d9e2ee!important;border:1px solid #cbd5e1!important;box-shadow:inset 0 1px 2px rgba(15,23,42,.08)!important;transition:.18s ease!important;margin:0!important;right:auto!important;left:auto!important;top:auto!important;bottom:auto!important;z-index:3!important}
.sepahan-field-switch .sepahan-switch span:before{content:""!important;position:absolute!important;top:3px!important;right:3px!important;width:16px!important;height:16px!important;border-radius:50%!important;background:#fff!important;box-shadow:0 2px 5px rgba(15,23,42,.18)!important;transition:.18s ease!important}
.sepahan-field-switch .sepahan-switch input:checked+span{background:#2563eb!important;border-color:#2563eb!important}
.sepahan-field-switch .sepahan-switch input:checked+span:before{right:23px!important}
.sepahan-options-wrap .button,.sepahan-options-wrap .button-primary,.sepahan-options-wrap button{border-radius:12px!important;min-height:36px!important;padding:0 14px!important;font-weight:800!important;box-shadow:none!important;line-height:34px!important}
.sepahan-options-wrap .button-primary{background:#2563eb!important;border-color:#2563eb!important;color:#fff!important}
.sepahan-options-tabs button{white-space:nowrap!important;text-align:right!important;overflow:hidden!important;text-overflow:ellipsis!important}
.sepahan-tab-panel{display:none}.sepahan-tab-panel.is-active{display:block!important}
@media(max-width:1100px){.sepahan-field-grid{grid-template-columns:1fr!important}.sepahan-field{grid-template-columns:1fr!important}.sepahan-color-row,.sepahan-media-row{justify-content:flex-start!important}.sepahan-field input[type=text],.sepahan-field input[type=number],.sepahan-field input[type=url]{width:100%!important}}

/* Suppress old side toasts, keep only central Sepahan popup */
.sepahan-force-hidden-toast,.added-to-cart-popup,.added_to_cart_popup,.wc-toast,.toastify,.xoo-wsc-modal:not(.sepahan-cart-toast){display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important}
