@font-face{font-family:JBPostalRefresh;src:url(../fonts/Vazirmatn-Variable.woff2) format('woff2');font-weight:100 900;font-display:swap}
.jp-form-shell,.jp-pending,.jp-journey{font-family:JBPostalRefresh,Tahoma,Arial,sans-serif!important;font-variant-numeric:tabular-nums;color:#142c47}
.jp-form-shell :is(h1,h2,h3,legend,input,select,textarea,button,p,span,a,label),.jp-pending *,.jp-journey *{font-family:inherit!important;box-sizing:border-box;letter-spacing:normal}
.jp-form-shell{max-width:1000px!important;margin:24px auto!important;padding-bottom:32px!important}
.jp-form-shell form[data-postal-create]{counter-reset:form-section}
.jp-form-shell form[data-postal-create]>.jp-card>h2{display:flex;align-items:center;gap:10px;margin-bottom:18px!important;font-size:19px!important}
.jp-form-shell form[data-postal-create]>.jp-card>h2::before{counter-increment:form-section;content:counter(form-section);display:grid;place-items:center;flex:0 0 32px;height:32px;background:#eaf3ff;color:#075eca;border-radius:10px;font-size:15px;font-weight:750}
.jp-form-shell .jp-card{box-shadow:0 4px 20px #18334d04;border-color:#dce5ef;padding:24px;border-radius:18px}
.jp-form-shell label{font-size:14px;line-height:1.7;font-weight:600}
.jp-form-shell :is(input,textarea,select){background:#fbfcff!important;border-color:#b9c9da!important;border-radius:12px!important;min-height:48px!important;color:#142c47!important;box-shadow:none!important}
.jp-form-shell :is(input,textarea,select):focus{border-color:#075eca!important;background:#fff!important}
.jp-form-shell input:is([type=checkbox],[type=radio]){min-height:0!important}
.jp-form-shell .jp-choice label:has(input:checked){background:#eff6ff;border-color:#075eca;color:#0756b5}
.jp-form-shell .jp-package{padding-top:20px;scroll-margin-top:150px}.jp-form-shell .jp-package legend{font-size:17px;padding:0 10px;color:#0756b5}
.jp-package .jp-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:0 12px}.jp-package .jp-grid>label{grid-column:span 2}.jp-package .jp-grid>label:nth-child(-n+2){grid-column:span 3}
.jp-form-shell .jp-check{font-size:14px!important;font-weight:500;line-height:1.9!important}.jp-form-shell .jp-primary{min-height:48px!important}
.jp-form-shell .jp-address{text-align:left;overflow-wrap:anywhere;border:1px solid #d2e2f7;user-select:text}.jp-address .jp-secondary{margin-bottom:12px}
.jp-form-shell .jp-stage-two{border:2px solid #c6ddfa;background:#f8fbff}.jp-stage-two h2{color:#0756b5}
.jp-form-shell .jp-steps{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px!important}.jp-form-shell .jp-steps li{font-size:13px!important;margin:0!important;text-align:center;padding:10px 6px!important;line-height:1.7!important;background:#f2f6fc;border-radius:10px;border-bottom-width:2px}
.jp-form-shell .jp-steps li.is-current{background:#eaf3ff}.jp-form-shell .jp-ticket{padding-top:22px}.jp-form-shell .jp-mark{font-family:JBPostalRefresh,Tahoma,Arial,sans-serif!important}
.jp-pending{position:fixed;inset:0;margin:auto;width:min(480px,calc(100% - 24px));max-width:calc(100% - 24px);max-height:calc(100dvh - 32px);padding:0;border:1px solid #d8e4f2;border-radius:22px;box-shadow:0 24px 70px #142c472e;background:#fff;overflow:auto;overscroll-behavior:contain;text-align:start}
.jp-pending::backdrop{background:#10253f80}.jp-pending-body{position:relative;padding:28px}.jp-pending h2{font-size:23px;line-height:1.6;margin:12px 0;color:#142c47}.jp-pending p{font-size:14px;line-height:1.9;color:#52647a;margin:0 0 18px}.jp-pending-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:#eaf3ff;color:#075eca}.jp-pending-icon svg{width:26px;height:26px}.jp-pending-close{position:absolute;inset-inline-end:14px;top:14px;display:grid;place-items:center;width:44px;height:44px;border:1px solid #dce5ef;border-radius:12px;background:#fff;color:#52647a;font-size:26px;line-height:1;cursor:pointer}.jp-pending ul{list-style:none;margin:0;padding:0;display:grid;gap:12px}.jp-pending li{padding:15px;border:1px solid #dce5ef;border-radius:14px;background:#f8fbff}.jp-pending small{display:block;color:#52647a;font-size:12px;margin:6px 0 12px}.jp-pending-action,.jp-pending-later{display:flex;align-items:center;justify-content:center;width:100%;min-height:46px;border:0;border-radius:11px;background:#075eca;color:#fff!important;font-size:14px;font-weight:650;text-decoration:none;padding:10px 14px;cursor:pointer;line-height:1.7}.jp-pending-later{margin-top:16px;background:#eff4fa;color:#142c47!important}.jp-pending :is(a,button):focus-visible{outline:2px solid #075eca;outline-offset:3px}
.jp-journey{max-width:1120px;margin:18px auto 30px;padding:24px;border:1px solid #dce7f4;border-radius:22px;background:linear-gradient(120deg,#f0f7ff,#fff);position:relative;box-sizing:border-box}.jp-journey ol{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:0;margin:0;list-style:none;gap:16px}.jp-journey li{display:flex;align-items:center;flex-direction:column;gap:12px;text-align:center;position:relative;font-size:15px}.jp-journey li:not(:last-child)::after{content:'';position:absolute;top:30px;inset-inline-start:calc(50% + 42px);width:calc(100% - 68px);border-top:2px dashed #b8d3f4}.jp-journey-icon{display:grid;place-items:center;width:60px;height:60px;border-radius:18px;color:#075eca;background:#fff;box-shadow:0 6px 22px #075eca0b;border:1px solid #d8e7fa}.jp-journey-icon svg{width:28px;height:28px}.jp-motion{display:block;margin:22px auto 0;border:0;background:transparent;color:#52647a;min-height:44px;font-size:12px;padding:8px 16px;cursor:pointer}
@media(prefers-reduced-motion:no-preference){.jp-journey-icon{animation:jp-stage-glow 16s ease-in-out infinite}.jp-journey li:nth-child(2) .jp-journey-icon{animation-delay:4s}.jp-journey li:nth-child(3) .jp-journey-icon{animation-delay:8s}.jp-journey li:nth-child(4) .jp-journey-icon{animation-delay:12s}.jp-journey.is-paused .jp-journey-icon{animation-play-state:paused}@keyframes jp-stage-glow{0%,24%,100%{transform:translateY(0);background:#fff}8%,16%{transform:translateY(-4px);background:#dfeeff}}}
@media(max-width:640px){.jp-form-shell{margin:12px auto!important;padding-inline:12px!important}.jp-form-shell .jp-card{padding:18px 16px;border-radius:16px}.jp-form-shell .jp-heading h1{font-size:22px!important}.jp-form-shell .jp-heading p{font-size:13px!important}.jp-form-shell .jp-steps li{font-size:11px!important}.jp-form-shell .jp-package input{padding:10px 8px!important}.jp-form-shell .jp-package label{font-size:12px}.jp-form-shell [data-postal-create]>.jp-card:last-child>.jp-primary{width:100%}.jp-pending-body{padding:24px 18px}.jp-pending h2{font-size:21px;padding-inline-end:25px}.jp-journey{margin:12px;padding:20px}.jp-journey ol{grid-template-columns:1fr;gap:24px}.jp-journey li{flex-direction:row;text-align:start;gap:16px}.jp-journey li:not(:last-child)::after{top:62px;inset-inline-start:29px;height:22px;width:0;border-top:0;border-inline-start:2px dashed #b8d3f4}.jp-journey-icon{flex:0 0 60px}}

.jp-pending-all{display:flex;align-items:center;justify-content:center;min-height:44px;margin-top:12px;color:#075eca;font-size:14px;text-decoration:underline}
.jp-form-shell:has(.jp-ticket)>.jp-heading p{display:none}
.jp-receipt-actions{margin-top:16px;border-top:1px solid #dce5ef;text-align:start;padding-top:10px}.jp-receipt-actions>summary{padding:8px 0;min-height:44px;font-weight:650;cursor:pointer;color:#075eca;line-height:1.7}.jp-receipt-actions[open] .jp-actions{margin-top:10px;display:grid;grid-template-columns:1fr 1fr;gap:8px}.jp-form-shell .jp-ticket .jp-receipt-actions .jp-secondary{margin:0;width:100%;font-size:13px!important}
@media(max-width:640px){.jp-receipt-actions[open] .jp-actions{grid-template-columns:1fr}.jp-form-shell:has(.jp-ticket)>.jp-heading h1{font-size:21px!important}}

/* Postal-only layout boundaries: do not alter the legacy shop forms. */
body.jb-postal-page .jp-shell :is(.jp-primary,.jp-secondary),body.jb-postal-page .jbp-design .jbp-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;gap:8px;float:none!important;line-height:1.65!important;white-space:normal;min-height:48px}
body.jb-postal-page .jbp-design :is(.jbp-path__pin,.jbp-picto__sym),body.jb-postal-page .jp-journey-icon{display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;line-height:0!important;flex-shrink:0;overflow:hidden}
body.jb-postal-page .jbp-design :is(.jbp-path__pin,.jbp-picto__sym) :is(svg,img),body.jb-postal-page .jp-journey-icon svg{position:static!important;display:block!important;margin:0!important;padding:0!important;transform:none!important;float:none!important;max-width:100%;max-height:100%;align-self:center!important;flex:none}
body.jb-postal-page .jbp-design .jbp-btn .jbp-i{position:static!important;display:block!important;margin:0!important;align-self:center!important;flex:0 0 22px;width:22px;height:22px;transform:none!important}
body.jb-postal-page .jbp-design .jbp-picto__sym img{width:44px!important;height:44px!important;object-fit:contain}
body.jb-postal-page .jbp-design .jbp-path__pin :is(img,svg){width:24px!important;height:24px!important;object-fit:contain}
.jp-form-shell .jp-required{display:inline!important;color:#bd2335!important;font-size:16px!important;margin-inline-start:5px;font-weight:750}.jp-form-shell .jp-optional{display:inline!important;color:#65758a;font-size:11px!important;font-weight:400;margin-inline-start:6px}.jp-required-help{font-size:13px;line-height:1.8;color:#52647a;margin:12px 0 18px}
body.jb-postal-page .jp-message{color:#52647a!important;font-size:14px!important;line-height:1.8!important;margin-top:12px!important;padding:12px 14px;border-radius:12px;text-align:center!important;overflow-wrap:anywhere}
body.jb-postal-page .jp-message:empty{display:none!important}body.jb-postal-page .jp-message.is-processing{color:#0756b5!important;background:#edf5ff;border:1px solid #c9def8;display:flex;gap:10px;align-items:center;justify-content:center}body.jb-postal-page .jp-message.is-processing:before{content:'';width:18px;height:18px;flex:0 0 18px;border:2px solid #b8d0ed;border-top-color:#075eca;border-radius:50%;animation:jp-submit-spin .8s linear infinite}body.jb-postal-page .jp-message.is-error{color:#a41f32!important;background:#fff1f3;border:1px solid #f1c8d0}body.jb-postal-page .jp-message.is-success{color:#146c48!important;background:#eaf8f0;border:1px solid #bddfcd}
.jp-form-shell [aria-busy=true] button{cursor:wait!important;opacity:.75}.jp-form-shell [aria-busy=true]{scroll-margin-bottom:90px}
body.jb-postal-page .jp-ticket{max-width:650px;margin:18px auto 24px!important;border:1px solid #d3e1f1!important;border-top:5px solid #075eca!important;text-align:center!important;background:linear-gradient(#f4f9ff 0,#fff 190px)!important;box-shadow:0 8px 28px #142b4a0a!important}
.jp-form-shell .jp-ticket h2{font-size:21px!important;margin:14px 0!important;line-height:1.7!important}.jp-form-shell .jp-status{display:table;margin:10px auto 20px;padding:6px 14px;border-radius:50px;background:#eaf5ff;color:#0756b5;font-size:13px;line-height:1.8}.jp-mark-label{font-size:13px;color:#52647a}.jp-form-shell .jp-mark{font-size:clamp(24px,6vw,34px)!important;letter-spacing:1px!important;line-height:1.6!important;margin:6px 0!important;overflow-wrap:anywhere}
.jp-result-barcode{max-width:420px;margin:0 auto 12px;padding:14px;background:#fff;border:1px solid #e0e8f2;border-radius:12px;line-height:0}.jp-result-barcode svg{display:block!important;position:static!important;width:100%!important;max-width:100%;height:76px!important;margin:0!important;transform:none!important}.jp-form-shell .jp-copy-mark{margin:0 auto 12px!important;min-height:44px!important}.jp-ticket>p{font-size:13px;line-height:1.9;color:#52647a;margin:6px 0 14px}
.jp-overview-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.jp-overview-steps article{border:1px solid #dce5ef;border-radius:18px;padding:22px;background:#fff}.jp-overview-steps h2{font-size:18px!important;margin:12px 0!important}.jp-overview-steps p{font-size:14px;color:#52647a;line-height:1.9;margin:0}.jp-overview-number{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#edf5ff;color:#075eca;font-weight:750}.jp-overview-help{background:#eff6ff;border:1px solid #d2e4f9;border-radius:18px;padding:24px;margin:24px 0}.jp-overview-help h2{font-size:21px;margin:0 0 10px}.jp-overview-help p{font-size:14px;line-height:1.9;margin:0 0 16px}.jp-guide-back{padding:12px 0;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
@keyframes jp-submit-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){body.jb-postal-page .jp-message.is-processing:before{animation:none}}
@media(max-width:640px){.jp-overview-steps{grid-template-columns:1fr;gap:12px}.jp-overview-steps article{padding:18px}.jp-overview-help{padding:20px}.jp-form-shell .jp-ticket{padding:20px 16px!important}.jp-result-barcode{padding:10px}.jp-form-shell .jp-package .jp-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.jp-form-shell .jp-package .jp-grid>label{min-width:0}.jp-form-shell .jp-package .jp-optional{display:block!important;margin:0;font-size:10px!important}}

/* Guide title and anchor offsets validated at narrow mobile widths. */
body.jb-postal-page .jbp-design h1{font-size:clamp(24px,3.2vw,38px)!important;line-height:1.65!important;margin:18px 0 12px!important;overflow-wrap:break-word;font-family:inherit!important;color:#142c47}
body.jb-postal-page .jbp-design [id]{scroll-margin-top:180px}
@media(max-width:640px){body.jb-postal-page .jbp-design h1{font-size:24px!important;line-height:1.6!important}body.jb-postal-page .jbp-design [id]{scroll-margin-top:145px}.jp-guide-back{padding:4px 0}.jp-overview-help h2{font-size:20px!important}}
@media(max-width:380px){body.jb-postal-page .jbp-design .jbp-picto{grid-template-columns:1fr!important}body.jb-postal-page .jbp-design .jbp-picto__item{padding:18px!important}body.jb-postal-page .jbp-design .jbp-picto__item p{font-size:14px!important}}
