/**
 * store-registration.css
 * فقط قوانین «ساختاری/عملکردی» که JS به آن‌ها وابسته است (باز/بسته‌شدن پنل با
 * انیمیشن، نمایش/عدم‌نمایش فیلدهای هر نوع فروشگاه). استایل بصری (رنگ، فاصله،
 * فونت، طرح باکس‌ها و ...) عمداً اینجا نیست تا با CSS خودتان تداخل نکند.
 */

.store-reg-toggle-box {
    cursor: pointer;
}

/* پنل فرم ثبت‌نام: بسته شروع می‌شود و با تغییر max-height به‌صورت جاوااسکریپتی
   باز/بسته می‌شود. عمداً روی کلاس اختصاصی js-store-reg-panel-wrapper اسکوپ شده
   (نه .store-reg-panel-wrapper عمومی)، چون مرحله‌ی انتخاب پلن هم از همین کلاس
   عمومی برای دو باکس خودش استفاده می‌کند اما نباید جمع/کوچک شود - نمایش آن‌ها
   فقط با attribute مخفی/آشکار (hidden) روی والدشان کنترل می‌شود. */
.js-store-reg-panel-wrapper {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height .4s ease, opacity .3s ease;
}

.js-store-reg-panel-wrapper.is-open {
    opacity: 1;
}

/* فیلدهای اختصاصی هر نوع فروشگاه؛ کلاس store-reg--online/--offline روی ویجت توسط JS تنظیم می‌شود */
.store-reg-fields {
    display: none;
}

.store-reg--online .store-reg-fields--online,
.store-reg--offline .store-reg-fields--offline {
    display: flex;
}

.store-reg-message {
    display: none;
    padding: 15px;
    border-radius: 32px;
    margin: 20px;
    transform: translateY(25px);
}
.store-reg-message.is-error{
    background-color: rgba(220, 56, 72, 0.1);
    color: #c71d1c;
}
.store-reg-message.is-success{
    background-color: rgba(50, 205, 50, 0.1);
    color: limegreen;
}
.store-reg-message:not(:empty) {
    display: block;
}

.store-reg-submit.is-loading {
    pointer-events: none;
    opacity: .7;
}

/* Leaflet برای رندر شدن به یک ارتفاع مشخص روی کانتینر نیاز دارد - این یک الزام
   عملکردی است، نه ظاهری؛ رنگ/حاشیه/گردی گوشه را خودتان اضافه کنید. */
.store-reg-map {
    width: 100%;
    height: 260px;
}
.store-reg-toggle-boxes{
    display: flex;
    justify-content: space-between;
    gap: 24px;
}
.store-reg-toggle-box{
    width: 50%;
    position: relative;
    margin: 70px 0;
}








.store-reg-toggle-box .inner-box{
    min-height: 262px;
    background-color: var(--dark-secondary-50);
    border-radius: 32px;
    -webkit-mask: linear-gradient(#fff 0 0), url(../img/exclude-bg.png);
    -webkit-mask-position: 0 calc(100% + 1px);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-composite: xor; /* سافاری از exclude پشتیبانی نمی‌کنه، معادلش همینه */
    mask: linear-gradient(#fff 0 0), url(../img/exclude-bg.png);
    mask-position: 0 calc(100% + 1px);
    mask-repeat: no-repeat;
    mask-composite: exclude;

    display: flex;
    align-items: start;
    justify-content: end;
    padding: 0 30px;

    transition: all 0.25s ease;
}
.store-reg-toggle-box:hover .inner-box-hover{
    /*-ms-filter: dropShadow(1px 1px  var(--dark-secondary-200));*/
    filter: drop-shadow(-1px 2px  var(--dark-secondary-200)) drop-shadow(2px -1px  var(--dark-secondary-200));
}


.store-reg-toggle-box--online.store-reg-toggle-box .inner-box{
    -webkit-mask: linear-gradient(#fff 0 0), url(../img/exclude-bg2.png);
    -webkit-mask-position: calc(100% + 1px) 0;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-composite: xor; /* سافاری از exclude پشتیبانی نمی‌کنه، معادلش همینه */

    mask: linear-gradient(#fff 0 0), url(../img/exclude-bg2.png);
    mask-position: calc(100% + 1px) 0;
    mask-repeat: no-repeat;
    mask-composite: exclude;

    justify-content: start;
    align-items: end;
}





.store-reg-toggle-box:after{
    content:"";
    width: 100%;
    height: 118px;
    background-color: var(--dark-secondary-10);
    border-radius: 100%;
    filter: blur(44px);
    position: absolute;
    left: 0;
    bottom: -20px;
    z-index: -3;
    opacity: 0;
    transition: all .3s ease-in-out;
}
.store-reg-toggle-box:hover:after{
    opacity: 1;
}



.store-reg-toggle-box .inner-box .store-reg-toggle-box__body{
    padding: 40px 0 0;
    max-width: 45%;
}
.store-reg-toggle-box .inner-box .store-reg-toggle-box__title{
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 30px;
}
.store-reg-toggle-box .inner-box .store-reg-toggle-box__desc{
    font-size: 16px;
    font-weight: 500;
    color: var(--black-70);
}
.store-reg-toggle-box .store-reg-toggle-box__icon{
    position: absolute;
    right: 30px;
    transform: translateY(-60px);
    z-index: 2;
}
.store-reg-toggle-box--online.store-reg-toggle-box .store-reg-toggle-box__icon{
    right: unset;
    left: 30px;
}
.store-reg-toggle-box .btn{
    position: absolute;
    left: 5px;
    bottom: 5px;
    font-size: 24px;
    transition: all .3s ease-in-out;
}
.store-reg-toggle-box .btn i{
    transition: all .3s ease-in-out;
}
.store-reg-toggle-box:hover .btn i{
    transform: rotate(45deg);
}



.store-reg-toggle-box--online.store-reg-toggle-box .btn{
    right: 5px;
    top: 5px;
    left: unset;
    bottom: unset;
}
.store-reg-toggle-box--online.store-reg-toggle-box:hover .btn i{
    transform: rotate(-45deg);
}


.store-reg-panel-wrapper{
    position: relative;
}
.store-reg-panel-wrapper .bg_svg .shape-unit {
    --height: 302px;
    filter: url(#smooth-join2);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    min-height: 100px;
    z-index: -3;
    height: var(--height);
}

.store-reg-panel-wrapper .bg_svg .rect {
    position: absolute;
    background: var(--gray_color);
}

.store-reg-panel-wrapper .bg_svg .rect1 {
    max-width: 100%;
    width: 443px;
    height: 90px;
    right: 0;
    top: 0;
    border-radius: 0;
    z-index: 2;
}
.store-reg-panel-wrapper .bg_svg .rect2 {
    width: 100%;
    height: calc(var(--height) - 70px);
    border-radius: 0;
    right: 0;
    top: 80px;
    z-index: 1;
}


.store-reg-panel-wrapper .store-reg-form-head{
    margin-bottom: 32px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
}
.store-reg-panel-wrapper .store-reg-form-head .store-reg-form-head__icon{
    width: 48px;
    height: 48px;
    background: var(--btn-bg-color-gradient-hover);
    border-radius: var(--icon-radius);
    display: flex;
    align-items: center;
    justify-content: center;
}
.store-reg-panel-wrapper .store-reg-form-head .store-reg-form-head__icon i{
    font-size: 20px;
    color: var(--white_color);
}

.store-reg-panel-wrapper .store-reg-form-head .store-reg-form-head__text{
    display: flex;
    flex-direction: column;
    gap: 0;
}

.store-reg-panel-wrapper .store-reg-form-head .title{
    font-size: 20px;
    font-weight: 700;
}
.store-reg-panel-wrapper .store-reg-form-head .subtitle{
    font-size: 16px;
    font-weight: 500;
    color: var(--black-70);
}

.store-reg-panel-wrapper .store-reg-panel-inner{
    padding-bottom: 100px;
}
.store-reg-panel-wrapper .store-reg-wrapper{
    padding: 16px;
    position: relative;
    min-height: 250px;
}
.store-reg-panel-wrapper .store-reg-wrapper .inner{
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 30px;
}
.store-reg-fields{
    /*display: flex;*/
    flex-wrap: wrap;
    gap: 16px;
    width: 100%;
}
.store-reg-field{
    width: calc(50% - 8px);
    background-color: var(--gray_color);
    border-radius: 32px;
    display: flex;
    align-items: center;
    height: 56px;
    padding: 18px;
    gap: 16px;
    font-size: 15px;
}
.store-reg-field::placeholder{
    text-align: right;
}

.store-reg-panel-wrapper .store-reg-form .store-reg-field.store-reg-field--wide{
    width: 100%;
}
.store-reg-panel-wrapper .store-reg-form .store-reg-field .store-reg-map-status{
    color: #00c57b;
}
.store-reg-panel-wrapper .store-reg-form .store-reg-field .btn{
    height: 40px;
    margin-right: auto;
    margin-left: -10px;
    font-size: 14px;
    border-radius: 32px;
}
.store-reg-panel-wrapper .store-reg-form .store-reg-field.store-reg-field--wide.store-reg-field--type-display{
    width: calc(100% - 232px);
}

.store-reg-field i{
    font-size: 20px;
}
.store-reg-field input{
    background: transparent;
    border: 0;
    outline: none;
    flex-grow: 1;
}
.store-reg-field select{
    min-width: 0;
    background: transparent;
    border: 0;
    outline: none;
    flex-grow: 1;
    appearance: none;
    -webkit-appearance: none;
    color: inherit;
    cursor: pointer;
}
.store-reg-field select:disabled{
    cursor: not-allowed;
    opacity: .6;
}
.store-reg-select-arrow{
    margin-right: auto;
    pointer-events: none;
}

/* مرحله تایید شماره داخل همان فرم و زیر فیلدها، مطابق چیدمان فیگما. */
.store-reg-otp-step{
    width: calc(50% - 8px);
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.store-reg-otp-step[hidden],
.store-reg-submit[hidden]{
    display: none !important;
}
.store-reg-otp-desc{
    width: 100%;
    margin: 0;
    line-height: 2;
}
.store-reg-otp-desc .js-otp-phone{
    color: var(--primary_color, #0066ff);
}
.store-reg-otp-step .store-reg-field{
    width: 100% !important;
}
.store-reg-otp-step .store-reg-message{
    width: 100%;
    margin: 0;
    transform: none;
}
.store-reg-resend-btn{
    margin-right: auto;
}
.store-reg-wrapper{
    position: relative;
}
.store-reg-wrapper .bg_shape .shape-unit {
    filter: url(#smooth-join2);
    position: absolute;
    left: 1px;
    top: 1px;
    z-index: -1;
    width: calc(100% - 2px);
    height: calc(100% - 2px);
}

.store-reg-wrapper .bg_shape .rect {
    position: absolute;
    background: var(--white_color);
}

.store-reg-wrapper .bg_shape .rect1 {
    width: calc(100% - 216px);
    height: 74px;
    right: 0;
    bottom: 0;
    border-radius: 0;
    z-index: 2;
}
.store-reg-wrapper .bg_shape .rect2 {
    width: 100%;
    height: calc(100% - 74px);
    border-radius:0;
    right: 0;
    top: 0;
    z-index: 1;
}
.store-reg-wrapper .bg_shape.shape_line .shape-unit{
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -2;
    transition: all .3s ease-in-out;
}
.store-reg-wrapper .bg_shape.shape_line .rect{
    background:  var(--black-10);
}
.store-reg-wrapper .btn-primary{
    width: 205px;
    position: absolute;
    left: 0;
    bottom: 0;
}

/* ─────────────────────────────────────────────
   موقعیت روی نقشه به‌صورت مودال
   ───────────────────────────────────────────── */
.store-reg-map-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.store-reg-map-modal[hidden] {
    display: none;
}

.store-reg-map-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(30px);
}
.store-reg-map-modal__head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 700;
}
.store-reg-map{
    margin-bottom: 65px;
    border-radius: 24px;
}
.store-reg-map-modal__box {
    position: relative;
    z-index: 1;
    width: 800px;
    max-width: 90vw;
    margin: 15vh auto 5vh;
    max-height: 90vh;
    overflow: auto;
    padding: 30px;
}
.store-reg-map-modal__box .btn{
    position: absolute;
    left: 8px;
    bottom: 5px;
    width: 30%;
}
.store-reg-map-modal__box .shape-unit {
    filter: url(#smooth-join2);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    min-height: 310px;
    z-index: -1;
    height: 100%;
}
.store-reg-map-modal__box .rect {
    position: absolute;
    background: var(--white_color);
}

.store-reg-map-modal__box .rect1 {
    width: 65%;
    height: 75px;
    right: 0;
    bottom: 15px;
    border-radius: 0;
    z-index: 2;
}
.store-reg-map-modal__box .rect2 {
    width: 100%;
    height: calc(100% - 70px);
    border-radius:0;
    right: 0;
    top: 0;
    z-index: 1;
}

.store-reg-map-modal .store-reg-map {
    width: 100%;
    height: 320px;
}

/* مرحله انتخاب پلن: فقط یک نشانه‌ی حداقلی برای کارت انتخاب‌شده تا قابل تشخیص
   باشد؛ ظاهر کامل کارت‌ها را خودتان طراحی کنید. */
.store-reg-plan-card {
    cursor: pointer;
}

.store-reg-plan-card.is-selected {
    outline: 2px solid currentColor;
}

/* ─────────────────────────────────────────────
   خلاصه‌ی اطلاعات ثبت‌شده (بالای مرحله‌ی انتخاب پلن) - فقط چیدمان حداقلی؛
   ظاهر را خودتان تکمیل کنید.
   ───────────────────────────────────────────── */
.store-reg-summary-wrapper{
    padding: 30px 40px;
    border-radius: 32px;
    background-color: var(--white_color);
    border: 1px solid var(--black-10);
}
.store-reg-summary-wrapper .title{
    width: 100%;
    display: block;
    margin-bottom: 30px;
    font-size: 16px;
}
.store-reg-plan-toggle-boxes.head-up-mask-wrap,
.store-reg-summary-wrap{
    padding: 16px;
}
.store-reg-summary-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 24px 8px;
    padding: 24px;
    border-radius: 24px;
    background-color: var(--white_color);
    border: 1px solid var(--black-10);
}

.store-reg-summary-row {
    display: flex;
    gap: 10px;
    box-sizing: border-box;
    flex: 0 0 calc(33.333% - 10px);
}
.store-reg-summary-row .store-reg-summary-label{
    font-size: 14px;
    font-weight: 300;
    color: var(--black-70);
}
.store-reg-summary-row .store-reg-summary-value{
    font-size: 14px;
    font-weight: 500;
    color: var(--black_color);
}

.store-reg-back-btn {
    cursor: pointer;
}

.store-reg-panel-wrapper .store-reg-form-head .store-reg-form-head__icon.dark{
    background: var(--black_color);
}

.store-reg-plan-step .store-reg-toggle-box .inner-box .store-reg-toggle-box__body{
    width: 45%;
}
.store-reg-plan-step .store-reg-toggle-box .inner-box{
    background: var(--white_color);
    gap: 0;
}

.store-reg-plan-step .store-reg-toggle-box:after{
    opacity: 1;
}

.store-reg-plan-step{
    margin-top: 60px;
}
.mt-130{
    margin-top: 130px;
}
.store-reg-plan-step .store-reg-back-btn{
    position: absolute;
    top: 5px;
    left: 5px;
    width: 180px;
    background-color: var(--gray_color);
}

.store-reg-plan-list ul.products {
    margin: 50px -19% 16px 0;
    padding: 0;
    list-style: none outside;
    clear: both;
    width: 81%;
    display: flex;
    flex-wrap: wrap;
}
.store-reg-plan-list ul.products li.product {
    margin: 0 0 24px 24px;
    padding: 0;
    position: relative;
    width: calc(33.33333% - 24px);
}

.store-reg-plan-list{
    margin-top: 70px;
    display: flex;
    align-items: start;
    position: relative;
}
.store-reg-plan-list > .head{
    position: relative;
    color: var(--white_color);
    padding: 26px 26px 26px 19%;
    width: 39%;
}
.store-reg-plan-list .head .shape-unit {
    filter: url(#smooth-join2);
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    min-height: 305px;
    z-index: -1;
    height: calc(100% - 85px);
}
.store-reg-plan-list .head .rect {
    position: absolute;
    background: var(--primary_color);
}
.store-reg-plan-list:first-child .head .rect{
    background: var(--black_color);
}

.store-reg-plan-list .head .rect1 {
    width: 50%;
    height: 85px;
    right: 0;
    bottom: 0;
    border-radius: 0;
    z-index: 2;
}
.store-reg-plan-list .head .rect2 {
    width: 100%;
    height: calc(100% - 80px);
    border-radius:0;
    right: 0;
    top: 0;
    z-index: 1;
}
.store-reg-plan-list > .head .title-box{
    display: flex;
}
.store-reg-plan-list > .head .title-box i{
    font-size: 45px;
    margin-top: -8px;
}
.store-reg-plan-list > .head .title{
    font-size: 20px;
    font-weight: 700;
    display: block;
    padding: 14px;
}
.store-reg-plan-list > .head p{
    font-size: 16px;
    font-weight: 500;
    opacity: .7;
    padding: 16px 4px 16px 16px;
}
.store-reg-plan-list .bg-left{
    content:"";
    width: 42%;
    height: 62%;
    border-radius: 32px;
    background-color: var(--gray_color);
    position: absolute;
    top: 24px;
    left: 0;
    z-index: -1;
}























@media (max-width: 991px) {
    .store-reg-toggle-boxes{
        flex-wrap: wrap;
        margin: 25px 0;
    }
    .store-reg-toggle-box {
        width: auto;
        max-width: 100%;
        margin: 16px auto;
    }
    .store-reg-toggle-box .inner-box .store-reg-toggle-box__body{
        padding-top: 250px;
    }
    .store-reg-toggle-box .inner-box{
        align-items: end;
        justify-content: start;
    }
    .store-reg-toggle-box .store-reg-toggle-box__icon{
        right: unset;
        left: 30px;
    }
    .store-reg-plan-step .store-reg-toggle-box .inner-box .store-reg-toggle-box__body,
    .store-reg-toggle-box .inner-box .store-reg-toggle-box__body{
        width: calc(100% - 56px);
        max-width: calc(100% - 56px);
    }

}
@media (max-width: 767px){
    .store-reg-panel-wrapper .store-reg-wrapper .inner{
        padding-bottom: 90px;
    }
    .store-reg-panel-wrapper .store-reg-form .store-reg-field.store-reg-field--wide.store-reg-field--type-display,
    .store-reg-field,
    .store-reg-otp-step{
        width: 100%;
    }
}
@media (max-width: 575px){
    .store-reg-plan-step .store-reg-back-btn{
        width: auto;
    }
}
