@font-face{font-family:RPBVazirmatn;src:url('../../assets/fonts/Vazirmatn-Regular.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:RPBVazirmatn;src:url('../../assets/fonts/Vazirmatn-Bold.ttf') format('truetype');font-weight:700;font-display:swap}
.rpb-editor{--rpb-green:#123f31;--rpb-border:#d9ded4;font-family:RPBVazirmatn,Tahoma,sans-serif;direction:rtl;color:#17231d;width:100%;max-width:1180px;margin:32px auto;padding:20px;box-sizing:border-box;background:#faf8f1;border-radius:16px}
.rpb-editor *{box-sizing:border-box}.rpb-editor [hidden]{display:none!important}.rpb-heading{margin-bottom:24px}.rpb-heading>span{font-size:12px;color:#8e7040}.rpb-heading h2{font-size:28px;margin:8px 0;color:var(--rpb-green)}.rpb-heading p{font-size:14px;line-height:1.9;margin:0;color:#627069}
.rpb-layout{display:grid;grid-template-columns:minmax(280px,390px) minmax(0,1fr);gap:26px;align-items:start}.rpb-controls{min-width:0;margin:0}.rpb-editor fieldset{margin:0 0 16px;padding:16px;border:1px solid var(--rpb-border);border-radius:14px;background:#fffefa;min-width:0}.rpb-editor legend{padding:0 7px;font-weight:700;font-size:14px}.rpb-editor label{display:block;margin:10px 0;font-size:12px;line-height:1.8}.rpb-editor input:not([type=range]):not([type=color]),.rpb-editor select,.rpb-editor textarea{display:block;max-width:100%;width:100%;padding:10px;border:1px solid var(--rpb-border);border-radius:9px;background:#fff;color:#123f31;font:inherit;line-height:1.8}.rpb-editor textarea{resize:vertical;min-height:100px;direction:rtl}.rpb-editor input[type=range]{display:block;width:100%;accent-color:var(--rpb-green)}.rpb-editor input[type=color]{width:100%;height:40px;background:transparent;border:1px solid var(--rpb-border);border-radius:8px;padding:4px}
.rpb-editor button{font:inherit;cursor:pointer;border:1px solid var(--rpb-border);border-radius:9px;background:#f1f5f0;color:var(--rpb-green);padding:8px 10px;min-height:44px;line-height:1.5}.rpb-editor button:disabled{opacity:.5;cursor:wait}.rpb-editor :is(button,input,select,textarea,canvas):focus-visible{outline:3px solid #23674d;outline-offset:3px}.rpb-results{display:grid;gap:6px;max-height:310px;overflow:auto}.rpb-result{display:flex;align-items:center;gap:10px;width:100%;text-align:right;font-size:13px!important}.rpb-result img{width:38px;height:46px;object-fit:cover;border-radius:5px}.rpb-selected,.rpb-photo-help,.rpb-counter,.rpb-export-note{font-size:11px;color:#627069;line-height:1.9;margin:8px 0}.rpb-selected{font-weight:700;color:#123f31}
.rpb-images{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.rpb-image-choice{padding:3px!important;overflow:hidden}.rpb-image-choice img{display:block;width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:5px}.rpb-editor [aria-pressed=true]{border-color:#18513d!important;box-shadow:0 0 0 2px #18513d}.rpb-image-actions{display:flex;flex-wrap:wrap;gap:5px;font-size:11px}.rpb-image-actions button{flex:1;padding:6px}.rpb-image-actions .rpb-reset{flex-basis:100%}.rpb-templates{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.rpb-template-choice{padding:4px!important;font-size:10px!important}.rpb-template-choice canvas{width:100%;height:auto;display:block;border-radius:5px}.rpb-template-choice span{display:block;padding:6px 2px}.rpb-tabs{display:flex;gap:6px}.rpb-tabs button{flex:1;font-size:12px}.rpb-tabs [aria-selected=true]{background:#123f31;color:#fff}.rpb-text-settings{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.rpb-text-settings label:first-child{grid-column:1/-1}.rpb-downloads{display:flex;gap:8px}.rpb-downloads button{flex:1;background:#123f31;color:#fff;font-size:13px}.rpb-preview-panel{position:sticky;top:100px;min-width:0}.rpb-preview-title{display:flex;justify-content:space-between;gap:12px;align-items:center;padding-bottom:12px;font-size:13px}.rpb-dimensions{font-size:10px;color:#627069;direction:ltr}.rpb-canvas-wrap{padding:18px;background:#eae8de;border-radius:14px;box-shadow:inset 0 0 0 1px #ddd8ca}.rpb-canvas{width:100%;height:auto;display:block;box-shadow:0 10px 30px rgba(13,48,34,.08);touch-action:none}.rpb-status{font-size:12px;line-height:1.8;margin:12px 0;min-height:24px;color:#627069}.rpb-status.rpb-error{color:#96363b}.rpb-unavailable{padding:18px;color:#627069}
@media(max-width:980px){.rpb-layout{grid-template-columns:minmax(250px,340px) minmax(0,1fr);gap:16px}.rpb-editor{padding:14px}.rpb-canvas-wrap{padding:10px}}
@media(max-width:760px){.rpb-editor{padding:12px;margin-block:16px}.rpb-layout{display:flex;flex-direction:column;gap:14px}.rpb-preview-panel{position:static;order:-1;width:100%;max-width:420px;margin-inline:auto}.rpb-controls{width:100%}.rpb-heading h2{font-size:23px}.rpb-editor fieldset{padding:12px}.rpb-canvas-wrap{padding:10px}.rpb-templates{gap:6px}}
@media(prefers-reduced-motion:reduce){.rpb-editor *{scroll-behavior:auto}}

.rpb-editor .rpb-upload-file{max-width:100%;width:100%;box-sizing:border-box}.rpb-editor .rpb-upload-info,.rpb-editor .rpb-upload-status{font-size:12px;line-height:1.8;overflow-wrap:anywhere}.rpb-editor .rpb-upload-status:empty{display:none}
