/* Sepahan v2.2.2.5 - checkout province/city plugin dark-mode compatibility */
.woocommerce-checkout #billing_province_city,
.woocommerce-checkout input[name="billing_province_city"],
.woocommerce-checkout #billing_province_city_field input.input-text{
  width:100%!important;
  min-height:56px!important;
  box-sizing:border-box!important;
  border-radius:16px!important;
  border:1px solid var(--sepahan-cartcheckout-border,#e8edf3)!important;
  background:color-mix(in srgb,var(--sepahan-cartcheckout-card,#fff) 92%,var(--sepahan-cartcheckout-bg,#f8fafc))!important;
  color:var(--sepahan-cartcheckout-text,#111827)!important;
  -webkit-text-fill-color:var(--sepahan-cartcheckout-text,#111827)!important;
  box-shadow:none!important;
}
.woocommerce-checkout #billing_province_city::placeholder,
.woocommerce-checkout input[name="billing_province_city"]::placeholder{
  color:var(--sepahan-cartcheckout-muted,#64748b)!important;
  -webkit-text-fill-color:var(--sepahan-cartcheckout-muted,#64748b)!important;
  opacity:.9!important;
}
.woocommerce-checkout #billing_province_city_field label,
.woocommerce-checkout label[for="billing_province_city"]{
  color:var(--sepahan-cartcheckout-text,#111827)!important;
}

/* AMDSP / province-city modal: reset light mode first so dark body text cannot make it unreadable */
.amdsp-unified-modal-overlay{
  background:rgba(2,6,23,.62)!important;
  backdrop-filter:blur(7px)!important;
  z-index:999998!important;
}
.amdsp-unified-modal-content{
  direction:rtl!important;
  box-sizing:border-box!important;
  background:#ffffff!important;
  color:#0f172a!important;
  -webkit-text-fill-color:initial!important;
  border:1px solid #e5e7eb!important;
  border-radius:18px!important;
  box-shadow:0 24px 80px rgba(15,23,42,.20)!important;
  overflow:hidden!important;
  z-index:999999!important;
}
.amdsp-unified-modal-content *,
.amdsp-unified-modal-content span,
.amdsp-unified-modal-content h3,
.amdsp-unified-modal-content button{
  color:inherit!important;
  -webkit-text-fill-color:currentColor!important;
  box-sizing:border-box!important;
}
.amdsp-unified-modal-header,
.amdsp-unified-modal-footer{
  background:#ffffff!important;
  border-color:#e5e7eb!important;
}
.amdsp-unified-modal-header h3{
  color:#0f172a!important;
  font-weight:900!important;
}
.amdsp-unified-modal-close{
  background:transparent!important;
  border:0!important;
  color:#475569!important;
  box-shadow:none!important;
}
.amdsp-unified-modal-body{
  background:#ffffff!important;
  color:#0f172a!important;
}
.amdsp-unified-search-input,
.amdsp-unified-modal-content input[type="text"],
.amdsp-unified-modal-content input[type="search"]{
  background:#f8fafc!important;
  border:1px solid #e2e8f0!important;
  color:#0f172a!important;
  -webkit-text-fill-color:#0f172a!important;
  border-radius:12px!important;
  box-shadow:none!important;
}
.amdsp-unified-search-input::placeholder,
.amdsp-unified-modal-content input::placeholder{
  color:#94a3b8!important;
  -webkit-text-fill-color:#94a3b8!important;
  opacity:1!important;
}
.amdsp-unified-breadcrumb{
  color:#475569!important;
}
.amdsp-breadcrumb-item{
  color:#475569!important;
  background:transparent!important;
}
.amdsp-breadcrumb-item.active{
  color:var(--sepahan-cartcheckout-primary,#2563eb)!important;
  background:#eff6ff!important;
}
.amdsp-breadcrumb-separator{
  color:#94a3b8!important;
}
.amdsp-unified-list{
  background:#ffffff!important;
  scrollbar-color:#cbd5e1 #f1f5f9!important;
}
.amdsp-unified-list-item{
  background:#ffffff!important;
  color:#0f172a!important;
  border-color:#edf2f7!important;
  min-height:44px!important;
}
.amdsp-unified-list-item:hover,
.amdsp-unified-list-item.active,
.amdsp-unified-list-item.is-active{
  background:#f8fafc!important;
  color:var(--sepahan-cartcheckout-primary,#2563eb)!important;
}
.amdsp-unified-list-item-arrow{
  color:#64748b!important;
}
.amdsp-unified-modal-cancel,
.amdsp-unified-modal-confirm{
  border-radius:10px!important;
  box-shadow:none!important;
}
.amdsp-unified-modal-cancel{
  background:#f8fafc!important;
  color:#0f172a!important;
  border:1px solid #e2e8f0!important;
}
.amdsp-unified-modal-confirm{
  background:var(--sepahan-cartcheckout-primary,#2563eb)!important;
  color:#fff!important;
  border:1px solid var(--sepahan-cartcheckout-primary,#2563eb)!important;
}
.amdsp-unified-modal-confirm:disabled,
.amdsp-unified-modal-confirm[disabled]{
  background:#e2e8f0!important;
  border-color:#e2e8f0!important;
  color:#94a3b8!important;
  cursor:not-allowed!important;
}

html.dark .woocommerce-checkout #billing_province_city,
body.dark.woocommerce-checkout #billing_province_city,
html.dark .woocommerce-checkout input[name="billing_province_city"],
body.dark.woocommerce-checkout input[name="billing_province_city"],
body.sepahan-force-dark.woocommerce-checkout #billing_province_city,
body.sepahan-force-dark.woocommerce-checkout input[name="billing_province_city"],
html.dark .woocommerce-checkout #billing_province_city_field .woocommerce-input-wrapper,
body.dark.woocommerce-checkout #billing_province_city_field .woocommerce-input-wrapper,
body.sepahan-force-dark.woocommerce-checkout #billing_province_city_field .woocommerce-input-wrapper{
  background:#101827!important;
  border-color:var(--sepahan-cartcheckout-border-dark,#263244)!important;
  color:var(--sepahan-cartcheckout-text-dark,#f8fafc)!important;
  -webkit-text-fill-color:var(--sepahan-cartcheckout-text-dark,#f8fafc)!important;
}
html.dark .woocommerce-checkout #billing_province_city::placeholder,
body.dark.woocommerce-checkout #billing_province_city::placeholder,
html.dark .woocommerce-checkout input[name="billing_province_city"]::placeholder,
body.dark.woocommerce-checkout input[name="billing_province_city"]::placeholder,
body.sepahan-force-dark.woocommerce-checkout #billing_province_city::placeholder,
body.sepahan-force-dark.woocommerce-checkout input[name="billing_province_city"]::placeholder{
  color:var(--sepahan-cartcheckout-muted-dark,#cbd5e1)!important;
  -webkit-text-fill-color:var(--sepahan-cartcheckout-muted-dark,#cbd5e1)!important;
}
html.dark .woocommerce-checkout #billing_province_city_field label,
body.dark.woocommerce-checkout #billing_province_city_field label,
html.dark .woocommerce-checkout label[for="billing_province_city"],
body.dark.woocommerce-checkout label[for="billing_province_city"],
body.sepahan-force-dark.woocommerce-checkout label[for="billing_province_city"]{
  color:var(--sepahan-cartcheckout-text-dark,#f8fafc)!important;
}

html.dark .woocommerce-checkout #billing_province_city_field,
body.dark.woocommerce-checkout #billing_province_city_field,
body.sepahan-force-dark.woocommerce-checkout #billing_province_city_field{
  background:transparent!important;
}
html.dark .woocommerce-checkout #billing_province_city:-webkit-autofill,
body.dark.woocommerce-checkout #billing_province_city:-webkit-autofill,
body.sepahan-force-dark.woocommerce-checkout #billing_province_city:-webkit-autofill{
  -webkit-box-shadow:0 0 0 1000px #101827 inset!important;
  -webkit-text-fill-color:var(--sepahan-cartcheckout-text-dark,#f8fafc)!important;
  caret-color:var(--sepahan-cartcheckout-text-dark,#f8fafc)!important;
}

html.dark .amdsp-unified-modal-content,
body.dark .amdsp-unified-modal-content,
body.sepahan-force-dark .amdsp-unified-modal-content{
  background:var(--sepahan-cartcheckout-card-dark,#101827)!important;
  color:var(--sepahan-cartcheckout-text-dark,#f8fafc)!important;
  border-color:var(--sepahan-cartcheckout-border-dark,#263244)!important;
  box-shadow:0 28px 90px rgba(0,0,0,.56)!important;
}
html.dark .amdsp-unified-modal-header,
html.dark .amdsp-unified-modal-footer,
body.dark .amdsp-unified-modal-header,
body.dark .amdsp-unified-modal-footer,
body.sepahan-force-dark .amdsp-unified-modal-header,
body.sepahan-force-dark .amdsp-unified-modal-footer{
  background:color-mix(in srgb,var(--sepahan-cartcheckout-card-dark,#101827) 92%,#000)!important;
  border-color:var(--sepahan-cartcheckout-border-dark,#263244)!important;
}
html.dark .amdsp-unified-modal-body,
body.dark .amdsp-unified-modal-body,
body.sepahan-force-dark .amdsp-unified-modal-body{
  background:var(--sepahan-cartcheckout-card-dark,#101827)!important;
  color:var(--sepahan-cartcheckout-text-dark,#f8fafc)!important;
}
html.dark .amdsp-unified-modal-header h3,
body.dark .amdsp-unified-modal-header h3,
body.sepahan-force-dark .amdsp-unified-modal-header h3{
  color:var(--sepahan-cartcheckout-text-dark,#f8fafc)!important;
}
html.dark .amdsp-unified-modal-close,
body.dark .amdsp-unified-modal-close,
body.sepahan-force-dark .amdsp-unified-modal-close{
  color:var(--sepahan-cartcheckout-muted-dark,#cbd5e1)!important;
}
html.dark .amdsp-unified-search-input,
html.dark .amdsp-unified-modal-content input[type="text"],
html.dark .amdsp-unified-modal-content input[type="search"],
body.dark .amdsp-unified-search-input,
body.dark .amdsp-unified-modal-content input[type="text"],
body.dark .amdsp-unified-modal-content input[type="search"],
body.sepahan-force-dark .amdsp-unified-search-input,
body.sepahan-force-dark .amdsp-unified-modal-content input[type="text"],
body.sepahan-force-dark .amdsp-unified-modal-content input[type="search"]{
  background:color-mix(in srgb,var(--sepahan-cartcheckout-card-dark,#101827) 82%,#000)!important;
  border-color:var(--sepahan-cartcheckout-border-dark,#263244)!important;
  color:var(--sepahan-cartcheckout-text-dark,#f8fafc)!important;
  -webkit-text-fill-color:var(--sepahan-cartcheckout-text-dark,#f8fafc)!important;
}
html.dark .amdsp-unified-search-input::placeholder,
html.dark .amdsp-unified-modal-content input::placeholder,
body.dark .amdsp-unified-search-input::placeholder,
body.dark .amdsp-unified-modal-content input::placeholder,
body.sepahan-force-dark .amdsp-unified-search-input::placeholder,
body.sepahan-force-dark .amdsp-unified-modal-content input::placeholder{
  color:var(--sepahan-cartcheckout-muted-dark,#cbd5e1)!important;
  -webkit-text-fill-color:var(--sepahan-cartcheckout-muted-dark,#cbd5e1)!important;
}
html.dark .amdsp-unified-breadcrumb,
html.dark .amdsp-breadcrumb-item,
body.dark .amdsp-unified-breadcrumb,
body.dark .amdsp-breadcrumb-item,
body.sepahan-force-dark .amdsp-unified-breadcrumb,
body.sepahan-force-dark .amdsp-breadcrumb-item{
  color:var(--sepahan-cartcheckout-muted-dark,#cbd5e1)!important;
}
html.dark .amdsp-breadcrumb-item.active,
body.dark .amdsp-breadcrumb-item.active,
body.sepahan-force-dark .amdsp-breadcrumb-item.active{
  background:rgba(96,165,250,.14)!important;
  color:var(--sepahan-cartcheckout-primary-dark,#60a5fa)!important;
}
html.dark .amdsp-breadcrumb-separator,
body.dark .amdsp-breadcrumb-separator,
body.sepahan-force-dark .amdsp-breadcrumb-separator{
  color:#64748b!important;
}
html.dark .amdsp-unified-list,
body.dark .amdsp-unified-list,
body.sepahan-force-dark .amdsp-unified-list{
  background:var(--sepahan-cartcheckout-card-dark,#101827)!important;
  scrollbar-color:#475569 #0b1220!important;
}
html.dark .amdsp-unified-list-item,
body.dark .amdsp-unified-list-item,
body.sepahan-force-dark .amdsp-unified-list-item{
  background:var(--sepahan-cartcheckout-card-dark,#101827)!important;
  color:var(--sepahan-cartcheckout-text-dark,#f8fafc)!important;
  border-color:var(--sepahan-cartcheckout-border-dark,#263244)!important;
}
html.dark .amdsp-unified-list-item:hover,
html.dark .amdsp-unified-list-item.active,
html.dark .amdsp-unified-list-item.is-active,
body.dark .amdsp-unified-list-item:hover,
body.dark .amdsp-unified-list-item.active,
body.dark .amdsp-unified-list-item.is-active,
body.sepahan-force-dark .amdsp-unified-list-item:hover,
body.sepahan-force-dark .amdsp-unified-list-item.active,
body.sepahan-force-dark .amdsp-unified-list-item.is-active{
  background:color-mix(in srgb,var(--sepahan-cartcheckout-card-dark,#101827) 78%,var(--sepahan-cartcheckout-primary-dark,#60a5fa))!important;
  color:var(--sepahan-cartcheckout-text-dark,#f8fafc)!important;
}
html.dark .amdsp-unified-list-item-arrow,
body.dark .amdsp-unified-list-item-arrow,
body.sepahan-force-dark .amdsp-unified-list-item-arrow{
  color:var(--sepahan-cartcheckout-primary-dark,#60a5fa)!important;
}
html.dark .amdsp-unified-modal-cancel,
body.dark .amdsp-unified-modal-cancel,
body.sepahan-force-dark .amdsp-unified-modal-cancel{
  background:color-mix(in srgb,var(--sepahan-cartcheckout-card-dark,#101827) 82%,#000)!important;
  border-color:var(--sepahan-cartcheckout-border-dark,#263244)!important;
  color:var(--sepahan-cartcheckout-text-dark,#f8fafc)!important;
}
html.dark .amdsp-unified-modal-confirm,
body.dark .amdsp-unified-modal-confirm,
body.sepahan-force-dark .amdsp-unified-modal-confirm{
  background:var(--sepahan-cartcheckout-primary-dark,var(--sepahan-cartcheckout-primary,#2563eb))!important;
  border-color:var(--sepahan-cartcheckout-primary-dark,var(--sepahan-cartcheckout-primary,#2563eb))!important;
  color:#fff!important;
}
html.dark .amdsp-unified-modal-confirm:disabled,
html.dark .amdsp-unified-modal-confirm[disabled],
body.dark .amdsp-unified-modal-confirm:disabled,
body.dark .amdsp-unified-modal-confirm[disabled],
body.sepahan-force-dark .amdsp-unified-modal-confirm:disabled,
body.sepahan-force-dark .amdsp-unified-modal-confirm[disabled]{
  background:#334155!important;
  border-color:#334155!important;
  color:#94a3b8!important;
}

/* common province/city select plugins using Select2 on checkout */
html.dark .woocommerce-checkout .select2-dropdown,
body.dark.woocommerce-checkout .select2-dropdown,
html.dark .woocommerce-checkout .select2-container--default .select2-results__option,
body.dark.woocommerce-checkout .select2-container--default .select2-results__option{
  background:var(--sepahan-cartcheckout-card-dark,#101827)!important;
  color:var(--sepahan-cartcheckout-text-dark,#f8fafc)!important;
}
html.dark .woocommerce-checkout .select2-container--default .select2-results__option--highlighted[aria-selected],
body.dark.woocommerce-checkout .select2-container--default .select2-results__option--highlighted[aria-selected]{
  background:var(--sepahan-cartcheckout-primary-dark,#2563eb)!important;
  color:#fff!important;
}
html.dark .woocommerce-checkout .select2-search--dropdown .select2-search__field,
body.dark.woocommerce-checkout .select2-search--dropdown .select2-search__field{
  background:color-mix(in srgb,var(--sepahan-cartcheckout-card-dark,#101827) 82%,#000)!important;
  border-color:var(--sepahan-cartcheckout-border-dark,#263244)!important;
  color:var(--sepahan-cartcheckout-text-dark,#f8fafc)!important;
}
