
/* Marjoei 1.0.9 dedicated Vazir font support */
@font-face{
  font-family:'MarjoeiVazir';
  src:url('../fonts/Vazir.ttf') format('truetype');
  font-weight:100 900;
  font-style:normal;
  font-display:swap;
}
.marjoei-wrap,
.marjoei-wrap *,
.marjoei-order-action,
.marjoei-order-action *,
.marjoei-alert,
.marjoei-btn{
  font-family:'MarjoeiVazir','Vazir',Tahoma,Arial,sans-serif!important;
}

.marjoei-wrap{direction:rtl;font-family:tahoma,Arial,sans-serif;--mj:#6d5dfc;--line:#e5e7eb;--muted:#64748b}.marjoei-form-card,.marjoei-policy{background:#fff;border:1px solid var(--line);border-radius:24px;padding:24px;box-shadow:0 16px 45px rgba(15,23,42,.07);margin:18px 0}.marjoei-wrap h3{margin:0 0 18px;font-size:22px}.marjoei-field{display:flex;flex-direction:column;gap:8px;margin-bottom:14px;font-weight:700}.marjoei-field input,.marjoei-field select,.marjoei-field textarea{border:1px solid var(--line);border-radius:16px;padding:12px 14px;min-height:46px;background:#fff}.marjoei-field textarea{min-height:120px}.marjoei-check{font-weight:400}.marjoei-btn{display:inline-flex;align-items:center;justify-content:center;border:0;text-decoration:none;background:linear-gradient(135deg,#6d5dfc,#8b5cf6);color:#fff!important;border-radius:16px;padding:12px 20px;font-weight:800;cursor:pointer;box-shadow:0 12px 24px rgba(109,93,252,.24)}.marjoei-result{margin-top:12px}.marjoei-alert{background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;border-radius:16px;padding:14px;margin:14px 0}.marjoei-ok{background:#ecfdf5;border:1px solid #bbf7d0;color:#166534;border-radius:16px;padding:14px}.marjoei-requests{display:grid;gap:12px}.marjoei-request-row{display:grid;grid-template-columns:1.3fr 1fr 1fr auto;gap:12px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;box-shadow:0 10px 30px rgba(15,23,42,.05)}.marjoei-request-row .badge{background:#eef2ff;color:#4338ca;border-radius:999px;padding:6px 10px}@media(max-width:700px){.marjoei-request-row{grid-template-columns:1fr}.marjoei-form-card{padding:18px}}
.marjoei-request-row .badge{background:color-mix(in srgb,var(--status,#6d5dfc) 14%,white);color:var(--status,#4338ca);border:1px solid color-mix(in srgb,var(--status,#6d5dfc) 28%,white);font-weight:800}


.marjoei-field{position:relative}
.marjoei-jalali-date{direction:ltr;text-align:center;font-weight:700}
.marjoei-date-pop{position:absolute;z-index:99999;top:100%;right:0;width:310px;background:#fff;border:1px solid #e2e8f0;border-radius:18px;box-shadow:0 20px 55px rgba(15,23,42,.16);padding:14px;margin-top:8px;direction:rtl}
.mdp-head{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:10px}
.mdp-head select{border:1px solid #e2e8f0;border-radius:12px;padding:10px;background:#f8fafc}
.mdp-days{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
.mdp-days button{border:0;background:#f8fafc;border-radius:10px;min-height:34px;cursor:pointer;font-weight:700;color:#1e293b}
.mdp-days button:hover,.mdp-days button.active{background:linear-gradient(135deg,#6d5dfc,#8b5cf6);color:#fff}
.mdp-actions{display:flex;gap:8px;margin-top:12px}
.mdp-actions button{flex:1;border:1px solid #e2e8f0;background:#fff;border-radius:12px;padding:9px;cursor:pointer;font-weight:700}
@media(max-width:480px){.marjoei-date-pop{position:fixed;right:12px;left:12px;top:auto;bottom:18px;width:auto;margin:0}.mdp-days button{min-height:38px}}


/* Marjoei 1.1.0 frontend template system */
.marjoei-wrap{--mj:#6d5dfc;--mj2:#8b5cf6;--line:#e5e7eb;--muted:#64748b;--bg:#ffffff;--surface:#ffffff;--surface-2:#f8fafc;--txt:#0f172a;color:var(--txt)}
.marjoei-wrap input,.marjoei-wrap select,.marjoei-wrap textarea,.marjoei-wrap button{font-family:inherit}
.marjoei-theme-modern{--surface:#ffffff;--surface-2:#f8fafc;--line:#e5e7eb;--txt:#0f172a;--muted:#64748b}
.marjoei-theme-soft{--surface:#fffdfd;--surface-2:#f6f3ff;--line:#e9d5ff;--txt:#1f1637;--muted:#6b5c87}
.marjoei-theme-minimal{--surface:#ffffff;--surface-2:#ffffff;--line:#e2e8f0;--txt:#111827;--muted:#6b7280}
.marjoei-theme-glass{--surface:rgba(255,255,255,.78);--surface-2:rgba(255,255,255,.62);--line:rgba(255,255,255,.65);--txt:#0f172a;--muted:#475569}
.marjoei-theme-glass.marjoei-form-card,.marjoei-theme-glass.marjoei-policy,.marjoei-theme-glass .marjoei-request-row{backdrop-filter:blur(14px)}
.marjoei-form-card,.marjoei-policy,.marjoei-request-row{background:var(--surface);border-color:var(--line)}
.marjoei-wrap h3,.marjoei-wrap p,.marjoei-wrap span,.marjoei-wrap b,.marjoei-wrap label{color:var(--txt)}
.marjoei-wrap p,.marjoei-wrap .marjoei-request-row span{color:var(--muted)}
.marjoei-form-classic .marjoei-request-form{display:block}
.marjoei-form-compact .marjoei-form-card{padding:18px;border-radius:18px}.marjoei-form-compact .marjoei-field{margin-bottom:10px}.marjoei-form-compact .marjoei-field input,.marjoei-form-compact .marjoei-field select,.marjoei-form-compact .marjoei-field textarea{min-height:42px;padding:10px 12px;border-radius:14px}.marjoei-form-compact h3{font-size:20px}
.marjoei-form-split .marjoei-request-form{display:grid;grid-template-columns:1fr 1fr;gap:14px}.marjoei-form-split .marjoei-request-form > input[type=hidden]{display:none}.marjoei-form-split .marjoei-field-textarea,.marjoei-form-split .marjoei-field-file,.marjoei-form-split .marjoei-field-checkbox,.marjoei-form-split .marjoei-result,.marjoei-form-split .marjoei-request-form > button,.marjoei-form-split .marjoei-request-form > .marjoei-field:last-of-type{grid-column:1/-1}.marjoei-form-split .marjoei-request-form > .marjoei-field:nth-last-of-type(2){grid-column:1/-1}.marjoei-form-split .marjoei-request-form > button{justify-self:start}
.marjoei-list-rows .marjoei-request-row{display:grid;grid-template-columns:1.3fr 1fr 1fr auto auto;gap:12px;align-items:center}
.marjoei-list-cards .marjoei-requests{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}.marjoei-list-cards .marjoei-request-row{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:18px;border-radius:20px}.marjoei-list-cards .marjoei-request-row b{font-size:16px}.marjoei-list-cards .marjoei-request-row .badge{margin-top:4px}
.marjoei-list-softlist .marjoei-request-row{display:flex;flex-wrap:wrap;gap:10px;padding:14px 16px;background:var(--surface-2);border-radius:16px;box-shadow:none;border:1px dashed var(--line)}.marjoei-list-softlist .marjoei-request-row b{min-width:100%}
.marjoei-btn-gradient .marjoei-btn,.marjoei-btn-gradient.marjoei-btn{background:linear-gradient(135deg,var(--mj),var(--mj2));color:#fff!important;border:0;box-shadow:0 12px 24px rgba(109,93,252,.24)}
.marjoei-btn-outline .marjoei-btn,.marjoei-btn-outline.marjoei-btn{background:#fff;color:var(--mj)!important;border:1px solid color-mix(in srgb,var(--mj) 35%, white);box-shadow:none}
.marjoei-btn-dark .marjoei-btn,.marjoei-btn-dark.marjoei-btn{background:#111827;color:#fff!important;border:1px solid #111827;box-shadow:none}
.marjoei-theme-soft .marjoei-form-card,.marjoei-theme-soft .marjoei-policy{box-shadow:0 18px 40px rgba(107,92,135,.10)}
.marjoei-theme-minimal .marjoei-form-card,.marjoei-theme-minimal .marjoei-policy,.marjoei-theme-minimal .marjoei-request-row{box-shadow:none;border-radius:16px}.marjoei-theme-minimal .marjoei-btn{border-radius:12px}
.marjoei-theme-glass .marjoei-form-card,.marjoei-theme-glass .marjoei-policy,.marjoei-theme-glass .marjoei-request-row{box-shadow:0 20px 45px rgba(15,23,42,.08)}
.marjoei-section-dashboard h3,.marjoei-section-requests h3{margin-bottom:16px}
@media(max-width:900px){.marjoei-form-split .marjoei-request-form{grid-template-columns:1fr}.marjoei-list-rows .marjoei-request-row{grid-template-columns:1fr}}


/* Marjoei 1.1.1 shortcode template and RTL fixes */
.marjoei-wrap{width:100%;max-width:100%;direction:rtl!important;text-align:right!important;line-height:1.9}
.marjoei-wrap *,.marjoei-wrap *:before,.marjoei-wrap *:after{box-sizing:border-box}
.marjoei-wrap h3{text-align:right!important;line-height:1.55;font-weight:900;color:var(--txt,#0f172a)}
.marjoei-form-card,.marjoei-policy{overflow:visible}
.marjoei-field{width:100%;text-align:right!important;align-items:stretch}
.marjoei-field>span{display:block;width:100%;text-align:right!important;color:var(--txt,#0f172a);font-size:14px;line-height:1.8;margin-bottom:2px}
.marjoei-field input,.marjoei-field select,.marjoei-field textarea,.marjoei-inline-form input{width:100%!important;direction:rtl!important;text-align:right!important;color:#0f172a;outline:none;transition:border-color .2s,box-shadow .2s,background .2s}
.marjoei-field input:focus,.marjoei-field select:focus,.marjoei-field textarea:focus,.marjoei-inline-form input:focus{border-color:color-mix(in srgb,var(--mj,#6d5dfc) 55%, white)!important;box-shadow:0 0 0 4px color-mix(in srgb,var(--mj,#6d5dfc) 13%, transparent)}
.marjoei-field input[type="file"]{direction:ltr!important;text-align:left!important;background:#fff}
.marjoei-field-number input,.marjoei-field-date input,.marjoei-jalali-date{direction:ltr!important;text-align:center!important}
.marjoei-check{display:flex!important;align-items:center;justify-content:flex-start;gap:8px;flex-direction:row-reverse;width:100%}
.marjoei-check input{width:auto!important;min-height:auto!important}
.marjoei-inline-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}
.marjoei-inline-form .marjoei-btn{white-space:nowrap}
.marjoei-result{grid-column:1/-1}

/* Fix selectors: template classes are applied on the same wrapper */
.marjoei-form-compact.marjoei-form-card{padding:18px!important;border-radius:18px!important}
.marjoei-form-compact .marjoei-field{margin-bottom:10px!important}
.marjoei-form-compact .marjoei-field input,.marjoei-form-compact .marjoei-field select,.marjoei-form-compact .marjoei-field textarea{min-height:42px!important;padding:10px 12px!important;border-radius:14px!important}
.marjoei-form-compact h3{font-size:20px!important}
.marjoei-form-split .marjoei-request-form{display:grid!important;grid-template-columns:1fr 1fr;gap:14px 18px}
.marjoei-form-split .marjoei-request-form>input[type=hidden]{display:none!important}
.marjoei-form-split .marjoei-field-textarea,.marjoei-form-split .marjoei-field-file,.marjoei-form-split .marjoei-field-checkbox,.marjoei-form-split .marjoei-result,.marjoei-form-split .marjoei-request-form>button{grid-column:1/-1}
.marjoei-form-split .marjoei-request-form>button{justify-self:start}

/* Make themes visually obvious */
.marjoei-theme-modern.marjoei-form-card,.marjoei-theme-modern.marjoei-policy,.marjoei-theme-modern .marjoei-request-row{background:#fff!important;border:1px solid #e5e7eb!important;box-shadow:0 16px 45px rgba(15,23,42,.07)!important}
.marjoei-theme-soft.marjoei-form-card,.marjoei-theme-soft.marjoei-policy,.marjoei-theme-soft .marjoei-request-row{background:linear-gradient(180deg,#fff,#fbf7ff)!important;border:1px solid #eadcff!important;box-shadow:0 18px 40px rgba(109,93,252,.10)!important}
.marjoei-theme-minimal.marjoei-form-card,.marjoei-theme-minimal.marjoei-policy,.marjoei-theme-minimal .marjoei-request-row{background:#fff!important;border:1px solid #e5e7eb!important;box-shadow:none!important;border-radius:14px!important}
.marjoei-theme-glass.marjoei-form-card,.marjoei-theme-glass.marjoei-policy,.marjoei-theme-glass .marjoei-request-row{background:rgba(255,255,255,.72)!important;border:1px solid rgba(255,255,255,.76)!important;box-shadow:0 20px 55px rgba(109,93,252,.14)!important;backdrop-filter:blur(14px)}
.marjoei-theme-soft .marjoei-field input,.marjoei-theme-soft .marjoei-field select,.marjoei-theme-soft .marjoei-field textarea{background:#fff!important;border-color:#eadcff!important}
.marjoei-theme-minimal .marjoei-field input,.marjoei-theme-minimal .marjoei-field select,.marjoei-theme-minimal .marjoei-field textarea{border-radius:10px!important;box-shadow:none!important}
.marjoei-theme-glass .marjoei-field input,.marjoei-theme-glass .marjoei-field select,.marjoei-theme-glass .marjoei-field textarea{background:rgba(255,255,255,.78)!important}

/* Button templates */
.marjoei-btn-gradient .marjoei-btn,.marjoei-btn-gradient.marjoei-btn{background:linear-gradient(135deg,var(--mj,#6d5dfc),var(--mj2,#8b5cf6))!important;color:#fff!important;border:0!important;box-shadow:0 12px 24px rgba(109,93,252,.24)!important}
.marjoei-btn-outline .marjoei-btn,.marjoei-btn-outline.marjoei-btn{background:#fff!important;color:var(--mj,#6d5dfc)!important;border:1px solid color-mix(in srgb,var(--mj,#6d5dfc) 38%, white)!important;box-shadow:none!important}
.marjoei-btn-dark .marjoei-btn,.marjoei-btn-dark.marjoei-btn{background:#111827!important;color:#fff!important;border:1px solid #111827!important;box-shadow:none!important}

/* List templates */
.marjoei-list-rows .marjoei-request-row{grid-template-columns:1.25fr 1fr 1fr 1fr auto!important}
.marjoei-list-cards.marjoei-requests{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(240px,1fr))!important;gap:14px!important}
.marjoei-list-cards .marjoei-request-row{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:8px!important}
.marjoei-list-softlist .marjoei-request-row{display:flex!important;flex-wrap:wrap!important;gap:10px!important;background:#f8fafc!important;box-shadow:none!important;border-style:dashed!important}
.marjoei-list-softlist .marjoei-request-row b{min-width:100%}

/* Keep shortcode blocks neat */
.marjoei-wrap.marjoei-form-card,.marjoei-wrap.marjoei-policy{max-width:980px;margin-right:auto;margin-left:auto}
.marjoei-section-button.marjoei-btn{display:inline-flex}

@media(max-width:900px){
  .marjoei-form-split .marjoei-request-form,.marjoei-inline-form{grid-template-columns:1fr!important}
  .marjoei-list-rows .marjoei-request-row{grid-template-columns:1fr!important}
  .marjoei-form-split .marjoei-request-form>button,.marjoei-inline-form .marjoei-btn{width:100%}
}


.marjoei-rule-message{border-radius:14px;padding:12px 14px;margin:8px 0 14px;font-weight:700;line-height:1.9}
.marjoei-rule-message.ok{background:#ecfdf5;border:1px solid #bbf7d0;color:#166534}
.marjoei-rule-message.err{background:#fff1f2;border:1px solid #fecdd3;color:#9f1239}
.marjoei-product-select option[style*="display: none"]{display:none}
