/* Xagor unified interface contract — public, commerce, blog, account, seller and Marketplace. */
:root{
  --xg-font:'IranYekanX','IRANYekanX','Vazirmatn','Yekan Bakh',Tahoma,Arial,sans-serif;
  --xg-type-xs:12px;--xg-type-sm:13px;--xg-type-md:15px;--xg-type-base:16px;--xg-type-lg:18px;
  --xg-control-h:46px;--xg-icon-size:18px;
}
body.xagor-iranaccount-theme,
body.xagor-iranaccount-theme :where(button,input,select,textarea,option){font-family:var(--xg-font)!important}
body.xagor-iranaccount-theme{font-size:var(--xg-type-base);line-height:1.85}
body.xagor-iranaccount-theme :where(p,li,td,th,label,legend){font-size:max(var(--xg-type-sm),1em);line-height:1.85}
body.xagor-iranaccount-theme :where(small,.xg-eyebrow,.xg-sidebar-label,.xg-section-kicker){font-size:var(--xg-type-xs)!important;line-height:1.7}
body.xagor-iranaccount-theme :where(button,.button,input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:var(--xg-type-sm)!important}
body.xagor-iranaccount-theme :where(button,.button,input:not([type=checkbox]):not([type=radio]),select){min-height:var(--xg-control-h)}
body.xagor-iranaccount-theme :where(.xg-product-title,.woo\63 ommerce-loop-product__title,.entry-title,.xg-card-title){font-size:var(--xg-type-md)!important;line-height:1.7}
body.xagor-iranaccount-theme :where(.xg-nav-list a,.xg-sidebar-quick a,.xg-app-nav a,.xg-profile-dropdown>a,.xg-account-nav a){font-size:var(--xg-type-sm)!important}
body.xagor-iranaccount-theme :where(.fa,.fas,.far,.fal,.fat,.fad,.fa-solid,.fa-regular,.fa-light,.fa-thin,.fa-duotone){font-family:var(--fa-style-family,"Font Awesome 7 Pro")!important;line-height:1!important;font-style:normal}
body.xagor-iranaccount-theme :where(.fab,.fa-brands){font-family:var(--fa-family-brands,"Font Awesome 7 Brands")!important;font-weight:400!important;line-height:1!important;font-style:normal}
body.xagor-iranaccount-theme :where(.xg-icon-btn,.xg-app-nav-icon,.xg-account-nav-icon) :where(i,svg){width:var(--xg-icon-size);height:var(--xg-icon-size);font-size:var(--xg-icon-size)}

/* 0.36.6 — native/legacy homepage dark copy and product-card media geometry */
html[data-xg-theme="dark"] body.home .xg-native-home .xg-section-head h2{color:var(--xg-text)!important}
html[data-xg-theme="dark"] body.home .xg-native-home .xg-section-head p{color:var(--xg-muted)!important}
html[data-xg-theme="dark"] body.home :where(.xg-native-home,.xg-legacy-home) .title-blue-span{color:var(--xg-accent)!important}
body.xagor-iranaccount-theme .xg-product-card .xg-product-media img{
  border-radius:15px!important;
  clip-path:inset(0 round 15px);
}
body.xagor-iranaccount-theme .xg-product-card .xg-save-card-btn{
  width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;
  padding:0!important;border-radius:7px!important;aspect-ratio:1;
}
.xg-brand>.xg-approved-brand{width:var(--xg-logo-header-desktop-width,152px)!important;height:auto;min-height:42px}
.xg-compact-brand>.xg-approved-brand{width:var(--xg-logo-header-mobile-width,118px)!important;height:auto;min-height:34px}
.xg-route-logo img{width:var(--xg-logo-route-width,210px)!important;height:auto;max-height:96px!important}
.xg-footer-brand>.xg-approved-brand{width:var(--xg-logo-footer-width,190px)!important;height:auto;min-height:54px}
.xg-sidebar-app-icon .xg-approved-brand,.xg-install-icon .xg-approved-brand{width:var(--xg-logo-pwa-prompt-width,40px)!important;height:var(--xg-logo-pwa-prompt-width,40px)!important}
body.xg-seller-app .xg-seller-brand img{width:var(--xg-logo-seller-open-width,176px)!important;max-width:100%!important;height:auto!important;max-height:62px!important}
body.xg-seller-app.xg-seller-sidebar-collapsed .xg-seller-brand img{width:var(--xg-logo-seller-closed-width,48px)!important;max-width:var(--xg-logo-seller-closed-width,48px)!important;max-height:var(--xg-logo-seller-closed-width,48px)!important}
@media(max-width:820px){
  body.xagor-iranaccount-theme{font-size:15px}
  .xg-brand>.xg-approved-brand,.xg-compact-brand>.xg-approved-brand{width:var(--xg-logo-header-mobile-width,118px)!important}
}

/* PWA prompt: animated dismissal and a circular close control half outside. */
.xg-install-toast{
  grid-template-columns:42px minmax(0,1fr) auto!important;
  opacity:0;transform:translateY(10px) scale(.985);
  transition:opacity .22s ease,transform .22s ease!important;
}
.xg-install-toast[hidden]{display:none!important}
.xg-install-toast.is-visible{opacity:1;transform:translateY(0) scale(1)}
.xg-install-toast.is-leaving{opacity:0;transform:translateY(8px) scale(.985);pointer-events:none}
.xg-install-toast strong{font-size:10px!important;line-height:1.65!important}
.xg-install-toast p{font-size:8px!important;line-height:1.75!important}
.xg-install-toast .xg-install-close{
  position:absolute!important;top:-15px!important;right:-15px!important;z-index:3;
  width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;
  display:grid!important;place-items:center;padding:0!important;
  border:3px solid var(--xg-surface)!important;border-radius:50%!important;
  background:#34363c!important;color:#fff!important;
  font-size:15px!important;line-height:1!important;box-shadow:0 5px 14px rgba(18,20,25,.2)!important;
}
@media(max-width:620px){
  .xg-install-toast{grid-template-columns:38px minmax(0,1fr) auto!important}
}

/* 0.81.7 — every classic, Checkout AJAX and Blocks notice uses Xagor UI. */
body.xagor-iranaccount-theme :where(.woo\63 ommerce-notices-wrapper,.woo\63 ommerce-NoticeGroup,.wc-block-components-notices){
  width:100%;margin:0 0 16px;
}
body.xagor-iranaccount-theme :where(.woo\63 ommerce-message,.woo\63 ommerce-info,.woo\63 ommerce-error,.wc-block-components-notice-banner){
  --xg-notice-tone:var(--xg-success);--xg-notice-soft:color-mix(in srgb,var(--xg-success) 9%,var(--xg-surface));
  position:relative;min-height:68px;margin:0 0 12px!important;padding:14px 16px!important;
  display:grid!important;grid-template-columns:34px minmax(0,1fr) auto;gap:7px 12px;align-items:center;
  border:1px solid color-mix(in srgb,var(--xg-notice-tone) 28%,var(--xg-line))!important;
  border-radius:18px!important;background:linear-gradient(135deg,var(--xg-notice-soft),var(--xg-surface) 72%)!important;
  color:var(--xg-text)!important;box-shadow:var(--xg-shadow-sm)!important;list-style:none!important;
  font-size:14px!important;font-weight:700!important;line-height:1.85!important;
}
body.xagor-iranaccount-theme :where(.woo\63 ommerce-info,.wc-block-components-notice-banner.is-info){
  --xg-notice-tone:var(--xg-blue);--xg-notice-soft:color-mix(in srgb,var(--xg-blue) 9%,var(--xg-surface));
}
body.xagor-iranaccount-theme :where(.woo\63 ommerce-error,.wc-block-components-notice-banner.is-error){
  --xg-notice-tone:var(--xg-accent);--xg-notice-soft:color-mix(in srgb,var(--xg-accent) 9%,var(--xg-surface));
}
body.xagor-iranaccount-theme .wc-block-components-notice-banner.is-warning{
  --xg-notice-tone:var(--xg-warning);--xg-notice-soft:color-mix(in srgb,var(--xg-warning) 10%,var(--xg-surface));
}
body.xagor-iranaccount-theme :where(.woo\63 ommerce-message,.woo\63 ommerce-info,.woo\63 ommerce-error):before{
  content:"\f058"!important;position:static!important;inset:auto!important;grid-column:1;grid-row:1/span 99;
  width:32px!important;height:32px!important;margin:0!important;display:grid!important;place-items:center;
  transform:none!important;border-radius:10px;background:color-mix(in srgb,var(--xg-notice-tone) 13%,var(--xg-surface));
  color:var(--xg-notice-tone)!important;font-family:"Font Awesome 7 Pro","Font Awesome 6 Pro","Font Awesome 6 Free"!important;
  font-size:15px!important;font-weight:900!important;line-height:1!important;
}
body.xagor-iranaccount-theme .woo\63 ommerce-info:before{content:"\f05a"!important}
body.xagor-iranaccount-theme .woo\63 ommerce-error:before{content:"\f06a"!important}
body.xagor-iranaccount-theme :where(.woo\63 ommerce-message,.woo\63 ommerce-info,.woo\63 ommerce-error)>li{
  grid-column:2/-1;margin:0!important;padding:0!important;color:var(--xg-text)!important;list-style:none!important;
}
body.xagor-iranaccount-theme :where(.woo\63 ommerce-message,.woo\63 ommerce-info,.woo\63 ommerce-error) :where(a:not(.button),strong){color:var(--xg-notice-tone)!important}
body.xagor-iranaccount-theme :where(.woo\63 ommerce-message,.woo\63 ommerce-info,.woo\63 ommerce-error)>.button{
  grid-column:3;grid-row:1;min-width:132px;margin:0!important;display:inline-flex!important;align-items:center!important;
  justify-content:center!important;text-align:center!important;line-height:1.2!important;
}
body.xagor-iranaccount-theme .wc-block-components-notice-banner>svg{
  width:32px!important;height:32px!important;margin:0!important;padding:8px;border-radius:10px;
  background:color-mix(in srgb,var(--xg-notice-tone) 13%,var(--xg-surface))!important;color:var(--xg-notice-tone)!important;
}
body.xagor-iranaccount-theme .wc-block-components-notice-banner>.wc-block-components-notice-banner__content{margin:0!important;color:var(--xg-text)!important}
@media(max-width:620px){
  body.xagor-iranaccount-theme :where(.woo\63 ommerce-message,.woo\63 ommerce-info,.woo\63 ommerce-error,.wc-block-components-notice-banner){grid-template-columns:32px minmax(0,1fr);padding:13px!important}
  body.xagor-iranaccount-theme :where(.woo\63 ommerce-message,.woo\63 ommerce-info,.woo\63 ommerce-error)>.button{grid-column:1/-1;grid-row:auto;width:100%;margin-top:4px!important}
}

.xg-command-key,[data-xg-command-shortcut]{direction:ltr!important;unicode-bidi:isolate;flex-direction:row!important;white-space:nowrap}

/* Keep keyboard labels independent of RTL and icon/site font inheritance. */
[data-xg-command-shortcut],.xg-command-key,.xgap-command kbd,
[data-xg-command-shortcut] *,.xg-command-key *,.xgap-command kbd * {
  font-family: Tahoma, sans-serif !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  font-style: normal !important;
  line-height: 1.4 !important;
  letter-spacing: normal !important;
}
[data-xg-command-shortcut],.xg-command-key,.xgap-command kbd {
  direction: ltr !important;
  unicode-bidi: isolate !important;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
}
