.gwr-widget,.gwr-profile-widget{--gwr-p:#ef4f7b;--gwr-soft:#fff4f7;--gwr-line:#f0dfe6;--gwr-text:#252126;--gwr-muted:#777079;direction:rtl;text-align:right;box-sizing:border-box}.gwr-widget *,.gwr-profile-widget *{box-sizing:border-box}.gwr-tabs{display:inline-flex;gap:5px;padding:5px;background:#fff8fa;border:1px solid var(--gwr-line);border-radius:16px}.gwr-tab{border:0;background:transparent;padding:12px 20px;border-radius:12px;color:#766f75;font-weight:700;cursor:pointer;transition:.2s}.gwr-tab.is-active{background:#fff;color:var(--gwr-p);box-shadow:0 8px 22px rgba(122,69,90,.08)}.gwr-panel{display:none;margin-top:24px}.gwr-panel.is-active{display:block}.gwr-panel-heading{margin-bottom:16px}.gwr-panel-heading h3{margin:0 0 6px;font-size:21px;color:var(--gwr-text)}.gwr-panel-heading p{margin:0;color:var(--gwr-muted);line-height:1.9}.gwr-types{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:start}.gwr-type-card{position:relative;padding:20px 18px;border:1px solid var(--gwr-line);border-radius:20px;background:#fff;text-align:right;cursor:pointer;transition:.22s;color:inherit}.gwr-type-card:hover{transform:translateY(-3px);border-color:#f3b6c8;box-shadow:0 15px 32px rgba(168,88,115,.08)}.gwr-type-icon{display:grid;place-items:center;width:54px;height:54px;margin-bottom:15px;border:1px solid #f7dfe7;border-radius:18px;background:linear-gradient(145deg,#fff,#ffedf3);color:var(--gwr-p)}.gwr-type-icon i{font-size:23px}.gwr-type-icon svg{width:23px;height:23px;fill:currentColor}.gwr-type-card strong{display:block;margin-bottom:6px;font-size:16px}.gwr-type-card small{display:block;color:var(--gwr-muted);line-height:1.75}.gwr-quiz-cta{display:flex;align-items:center;gap:14px;margin-top:18px;padding:20px 22px;border:1px solid #f2d5df;border-radius:20px;background:linear-gradient(135deg,#fff3f7,#fffafd)}.gwr-quiz-cta-icon{display:grid;place-items:center;flex:0 0 50px;width:50px;height:50px;border-radius:16px;background:#fff;color:var(--gwr-p);font-size:20px;font-weight:800;box-shadow:0 10px 24px rgba(157,90,112,.1)}.gwr-quiz-cta-copy{flex:1}.gwr-quiz-cta-copy strong{display:block;margin-bottom:5px}.gwr-quiz-cta-copy small{display:block;color:var(--gwr-muted);line-height:1.7}.gwr-quiz-btn,.gwr-next,.gwr-prev,.gwr-archive-btn{display:inline-flex;align-items:center;justify-content:center;border-radius:13px;padding:12px 18px;font-weight:700;text-decoration:none;cursor:pointer}.gwr-quiz-btn,.gwr-next,.gwr-archive-btn{border:0;background:var(--gwr-p);color:#fff}.gwr-prev{border:1px solid var(--gwr-line);background:#fff;color:#494248}.gwr-modal{position:fixed;inset:0;z-index:999999;display:none;align-items:center;justify-content:center;padding:22px;background:rgba(31,23,27,.45);backdrop-filter:blur(7px)}.gwr-modal.is-open{display:flex}.gwr-dialog{position:relative;width:min(960px,100%);max-height:92vh;overflow:auto;padding:26px;border-radius:28px;background:#fff;box-shadow:0 30px 90px rgba(32,17,24,.23)}.gwr-close{position:absolute;left:20px;top:18px;width:40px;height:40px;border:0;border-radius:50%;background:#fff1f5;font-size:22px;cursor:pointer}.gwr-modal-head h3{margin:0;font-size:25px}.gwr-modal-head p{margin:7px 0 0;color:var(--gwr-muted)}.gwr-progress{height:5px;margin-bottom:23px;overflow:hidden;border-radius:99px;background:#f3e4ea}.gwr-progress span{display:block;width:0;height:100%;border-radius:inherit;background:var(--gwr-p);transition:width .28s}.gwr-question-title{margin:0 0 14px;font-size:20px;font-weight:800}.gwr-answers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.gwr-answer{display:flex;align-items:center;gap:12px;padding:15px;border:1px solid var(--gwr-line);border-radius:16px;background:#fff;text-align:right;cursor:pointer;transition:.18s;color:inherit}.gwr-answer:hover,.gwr-answer.is-selected{border-color:#ef96b0;background:#fff7fa}.gwr-answer b{display:block;margin-bottom:3px}.gwr-answer small{display:block;color:var(--gwr-muted);line-height:1.6}.gwr-quiz-footer{display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:8px;margin-top:18px}.gwr-counter{justify-self:end;color:#999096;font-size:12px}.gwr-result-view{display:none}.gwr-result-view.is-active{display:block}.gwr-result-hero{display:grid;grid-template-columns:auto 1fr;gap:18px;align-items:center;padding:22px;border:1px solid #f4d7e1;border-radius:22px;background:linear-gradient(135deg,#fff8fa,#fff1f5)}.gwr-result-icon{display:grid;place-items:center;width:96px;height:96px;border-radius:28px;background:#fff;color:var(--gwr-p);box-shadow:0 14px 28px rgba(145,75,100,.08)}.gwr-result-icon svg{width:40px;height:40px;fill:currentColor}.gwr-result-hero em{display:block;color:var(--gwr-p);font-size:12px;font-style:normal;font-weight:800}.gwr-result-title{margin:5px 0 8px;font-size:28px}.gwr-result-desc{margin:0;color:var(--gwr-muted);line-height:2}.gwr-result-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}.gwr-meta-card{padding:13px;border:1px solid var(--gwr-line);border-radius:14px;background:#fff}.gwr-meta-card span{display:block;color:var(--gwr-p);font-size:11px;font-weight:700}.gwr-meta-card b{display:block;margin-top:5px}.gwr-section-title{margin:20px 0 10px}.gwr-section-title h4{margin:0;font-size:18px}.gwr-steps-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.gwr-step-card{padding:14px;border:1px solid var(--gwr-line);border-radius:15px;background:#fff}.gwr-step-icon{display:grid;place-items:center;width:38px;height:38px;margin-bottom:8px;border-radius:12px;background:var(--gwr-soft);color:var(--gwr-p)}.gwr-step-icon svg{width:18px;height:18px;fill:currentColor}.gwr-step-card span{display:block;color:var(--gwr-p);font-size:11px;font-weight:700}.gwr-step-card b{display:block;margin:5px 0}.gwr-step-card small{color:var(--gwr-muted);line-height:1.65}.gwr-result-note{margin-top:14px;padding:12px 14px;border-radius:13px;background:#faf9fa;color:#766f74;line-height:1.8}.gwr-products-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.gwr-product-item{min-width:0}.gwr-fallback-card{padding:12px;border:1px solid #eee4e8;border-radius:16px}.gwr-fallback-image img{display:block;width:100%;height:auto}.gwr-fallback-card strong{display:block;margin-top:9px}.gwr-fallback-price{margin-top:6px;color:var(--gwr-p)}.gwr-empty-products{grid-column:1/-1;padding:20px;text-align:center;color:var(--gwr-muted)}.gwr-loader{display:flex;min-height:140px;align-items:center;justify-content:center;flex-direction:column;gap:12px}.gwr-loader[hidden]{display:none!important}.gwr-loader-ring{width:36px;height:36px;border:3px solid #f4dbe3;border-top-color:var(--gwr-p);border-right-color:var(--gwr-p);border-radius:50%;animation:gwrSpin .8s linear infinite}.gwr-loader-dots{display:flex;gap:6px}.gwr-loader-dots i{width:9px;height:9px;border-radius:50%;background:var(--gwr-p);animation:gwrDot 1s infinite ease-in-out}.gwr-loader-dots i:nth-child(2){animation-delay:.15s}.gwr-loader-dots i:nth-child(3){animation-delay:.3s}.gwr-loader-pulse{width:36px;height:36px;border-radius:50%;background:var(--gwr-p);animation:gwrPulse 1s infinite ease-in-out}.gwr-loader-text{color:var(--gwr-muted)}.gwr-result-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}@keyframes gwrSpin{to{transform:rotate(360deg)}}@keyframes gwrDot{0%,100%{transform:translateY(0);opacity:.4}50%{transform:translateY(-6px);opacity:1}}@keyframes gwrPulse{0%,100%{transform:scale(.75);opacity:.4}50%{transform:scale(1);opacity:1}}
/* profile widget */.gwr-profile-widget{padding:22px;border:1px solid var(--gwr-line);border-radius:22px;background:#fff}.gwr-profile-heading{margin:0 0 14px}.gwr-profile-cards{display:grid;gap:12px}.gwr-saved-card{display:grid;grid-template-columns:auto 1fr;gap:14px;padding:16px;border:1px solid var(--gwr-line);border-radius:18px;background:#fff}.gwr-saved-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:var(--gwr-soft);color:var(--gwr-p)}.gwr-saved-icon svg{width:22px;height:22px;fill:currentColor}.gwr-saved-kind{display:block;color:var(--gwr-p);font-size:11px;font-weight:700}.gwr-saved-title{margin:4px 0 6px}.gwr-saved-desc{margin:0;color:var(--gwr-muted);line-height:1.8}.gwr-saved-meta{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.gwr-saved-meta span{padding:6px 9px;border:1px solid var(--gwr-line);border-radius:999px;font-size:11px}.gwr-saved-date{display:block;margin-top:8px;color:#999}.gwr-profile-empty{padding:18px;border:1px dashed var(--gwr-line);border-radius:14px;color:var(--gwr-muted);text-align:center}.gwr-profile-edit{display:inline-flex;margin-top:12px;color:var(--gwr-p);text-decoration:none;font-weight:700}
@media(max-width:900px){.gwr-types,.gwr-steps-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gwr-result-meta{grid-template-columns:1fr 1fr}.gwr-products-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.gwr-tabs{display:flex;width:100%}.gwr-tab{flex:1}.gwr-types{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.gwr-type-card{padding:15px 12px}.gwr-quiz-cta{align-items:flex-start;flex-wrap:wrap}.gwr-quiz-btn{width:100%}.gwr-modal{align-items:flex-end;padding:0}.gwr-dialog{width:100%;max-height:95vh;border-radius:26px 26px 0 0;padding:22px}.gwr-answers{grid-template-columns:1fr}.gwr-result-hero{grid-template-columns:1fr}.gwr-result-meta{grid-template-columns:1fr}.gwr-products-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.gwr-quiz-cta-icon i{font-size:20px}.gwr-quiz-cta-icon svg{width:20px;height:20px;fill:currentColor}.gwr-type-card.is-active{border-color:var(--gwr-p)}
/* configurable content boxes */.gwr-archive-btn[hidden]{display:none!important}.gwr-quiz-footer{grid-template-columns:auto 1fr}.gwr-counter{justify-self:end}
@media(max-width:600px){}

/* v1.4.0 refinements */
.gwr-tabs,.gwr-profile-tabs{display:flex;align-items:center;max-width:100%}
.gwr-close{display:grid;place-items:center;top:14px;left:14px;z-index:8;line-height:1;padding:0;overflow:hidden}
.gwr-fallback-card{display:flex;flex-direction:column;gap:10px;background:#fff;overflow:hidden}
.gwr-fallback-card.is-horizontal{flex-direction:row;align-items:center}
.gwr-fallback-card.is-horizontal .gwr-fallback-image{flex:0 0 38%;min-width:0}
.gwr-fallback-image{display:block;overflow:hidden}
.gwr-fallback-image img{display:block;width:100%;height:auto;object-fit:cover}
.gwr-fallback-content{display:flex;flex:1;min-width:0;flex-direction:column;align-items:flex-start}
.gwr-fallback-title{display:block;color:var(--gwr-text);text-decoration:none;font-weight:700;line-height:1.7}
.gwr-fallback-price{margin-top:6px;color:var(--gwr-p)}
.gwr-fallback-button{display:inline-flex;align-items:center;justify-content:center;margin-top:10px;padding:9px 12px;border-radius:10px;background:var(--gwr-p);color:#fff;text-decoration:none;font-size:12px;font-weight:700}
.gwr-profile-tabs{gap:5px;margin-bottom:14px;padding:5px;border:1px solid var(--gwr-line);border-radius:16px;background:#fff8fa}
.gwr-profile-tab{border:0;border-radius:12px;background:transparent;padding:11px 18px;color:#766f75;cursor:pointer;font-weight:700;transition:.2s}
.gwr-profile-tab.is-active{background:#fff;color:var(--gwr-p);box-shadow:0 8px 22px rgba(122,69,90,.08)}
.gwr-profile-panel{display:none}
.gwr-profile-panel.is-active{display:block}
.gwr-profile-missing{padding:20px;border:1px dashed var(--gwr-line);border-radius:16px;background:#fff;text-align:center}
.gwr-profile-missing p{margin:0 0 12px;color:var(--gwr-muted);line-height:1.8}
.gwr-profile-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.gwr-profile-action{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border:1px solid var(--gwr-line);border-radius:11px;background:#fff;color:var(--gwr-p);text-decoration:none;font-weight:700;cursor:pointer}
.gwr-profile-products{background:var(--gwr-p);border-color:var(--gwr-p);color:#fff}
.gwr-profile-picker .gwr-types{margin-top:6px}
@media(max-width:700px){.gwr-fallback-card.is-horizontal{align-items:stretch}.gwr-fallback-card.is-horizontal .gwr-fallback-image{flex-basis:42%}.gwr-profile-actions{flex-direction:column}.gwr-profile-action{width:100%}}

/* v1.4.1 responsive layout controls */
.gwr-type-card{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:15px}
.gwr-type-icon{flex:0 0 auto;margin:0}
.gwr-type-content{display:flex;min-width:0;max-width:100%;flex:1;flex-direction:column;gap:6px;text-align:right}
.gwr-type-content strong,.gwr-type-content small{margin:0}

/* v1.4.2 state polish */
.gwr-tab,.gwr-type-card,.gwr-type-icon,.gwr-quiz-btn,.gwr-answer,.gwr-close,.gwr-fallback-card,.gwr-fallback-button,.gwr-archive-btn,.gwr-profile-tab,.gwr-profile-action,.gwr-quiz-btn,.gwr-fallback-button,.gwr-archive-btn,.gwr-close{border:1px solid transparent}.gwr-archive-btn{display:inline-flex;align-items:center;justify-content:center;padding:10px 15px;border-radius:11px;background:var(--gwr-p);color:#fff;text-decoration:none;font-weight:700}.gwr-fallback-card:hover{transform:translateY(-2px)}

/* v1.4.3 quiz analysis stage */
.gwr-analysis-view{display:flex;min-height:420px;align-items:center;justify-content:center;background:#fff}
.gwr-analysis-view[hidden]{display:none!important}
.gwr-analysis-card{display:flex;width:100%;max-width:620px;min-height:360px;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:34px;text-align:center;border:1px solid transparent;border-radius:24px;background:#fff}
.gwr-analysis-spinner{display:grid;place-items:center;min-height:58px}
.gwr-analysis-ring{width:58px;height:58px;border:5px solid var(--gwr-analysis-track,#f9dce5);border-top-color:var(--gwr-analysis-accent,var(--gwr-p));border-right-color:var(--gwr-analysis-accent,var(--gwr-p));border-radius:50%;animation:gwrSpin .9s linear infinite}
.gwr-analysis-dots{display:flex;align-items:center;justify-content:center;gap:7px}
.gwr-analysis-dots i{width:10px;height:10px;border-radius:50%;background:var(--gwr-analysis-accent,var(--gwr-p));animation:gwrDot 1s infinite ease-in-out}
.gwr-analysis-dots i:nth-child(2){animation-delay:.15s}.gwr-analysis-dots i:nth-child(3){animation-delay:.3s}
.gwr-analysis-pulse{width:58px;height:58px;border-radius:50%;background:var(--gwr-analysis-accent,var(--gwr-p));animation:gwrPulse 1s infinite ease-in-out}
.gwr-analysis-visual{display:grid;place-items:center;color:var(--gwr-p)}
.gwr-analysis-visual img{display:block;width:170px;height:auto;max-height:210px;object-fit:contain}
.gwr-analysis-visual i{font-size:72px}.gwr-analysis-visual svg{width:72px;height:72px;fill:currentColor}
.gwr-analysis-title{margin:2px 0 0;font-size:22px;line-height:1.6;color:var(--gwr-text)}
.gwr-analysis-text{max-width:520px;margin:0;color:var(--gwr-muted);line-height:1.9}
@media(max-width:600px){.gwr-analysis-view{min-height:68vh}.gwr-analysis-card{min-height:58vh;padding:26px 18px}.gwr-analysis-visual img{width:145px}}
.gwr-result-hero.gwr-no-icon{grid-template-columns:1fr}.gwr-saved-card.gwr-no-icon{grid-template-columns:1fr}

/* v1.4.5 */
.gwr-fallback-button{display:none!important}.gwr-fallback-card{transition:border-color .2s,box-shadow .2s,transform .2s}.gwr-fallback-card:hover{transform:translateY(-2px)}.gwr-profile-toast{position:fixed;z-index:1000000;left:50%;bottom:28px;transform:translate(-50%,12px);opacity:0;pointer-events:none;padding:11px 16px;border:1px solid #eedce3;border-radius:13px;background:#fff;color:#3f383d;box-shadow:0 14px 38px rgba(36,22,29,.16);transition:opacity .18s ease,transform .18s ease}.gwr-profile-toast.is-show{opacity:1;transform:translate(-50%,0)}


/* v1.4.6 profile routine change states */
.gwr-profile-state{display:flex;min-height:280px;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:32px;border:1px solid var(--gwr-line);border-radius:20px;background:#fff;text-align:center;color:var(--gwr-text)}
.gwr-profile-state__spinner{width:58px;height:58px;border:5px solid #f8dfe7;border-top-color:var(--gwr-p);border-right-color:var(--gwr-p);border-radius:50%;animation:gwrSpin .85s linear infinite}
.gwr-profile-state__success{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:#eefaf4;color:#28a66a;font-size:30px;font-weight:800}
.gwr-profile-state.is-error .gwr-profile-state__success{background:#fff1f3;color:#df4566}
.gwr-profile-state__text{font-size:16px;font-weight:700;line-height:1.8}
@media(max-width:600px){.gwr-profile-state{min-height:42vh;padding:26px 18px}}

.gwr-recommendation-box{display:flex;align-items:flex-start;gap:12px;margin:14px 0;padding:16px 18px;border:1px solid #f3dbe3;border-radius:16px;background:linear-gradient(135deg,#fff8fa,#fff1f5)}
.gwr-recommendation-box[hidden]{display:none!important}
.gwr-recommendation-icon{display:grid;place-items:center;flex:0 0 auto;color:var(--gwr-p);margin-top:1px}
.gwr-recommendation-icon i{font-size:20px}.gwr-recommendation-icon svg{width:20px;height:20px;fill:currentColor}
.gwr-recommendation-content{min-width:0;flex:1}
.gwr-recommendation-title{display:block;margin:0 0 6px;color:var(--gwr-p);font-size:14px}
.gwr-recommendation-text{margin:0;color:var(--gwr-muted);line-height:1.9;font-size:13px}

/* Type cards: natural height + safe text wrapping */
.gwr-type-card{height:auto;min-width:0;overflow:hidden}
.gwr-type-content{display:flex;flex-direction:column;min-width:0;max-width:100%;width:100%}
.gwr-type-card strong,.gwr-type-card small{max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:normal}
.gwr-type-card small{hyphens:auto}

/* v1.5.0 fixes */
.gwr-quiz-cta{width:100%;min-width:0}
.gwr-quiz-cta-copy{min-width:0}
.gwr-quiz-cta-copy strong,.gwr-quiz-cta-copy small{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.gwr-recommendation-box{min-width:0}
.gwr-recommendation-content,.gwr-recommendation-text,.gwr-recommendation-title{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}

/* v1.5.2 shared routine-card behavior */
.gwr-types{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.gwr-type-card,.gwr-saved-card{min-width:0}
.gwr-type-card strong,.gwr-type-card small,.gwr-saved-title,.gwr-saved-desc{white-space:normal;overflow-wrap:anywhere;word-break:break-word}
.gwr-profile-picker .gwr-card-arrow{display:none!important}

/* v1.5.7 uploaded image icons */
.gwr-uploaded-icon{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;box-sizing:border-box}

/* v1.5.9 routine step layout */
.gwr-step-card{display:flex;align-items:center;justify-content:center}
.gwr-step-content{display:flex;min-width:0;flex-direction:column;align-items:inherit;text-align:inherit}
.gwr-step-icon{flex:0 0 auto;margin-bottom:0}

/* v1.6.0 quiz title icon */

.gwr-modal-title-icon{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;border:1px solid #f3dbe3;border-radius:14px;background:#fff3f7;color:#ef4f7b;overflow:hidden}
.gwr-modal-title-icon[hidden]{display:none!important}
.gwr-modal-title-icon i{font-size:24px}
.gwr-modal-title-icon svg{width:24px;height:24px;fill:currentColor}
.gwr-modal-title-icon .gwr-uploaded-icon{width:24px;height:24px;padding:0;object-fit:contain}


/* v1.6.1 quiz popup header layout */

.gwr-modal-head-main{
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:flex-start;
    gap:10px;
    width:100%;
    min-width:0;
    direction:rtl;
}
.gwr-modal-head-content{
    display:flex;
    flex:1 1 auto;
    min-width:0;
    flex-direction:column;
    align-items:flex-start;
    justify-content:center;
    gap:6px;
    text-align:right;
}
.gwr-modal-head-content .gwr-modal-title{
    width:100%;
    margin:0;
    line-height:1.35;
    text-align:right;
}
.gwr-modal-head-content p{
    width:100%;
    margin:0;
    line-height:1.8;
    text-align:right;
}
.gwr-modal-title-icon{
    order:-1;
    flex:0 0 46px;
}
.gwr-modal-title-icon[hidden]{display:none!important}

/* v1.6.5 adaptive routine/result grids + reliable content alignment */
.gwr-steps-grid{
    --gwr-step-cols:4;
    --gwr-step-gap:10px;
    display:grid;
    gap:var(--gwr-step-gap);
    grid-template-columns:repeat(
        auto-fit,
        minmax(
            min(
                100%,
                calc((100% - (var(--gwr-step-cols) - 1) * var(--gwr-step-gap)) / var(--gwr-step-cols))
            ),
            1fr
        )
    ) !important;
}
.gwr-result-meta{
    --gwr-meta-cols:3;
    --gwr-meta-gap:10px;
    display:grid;
    gap:var(--gwr-meta-gap);
    grid-template-columns:repeat(
        auto-fit,
        minmax(
            min(
                100%,
                calc((100% - (var(--gwr-meta-cols) - 1) * var(--gwr-meta-gap)) / var(--gwr-meta-cols))
            ),
            1fr
        )
    ) !important;
}
.gwr-step-card{
    min-width:0;
}
.gwr-step-content{
    display:flex;
    flex:1 1 auto;
    width:100%;
    min-width:0;
    flex-direction:column;
    align-items:stretch !important;
}
.gwr-step-content > *{
    width:100%;
    min-width:0;
}

/* v1.6.6 archive button layout controls */
.gwr-archive-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    box-sizing:border-box;
    max-width:100%;
    transition:background-color .2s ease,color .2s ease,border-color .2s ease,border-radius .2s ease,box-shadow .2s ease,transform .2s ease;
}

/* v1.6.7 popup spacing defaults mirrored in Elementor */
.gwr-dialog{margin:16px}
.gwr-modal-head-content p{margin:0;color:#777079}
.gwr-modal-title{color:#252126}

/* v1.6.9 whole title/icon block spacing */
.gwr-modal-head{padding:0;margin:0}
.gwr-modal-head-main{box-sizing:border-box}

/* v1.7.0 title/icon block spacing is controlled entirely by Elementor */
.gwr-modal-head-main{
    width:100%;
    max-width:100%;
    padding:0;
    margin:0;
}

/* v1.7.2 mobile bottom-sheet mode */
@media (max-width: 767px){
    .gwr-modal{
        align-items:flex-end !important;
        justify-content:center !important;
        padding:0 !important;
    }
    .gwr-dialog{
        width:100% !important;
        max-width:100% !important;
        max-height:92svh !important;
        margin:0 !important;
        border-radius:24px 24px 0 0 !important;
        overflow:auto !important;
        overscroll-behavior:contain;
        -webkit-overflow-scrolling:touch;
    }
}

/* v1.7.3 draggable mobile bottom sheet */
.gwr-sheet-handle{display:none}
@media (max-width:767px){
    .gwr-dialog{
        position:relative;
        padding-top:30px !important;
        transition:transform .22s cubic-bezier(.22,.8,.25,1);
        will-change:transform;
    }
    .gwr-dialog.is-dragging{transition:none}
    .gwr-dialog.is-closing-sheet{transition:transform .18s ease-out}
    .gwr-modal{background:rgba(31,23,27,calc(.45 * var(--gwr-drag-opacity,1)))}
    .gwr-close{display:none !important}
    .gwr-sheet-handle{
        position:absolute;
        top:6px;
        left:50%;
        z-index:12;
        display:flex;
        width:78px;
        height:22px;
        margin:0;
        padding:0;
        transform:translateX(-50%);
        align-items:center;
        justify-content:center;
        border:0;
        background:transparent;
        cursor:grab;
        touch-action:none;
        -webkit-tap-highlight-color:transparent;
    }
    .gwr-sheet-handle:active{cursor:grabbing}
    .gwr-sheet-handle span{
        display:block;
        width:40px;
        height:4px;
        border-radius:99px;
        background:#d9d3d6;
        transition:width .15s ease,background-color .15s ease;
    }
    .gwr-sheet-handle:active span{
        width:48px;
        background:#c7bec3;
    }
}

/* v1.7.4 - profile layout, sourced routine selector and responsive actions (scoped). */
.gwr-profile-widget .gwr-saved-card{grid-template-columns:auto minmax(0,1fr);align-items:start}
.gwr-profile-widget .gwr-saved-card.gwr-no-icon{grid-template-columns:minmax(0,1fr)}
.gwr-profile-widget .gwr-saved-icon[hidden]{display:none!important}
.gwr-profile-widget .gwr-saved-icon img{display:block;max-width:100%;max-height:100%;object-fit:contain}
.gwr-profile-widget .gwr-saved-body,.gwr-profile-widget .gwr-saved-headings,.gwr-profile-widget .gwr-saved-headings-copy{min-width:0;max-width:100%}
.gwr-profile-widget .gwr-saved-header{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:8px;min-width:0;max-width:100%}
.gwr-profile-widget .gwr-saved-headings{flex:1 1 0;max-width:100%}
.gwr-profile-widget .gwr-saved-title{margin:4px 0 0;overflow-wrap:anywhere}
.gwr-profile-widget .gwr-saved-desc{display:block;width:100%;max-width:100%;margin:0;overflow-wrap:anywhere;word-break:break-word;line-height:1.95}
.gwr-profile-widget .gwr-saved-date{display:block;flex:0 0 210px;align-self:flex-start;width:210px;max-width:42%;min-width:138px;box-sizing:border-box;margin:0;margin-inline-start:auto;text-align:left;white-space:normal;overflow-wrap:anywhere;word-break:break-word;color:#8b858c;font-size:12px;line-height:1.8;direction:rtl;font-variant-numeric:tabular-nums}
.gwr-profile-widget .gwr-saved-date-value{unicode-bidi:isolate;direction:ltr;display:inline;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:break-word}
.gwr-profile-widget .gwr-saved-date-prefix{display:inline;white-space:normal;overflow-wrap:anywhere}
.gwr-profile-widget .gwr-profile-actions{display:flex;align-items:stretch;flex-wrap:wrap;gap:10px;min-width:0;margin-top:14px}
.gwr-profile-widget .gwr-profile-actions>.gwr-profile-action{box-sizing:border-box;min-width:0;max-width:100%;margin:0;text-align:center;white-space:normal;overflow-wrap:anywhere;line-height:1.65}
.gwr-profile-widget.gwr-actions-desktop-inline .gwr-profile-actions{flex-direction:row;flex-wrap:wrap}
.gwr-profile-widget.gwr-actions-desktop-inline .gwr-profile-actions>.gwr-profile-action{flex:0 1 auto;width:auto}
.gwr-profile-widget.gwr-actions-desktop-equal .gwr-profile-actions{flex-direction:row;flex-wrap:nowrap}
.gwr-profile-widget.gwr-actions-desktop-equal .gwr-profile-actions>.gwr-profile-action{flex:1 1 0;width:0}
.gwr-profile-widget.gwr-actions-desktop-stack .gwr-profile-actions{flex-direction:column;flex-wrap:nowrap}
.gwr-profile-widget.gwr-actions-desktop-stack .gwr-profile-actions>.gwr-profile-action{flex:1 1 auto;width:100%}
.gwr-profile-widget.gwr-meta-desktop-inline .gwr-saved-meta{display:flex;flex-direction:row;flex-wrap:wrap}
.gwr-profile-widget.gwr-meta-desktop-inline .gwr-saved-meta>span{flex:0 1 auto;width:auto}
.gwr-profile-widget.gwr-meta-desktop-equal .gwr-saved-meta{display:flex;flex-direction:row;flex-wrap:nowrap}
.gwr-profile-widget.gwr-meta-desktop-equal .gwr-saved-meta>span{flex:1 1 0;width:0}
.gwr-profile-widget.gwr-meta-desktop-stack .gwr-saved-meta{display:flex;flex-direction:column;flex-wrap:nowrap}
.gwr-profile-widget.gwr-meta-desktop-stack .gwr-saved-meta>span{flex:1 1 auto;width:100%}
.gwr-profile-widget .gwr-profile-source{min-width:0}
.gwr-profile-widget .gwr-profile-source .gwr-tabs,.gwr-profile-widget .gwr-profile-source .gwr-panel-heading{display:none!important}
.gwr-profile-widget .gwr-profile-source .gwr-panel{margin:0!important}
.gwr-profile-widget .gwr-profile-source .gwr-types{align-items:stretch}
.gwr-profile-widget .gwr-profile-source .gwr-type-card{height:100%;min-height:150px;min-width:0}
.gwr-profile-widget .gwr-profile-source .gwr-type-card .gwr-type-content{flex:1;display:flex;flex-direction:column;min-width:0}
.gwr-profile-widget .gwr-profile-source .gwr-type-card .gwr-type-content small{line-height:1.8}
.gwr-profile-widget .gwr-profile-source-disabled .gwr-panel{display:none!important}
.gwr-profile-widget .gwr-profile-source-disabled:after{content:'این نوع روتین در ویجت اصلی فعال نیست.';display:block;padding:24px;text-align:center;color:#777079}
.gwr-profile-widget .gwr-profile-source-warning{margin:12px 0 0;padding:20px;border:1px dashed #f0dfe6;border-radius:15px;color:#766f75;line-height:1.9}
.gwr-profile-widget .gwr-profile-modal>.gwr-dialog{width:min(1200px,100%);max-height:92svh;overflow:auto}
.gwr-profile-widget .gwr-profile-modal>.gwr-dialog>.gwr-modal-head{padding-left:55px;margin-bottom:16px}
.gwr-profile-widget .gwr-profile-picker-close{z-index:10}
.gwr-quiz-portal{direction:rtl}
@media(max-width:1024px) and (min-width:768px){
.gwr-profile-widget.gwr-actions-tablet-inline .gwr-profile-actions{flex-direction:row;flex-wrap:wrap}
.gwr-profile-widget.gwr-actions-tablet-inline .gwr-profile-actions>.gwr-profile-action{flex:0 1 auto;width:auto}
.gwr-profile-widget.gwr-actions-tablet-equal .gwr-profile-actions{flex-direction:row;flex-wrap:nowrap}
.gwr-profile-widget.gwr-actions-tablet-equal .gwr-profile-actions>.gwr-profile-action{flex:1 1 0;width:0}
.gwr-profile-widget.gwr-actions-tablet-stack .gwr-profile-actions{flex-direction:column;flex-wrap:nowrap}
.gwr-profile-widget.gwr-actions-tablet-stack .gwr-profile-actions>.gwr-profile-action{flex:1 1 auto;width:100%}
.gwr-profile-widget.gwr-meta-tablet-inline .gwr-saved-meta{display:flex;flex-direction:row;flex-wrap:wrap}
.gwr-profile-widget.gwr-meta-tablet-inline .gwr-saved-meta>span{flex:0 1 auto;width:auto}
.gwr-profile-widget.gwr-meta-tablet-equal .gwr-saved-meta{display:flex;flex-direction:row;flex-wrap:nowrap}
.gwr-profile-widget.gwr-meta-tablet-equal .gwr-saved-meta>span{flex:1 1 0;width:0}
.gwr-profile-widget.gwr-meta-tablet-stack .gwr-saved-meta{display:flex;flex-direction:column;flex-wrap:nowrap}
.gwr-profile-widget.gwr-meta-tablet-stack .gwr-saved-meta>span{flex:1 1 auto;width:100%}
}
@media(max-width:767px){
.gwr-profile-widget .gwr-saved-header{gap:8px}
.gwr-profile-widget .gwr-saved-date{font-size:11px;flex-basis:160px;width:160px;max-width:45%;min-width:112px}
.gwr-profile-widget.gwr-actions-mobile-inline .gwr-profile-actions{flex-direction:row;flex-wrap:wrap}
.gwr-profile-widget.gwr-actions-mobile-inline .gwr-profile-actions>.gwr-profile-action{flex:0 1 auto;width:auto}
.gwr-profile-widget.gwr-actions-mobile-equal .gwr-profile-actions{flex-direction:row;flex-wrap:nowrap}
.gwr-profile-widget.gwr-actions-mobile-equal .gwr-profile-actions>.gwr-profile-action{flex:1 1 0;width:0}
.gwr-profile-widget.gwr-actions-mobile-stack .gwr-profile-actions{flex-direction:column;flex-wrap:nowrap}
.gwr-profile-widget.gwr-actions-mobile-stack .gwr-profile-actions>.gwr-profile-action{flex:1 1 auto;width:100%}
.gwr-profile-widget.gwr-meta-mobile-inline .gwr-saved-meta{display:flex;flex-direction:row;flex-wrap:wrap}
.gwr-profile-widget.gwr-meta-mobile-inline .gwr-saved-meta>span{flex:0 1 auto;width:auto}
.gwr-profile-widget.gwr-meta-mobile-equal .gwr-saved-meta{display:flex;flex-direction:row;flex-wrap:nowrap}
.gwr-profile-widget.gwr-meta-mobile-equal .gwr-saved-meta>span{flex:1 1 0;width:0}
.gwr-profile-widget.gwr-meta-mobile-stack .gwr-saved-meta{display:flex;flex-direction:column;flex-wrap:nowrap}
.gwr-profile-widget.gwr-meta-mobile-stack .gwr-saved-meta>span{flex:1 1 auto;width:100%}
.gwr-profile-widget .gwr-profile-modal>.gwr-dialog{max-height:92svh!important;min-height:0;overflow:auto!important}
.gwr-profile-widget .gwr-profile-modal>.gwr-dialog>.gwr-modal-head{padding-left:35px}
}

/* Header groups the icon, labels and description opposite the independently styled date. */
.gwr-profile-widget .gwr-saved-card,.gwr-profile-widget .gwr-saved-card.gwr-no-icon{display:block}
.gwr-profile-widget .gwr-saved-headings{display:flex;flex:1 1 0;align-items:flex-start;gap:12px;min-width:0;max-width:100%}
.gwr-profile-widget .gwr-saved-headings-copy{flex:1 1 auto;min-width:0}
.gwr-profile-widget .gwr-saved-headings>.gwr-saved-icon{flex:0 0 auto}


/* v1.7.8: isolated alignment controls for the profile card, including absent routines. */
.gwr-profile-widget .gwr-saved-meta{min-width:0;max-width:100%;justify-content:flex-start;margin-top:12px}
.gwr-profile-widget .gwr-saved-meta>span{display:flex;align-items:center;justify-content:center;min-width:0;max-width:100%;overflow-wrap:anywhere;word-break:break-word;box-sizing:border-box}
.gwr-profile-widget .gwr-profile-actions>.gwr-profile-action{justify-content:center}
.gwr-profile-widget .gwr-saved-desc + .gwr-saved-meta{margin-top:12px}
.gwr-profile-widget .gwr-saved-header + .gwr-saved-desc{margin-top:10px}

/* The source result modal is portaled into <body>, so the saving status is
   inserted into that precise modal rather than affecting other Elementor widgets. */
.gwr-quiz-portal .gwr-profile-save-state,
.gwr-profile-widget .gwr-profile-save-state{
    position:absolute;inset:0;z-index:30;display:flex;align-items:center;justify-content:center;
    padding:24px;background:rgba(33,23,30,.38);backdrop-filter:blur(3px);
    text-align:center;direction:rtl;
}
.gwr-quiz-portal .gwr-profile-save-state__box,
.gwr-profile-widget .gwr-profile-save-state__box{
    display:flex;flex-direction:column;align-items:center;justify-content:center;
    gap:15px;width:min(100%,320px);min-height:190px;padding:30px 22px;
    border:1px solid #f1dce5;border-radius:22px;background:#fff;
    box-shadow:0 16px 55px rgba(36,22,29,.14);color:#292229;
}
.gwr-quiz-portal .gwr-profile-save-state .gwr-profile-state__spinner,
.gwr-profile-widget .gwr-profile-save-state .gwr-profile-state__spinner{
    width:54px;height:54px;border:4px solid #f6dce5;
    border-top-color:var(--gwr-p,#ef4f7b);border-right-color:var(--gwr-p,#ef4f7b);
    border-radius:50%;animation:gwrSpin .8s linear infinite;
}
.gwr-quiz-portal .gwr-profile-save-state .gwr-profile-state__success,
.gwr-profile-widget .gwr-profile-save-state .gwr-profile-state__success{
    display:grid;place-items:center;width:58px;height:58px;border-radius:50%;
    background:#eefaf4;color:#28a66a;font-size:30px;font-weight:800;
}
.gwr-quiz-portal .gwr-profile-save-state.is-error .gwr-profile-state__success,
.gwr-profile-widget .gwr-profile-save-state.is-error .gwr-profile-state__success{
    background:#fff1f3;color:#df4566;
}
.gwr-quiz-portal .gwr-profile-save-state__text,
.gwr-profile-widget .gwr-profile-save-state__text{font-size:15px;font-weight:700;line-height:1.8;overflow-wrap:anywhere}
@media(prefers-reduced-motion:reduce){
    .gwr-quiz-portal .gwr-profile-save-state .gwr-profile-state__spinner,
    .gwr-profile-widget .gwr-profile-save-state .gwr-profile-state__spinner{animation-duration:1.8s}
}
