.easyoffer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin: 25px 0;
}

.easyoffer-grid .easyoffer-box {
    margin: 0;
}

.easyoffer-grid-count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.easyoffer-grid-count-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.easyoffer-grid-count-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.easyoffer-grid-count-2 .easyoffer-box,
.easyoffer-grid-count-3 .easyoffer-box,
.easyoffer-grid-count-4 .easyoffer-box {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
}

.easyoffer-grid-count-2 .easyoffer-box img,
.easyoffer-grid-count-3 .easyoffer-box img,
.easyoffer-grid-count-4 .easyoffer-box img {
    width: 100%;
    max-width: none;
    border-radius: 8px;
}

.easyoffer-grid-count-2 .easyoffer-content,
.easyoffer-grid-count-3 .easyoffer-content,
.easyoffer-grid-count-4 .easyoffer-content {
    text-align: center;
}

.easyoffer-grid-count-2 .easyoffer-btn,
.easyoffer-grid-count-3 .easyoffer-btn,
.easyoffer-grid-count-4 .easyoffer-btn {
    display: flex;
    justify-content: center;
}

.easyoffer-grid-count-2 .easyoffer-box--classic,
.easyoffer-grid-count-3 .easyoffer-box--classic,
.easyoffer-grid-count-4 .easyoffer-box--classic {
    align-items: center;
}

.easyoffer-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    border: 1px solid var(--easyoffer-primary-border, #f1caca);
    padding: 20px;
    border-radius: 10px;
    background: var(--easyoffer-primary-soft, #fff3f3);
    box-shadow: 0 5px 18px rgba(120, 0, 0, 0.08);
    margin: 25px 0;
}

.easyoffer-box > img {
    border-radius: 10px !important;
    margin: 10px 0 !important;
    border: 3px #ff000000 solid !important;
    box-shadow: 0px 0px 0px 2px #D9DCFD !important;
}

.easyoffer-box--modern {
    border-radius: 14px;
}

.easyoffer-box--classic {
    border: 1px solid #d5d7da;
    background: #ffffff;
    box-shadow: none;
    border-radius: 4px;
}

.easyoffer-box--classic img {
    border-radius: 3px;
}

.easyoffer-box--classic .easyoffer-content h3 {
    color: #1f2937;
}

.easyoffer-box--classic .easyoffer-price {
    color: #374151;
}

.easyoffer-box--classic .easyoffer-btn a,
.easyoffer-box--classic .easyoffer-btn button,
.easyoffer-box--classic .easyoffer-request-submit {
    border-radius: 4px;
    box-shadow: none;
}

.easyoffer-box--dark {
    border: 1px solid #2f3441;
    background: #181c23;
    box-shadow: 0 8px 22px rgba(4, 8, 16, 0.38);
}

.easyoffer-box--dark .easyoffer-content h3 {
    color: #f3f4f6;
}

.easyoffer-box--dark .easyoffer-price {
    color: #d1d5db;
}

.easyoffer-box--dark .easyoffer-request-form input {
    border-color: #3f4656;
    background: #11151c;
    color: #f9fafb;
}

.easyoffer-box--dark .easyoffer-request-form input::placeholder {
    color: #9aa4b2;
}

.easyoffer-box--dark .easyoffer-request-notice {
    color: #e5e7eb;
}

.easyoffer-box--minimal {
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: none;
    border-radius: 8px;
}

.easyoffer-box--minimal .easyoffer-content h3 {
    font-size: 19px;
    font-weight: 500;
    color: #111827;
}

.easyoffer-box--minimal .easyoffer-price {
    color: #4b5563;
}

.easyoffer-box--minimal .easyoffer-btn a,
.easyoffer-box--minimal .easyoffer-btn button,
.easyoffer-box--minimal .easyoffer-request-submit {
    border-radius: 999px;
}

.easyoffer-box--glass {
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.16));
    box-shadow: 0 10px 26px rgba(31, 41, 55, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.easyoffer-box--glass .easyoffer-content h3 {
    color: #111827;
}

.easyoffer-box--glass .easyoffer-price {
    color: #1f2937;
}

.easyoffer-box--glass .easyoffer-request-form input {
    background: rgba(255, 255, 255, 0.72);
}

.easyoffer-box--neomorph {
    border: 0;
    background: #eef1f5;
    border-radius: 14px;
    box-shadow: 9px 9px 18px rgba(163, 177, 198, 0.45), -9px -9px 18px rgba(255, 255, 255, 0.95);
}

.easyoffer-box--neomorph img {
    border-radius: 10px;
}

.easyoffer-box--neomorph .easyoffer-content h3 {
    color: #1e293b;
}

.easyoffer-box--neomorph .easyoffer-price {
    color: #334155;
}

.easyoffer-box--neomorph .easyoffer-btn a,
.easyoffer-box--neomorph .easyoffer-btn button,
.easyoffer-box--neomorph .easyoffer-request-submit {
    box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.easyoffer-box--promo {
    border: 2px solid var(--easyoffer-primary, #d63638);
    background: #ffffff;
    box-shadow: none;
    border-radius: 12px;
}

.easyoffer-box--promo .easyoffer-content h3 {
    color: #333;
    font-weight: 600;
}

.easyoffer-box--promo .easyoffer-price {
    color: #555;
    font-weight: 400;
}

.easyoffer-box--promo .easyoffer-btn a,
.easyoffer-box--promo .easyoffer-btn button,
.easyoffer-box--promo .easyoffer-request-submit {
    box-shadow: none;
    font-weight: 500;
}

.easyoffer-box img {
    width: 236px;
    height: auto;
    border-radius: 6px;
    display: block;
}

.easyoffer-content {
    min-width: 0;
    width: 100%;
}

.easyoffer-content h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.easyoffer-box .easyoffer-content h3,
.easyoffer-box--modern .easyoffer-content h3,
.easyoffer-box--dark .easyoffer-content h3,
.easyoffer-box--classic .easyoffer-content h3,
.easyoffer-box--minimal .easyoffer-content h3,
.easyoffer-box--glass .easyoffer-content h3,
.easyoffer-box--neomorph .easyoffer-content h3,
.easyoffer-box--promo .easyoffer-content h3 {
    font-size: 20px !important;
}

.easyoffer-price {
    margin: 8px 0 15px;
    font-size: 17px;
    color: #555;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    line-height: 1.3;
}

.easyoffer-price del {
    font-size: 0.9em;
    text-decoration-color: rgba(151, 138, 252, 0.62);
    opacity: 0.78;
}

.easyoffer-price del .amount,
.easyoffer-price del bdi {
    font-size: inherit;
}

.easyoffer-price ins {
    text-decoration: none !important;
    font-size: 1.16em;
    font-weight: 700;
}

.easyoffer-price ins .amount,
.easyoffer-price ins bdi {
    font-weight: 700;
}

.easyoffer-box--no-price .easyoffer-content h3 {
    margin-bottom: 15px;
}

.easyoffer-btn a,
.easyoffer-btn button,
.easyoffer-request-submit {
    background: var(--easyoffer-primary, #d63638);
    padding: 10px 18px;
    display: inline-block;
    color: var(--easyoffer-button-text, #ffffff);
    text-decoration: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    transition: 0.2s;
    border: 0;
    cursor: pointer;
}

.easyoffer-btn a,
.easyoffer-btn button,
.easyoffer-request-submit,
.easyoffer-request-toggle {
    color: var(--easyoffer-button-text, #ffffff) !important;
}

.easyoffer-btn a:hover,
.easyoffer-btn button:hover,
.easyoffer-request-submit:hover {
    background: var(--easyoffer-primary-hover, #b62e30);
}

.easyoffer-request-form {
    display: none;
    margin-top: 16px;
    gap: 10px;
}

.easyoffer-request-form.is-visible {
    display: grid;
}

.easyoffer-request-form input,
.easyoffer-request-form select,
.easyoffer-request-form textarea,
.easyoffer-request-form input[type="date"],
.easyoffer-request-form input[type="email"],
.easyoffer-request-form input[type="number"],
.easyoffer-request-form input[type="password"],
.easyoffer-request-form input[type="search"],
.easyoffer-request-form input[type="tel"],
.easyoffer-request-form input[type="text"],
.easyoffer-request-form input[type="url"] {
    width: 100%;
    padding: 11px 12px;
    box-sizing: border-box;
    transition: all .3s;
    background: #dedbff !important;
    border: unset !important;
    border-radius: 10px !important;
}

.easyoffer-request-form .easyoffer-request-submit {
    background-color: #1fbb9d !important;
    color: #fff !important;
    text-decoration: none;
    border-radius: 10px !important;
    border: none !important;
}

.easyoffer-request-notice {
    margin-top: 12px;
    font-size: 14px;
    color: #555;
}

.easyoffer-request-notice:empty {
    display: none;
}

.easyoffer-request-notice.is-success {
    color: #166534;
}

.easyoffer-request-notice.is-error {
    color: #b42318;
}

@media (max-width: 768px) {
    .easyoffer-grid,
    .easyoffer-grid-count-2,
    .easyoffer-grid-count-3,
    .easyoffer-grid-count-4 {
        grid-template-columns: 1fr;
    }

    .easyoffer-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 16px;
    }

    .easyoffer-box img {
        width: 100%;
        max-width: 220px;
    }

    .easyoffer-content {
        width: 100%;
    }

    .easyoffer-btn a,
    .easyoffer-btn button,
    .easyoffer-request-submit {
        width: 100%;
        text-align: center;
    }

    .easyoffer-grid-count-1 .easyoffer-box {
        align-items: stretch;
    }

    .easyoffer-grid-count-1 .easyoffer-box img {
        width: 100%;
        max-width: none;
        border-radius: 8px;
    }

    .easyoffer-grid-count-1 .easyoffer-content {
        text-align: center;
    }

    .easyoffer-grid-count-1 .easyoffer-btn {
        display: flex;
        justify-content: center;
    }
}

.easyoffer-button-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.vc_editor .easyoffer-btn a,
.vc_editor .easyoffer-btn button,
.vc_editor .easyoffer-request-submit,
.vc_editor .easyoffer-request-toggle,
.vc_editor .easyoffer-request-form input,
.vc_editor .easyoffer-request-form button {
    pointer-events: none !important;
}

.vc_editor .easyoffer-box * {
    user-select: none;
}

.vc_editor .wpb_easyoffer_vc,
.vc_editor .wpb_easyoffer {
    position: relative;
}

.vc_editor .wpb_easyoffer_vc > .vc_controls,
.vc_editor .wpb_easyoffer > .vc_controls {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 1000;
}

.vc_editor .wpb_easyoffer_vc > .wpb_element_wrapper,
.vc_editor .wpb_easyoffer > .wpb_element_wrapper {
    min-height: 38px;
}

.easyoffer-button-content.is-style-text-only .easyoffer-button-icon,
.easyoffer-button-content.is-style-text-only .easyoffer-button-dashicon {
    display: none;
}

.easyoffer-button-content.is-style-icon-only .easyoffer-button-label {
    display: none;
}

.easyoffer-button-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 0;
    flex: 0 0 auto;
}

.easyoffer-button-content.is-icon-right .easyoffer-button-icon {
    order: 2;
}

.easyoffer-button-content.is-icon-right .easyoffer-button-label {
    order: 1;
}

.easyoffer-button-content.is-icon-left .easyoffer-button-icon {
    order: 1;
}

.easyoffer-button-content.is-icon-left .easyoffer-button-label {
    order: 2;
}

.easyoffer-button-dashicon {
    width: 18px;
    height: 18px;
    font-size: 18px;
    line-height: 1;
    flex: 0 0 auto;
}

.easyoffer-button-content.is-icon-right .easyoffer-button-dashicon {
    order: 2;
}

.easyoffer-button-content.is-icon-left .easyoffer-button-dashicon {
    order: 1;
}

[dir="rtl"] .easyoffer-button-content.is-icon-right .easyoffer-button-icon,
body.rtl .easyoffer-button-content.is-icon-right .easyoffer-button-icon {
    order: 1;
}

[dir="rtl"] .easyoffer-button-content.is-icon-right .easyoffer-button-label,
body.rtl .easyoffer-button-content.is-icon-right .easyoffer-button-label {
    order: 2;
}

[dir="rtl"] .easyoffer-button-content.is-icon-left .easyoffer-button-icon,
body.rtl .easyoffer-button-content.is-icon-left .easyoffer-button-icon {
    order: 2;
}

[dir="rtl"] .easyoffer-button-content.is-icon-left .easyoffer-button-label,
body.rtl .easyoffer-button-content.is-icon-left .easyoffer-button-label {
    order: 1;
}

[dir="rtl"] .easyoffer-button-content.is-icon-right .easyoffer-button-dashicon,
body.rtl .easyoffer-button-content.is-icon-right .easyoffer-button-dashicon {
    order: 1;
}

[dir="rtl"] .easyoffer-button-content.is-icon-left .easyoffer-button-dashicon,
body.rtl .easyoffer-button-content.is-icon-left .easyoffer-button-dashicon {
    order: 2;
}

@media (min-width: 769px) {
    .easyoffer-grid-count-1 .easyoffer-box,
    .easyoffer-festival .easyoffer-box {
        align-items: stretch;
    }

    .easyoffer-grid-count-1 .easyoffer-box > img,
    .easyoffer-festival .easyoffer-box > img {
        align-self: flex-start;
    }

    .easyoffer-grid-count-1 .easyoffer-content,
    .easyoffer-festival .easyoffer-content {
        display: flex;
        flex-direction: column;
        min-height: 100%;
    }

    .easyoffer-grid-count-1 .easyoffer-btn,
    .easyoffer-festival .easyoffer-btn {
        margin-top: auto;
    }
}

/* ==========================================================================
   EasyOffer ACF fields (discount badge, discount tip, specs, gallery)
   ========================================================================== */
.easyoffer-box {
    position: relative;
}

.easyoffer-discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    background: var(--easyoffer-primary, #d63638);
    color: var(--easyoffer-button-text, #ffffff);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    box-shadow: none;
    white-space: nowrap;
}

.easyoffer-badges {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    direction: ltr;
    gap: 6px;
    max-width: calc(100% - 24px);
}

.easyoffer-badges .easyoffer-discount-badge {
    position: static;
    direction: rtl !important;
}

.easyoffer-taxonomy-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
    width: 100%;
}

.easyoffer-taxonomy-badges--category {
    order: 2;
}

.easyoffer-taxonomy-badges--package {
    order: 3;
}

.easyoffer-taxonomy-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.4;
    background: #ffffff;
    border: 1px solid var(--easyoffer-primary-border, #cfc8ff);
    color: var(--easyoffer-primary, #7563ff);
    direction: rtl;
    white-space: nowrap;
}

.easyoffer-taxonomy-badge--package {
    background: #efebff;
}

.easyoffer-discount-tip {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    font-size: 14px;
    color: #444;
}

.easyoffer-discount-tip__icon {
    width: 18px;
    height: 18px;
    line-height: 1;
    color: var(--easyoffer-primary, #d63638);
    flex: 0 0 auto;
}

.easyoffer-discount-tip__icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.easyoffer-discount-tip__text {
    min-width: 0;
    font-weight: 600;
}

.easyoffer-specs {
    list-style: none;
    margin: 0 0 15px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    text-align: right;
}

.easyoffer-specs__item {
    position: relative;
    padding-inline-start: 18px;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    text-align: right;
}

.easyoffer-specs__item::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0.6em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--easyoffer-primary, #d63638);
}

button.easyoffer-gallery-toggle {
    background: var(--easyoffer-primary-soft, #fbe9e9);
    border: 1px solid var(--easyoffer-primary, #d63638);
    color: var(--easyoffer-primary, #d63638) !important;
    padding: 9px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

button.easyoffer-gallery-toggle {
    background-color: #dedaff;
    border: dashed 1px #978afc;
    color: #7563ff !important;
}

button.easyoffer-gallery-toggle:hover {
    background: var(--easyoffer-primary-border, #efc1c1);
    color: var(--easyoffer-primary-hover, #b62e30) !important;
}

button.easyoffer-gallery-toggle:active,
button.easyoffer-gallery-toggle:focus-visible {
    background: #dedaff;
    border: dashed 1px #978afc;
    color: #7563ff !important;
    outline: none;
}

.easyoffer-btn .easyoffer-gallery-toggle,
.easyoffer-btn .easyoffer-gallery-toggle:hover,
.easyoffer-btn .easyoffer-gallery-toggle:active,
.easyoffer-btn .easyoffer-gallery-toggle:focus,
.easyoffer-btn .easyoffer-gallery-toggle:focus-visible {
    background-color: #dedaff !important;
    border: dashed 1px #978afc !important;
    color: #7563ff !important;
}

.easyoffer-description-toggle {
    min-width: 130px;
}

.easyoffer-btn {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: nowrap;
}

.easyoffer-btn > a,
.easyoffer-btn > button,
.easyoffer-btn > .easyoffer-request-toggle,
.easyoffer-btn > .easyoffer-gallery-toggle {
    min-width: 0;
    flex: 1 1 0;
    text-align: center;
}

.easyoffer-btn > .easyoffer-gallery-toggle {
    order: 1;
}

.easyoffer-btn > a,
.easyoffer-btn > .easyoffer-request-toggle,
.easyoffer-btn > button:not(.easyoffer-gallery-toggle) {
    order: 2;
}

/* Gallery popup / lightbox */
.easyoffer-gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 18, 24, 0.82);
}

.easyoffer-gallery-modal.is-open {
    display: flex;
}

.easyoffer-gallery-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #ffffff !important;
    border-radius: 12px;
    padding: 10px;
}

.easyoffer-gallery-modal__stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff !important;
    border-radius: 10px;
    overflow: hidden;
    min-height: 240px;
    max-height: 70vh;
}

.easyoffer-gallery-modal__image {
    display: block;
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

button.easyoffer-gallery-modal__close,
button.easyoffer-gallery-modal__nav {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--easyoffer-primary, #9689fb) !important;
    border-radius: 50%;
    background: #ffffff !important;
    color: var(--easyoffer-primary, #9689fb) !important;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: 0.2s;
}

button.easyoffer-gallery-modal__close:hover,
button.easyoffer-gallery-modal__nav:hover {
    background: var(--easyoffer-primary-soft, #fbe9e9);
    border-color: var(--easyoffer-primary, #9689fb) !important;
}

.easyoffer-gallery-modal__close {
    top: 10px;
    inset-inline-end: 10px;
}

.easyoffer-gallery-modal__nav {
    top: 50%;
    transform: translateY(-50%);
}

.easyoffer-gallery-modal__nav--prev {
    inset-inline-start: 12px;
}

.easyoffer-gallery-modal__nav--next {
    inset-inline-end: 12px;
}

.easyoffer-gallery-modal__nav[hidden] {
    display: none;
}

.easyoffer-gallery-modal__thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px;
    justify-content: center;
    background: #ffffff !important;
    border-radius: 10px;
}

button.easyoffer-gallery-modal__thumb {
    width: 64px;
    height: 64px;
    flex: 0 0 auto;
    border: 2px solid var(--easyoffer-primary, #9689fb) !important;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #ffffff !important;
    padding: 0;
    opacity: 0.65;
    transition: 0.2s;
}

.easyoffer-gallery-modal__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #ffffff !important;
}

.easyoffer-gallery-modal__thumb.is-active,
.easyoffer-gallery-modal__thumb:hover {
    opacity: 1;
    border-color: var(--easyoffer-primary, #9689fb) !important;
}

.easyoffer-gallery-lock {
    overflow: hidden;
}

/* Description popup */
.easyoffer-description-modal {
    position: fixed;
    inset: 0;
    z-index: 999998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 18, 24, 0.72);
}

.easyoffer-description-modal.is-open {
    display: flex;
}

.easyoffer-description-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 680px;
    max-height: 80vh;
    overflow: auto;
    background: #ffffff;
    border: 1px solid var(--easyoffer-primary-border, #cfc8ff);
    border-radius: 12px;
    padding: 18px;
}

.easyoffer-description-modal__close {
    position: absolute;
    top: 8px;
    inset-inline-end: 8px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--easyoffer-primary, #7563ff) !important;
    border-radius: 50%;
    background: #ffffff !important;
    color: var(--easyoffer-primary, #7563ff) !important;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

button.easyoffer-description-modal__close,
button.easyoffer-description-modal__close:hover,
button.easyoffer-description-modal__close:focus,
button.easyoffer-description-modal__close:focus-visible,
button.easyoffer-description-modal__close:active {
    border-color: var(--easyoffer-primary, #7563ff) !important;
    color: var(--easyoffer-primary, #7563ff) !important;
    background: #ffffff !important;
}

.easyoffer-description-modal__content {
    margin-top: 20px;
    color: #30323a;
    line-height: 1.9;
    font-size: 15px;
}

.easyoffer-description-modal__content p {
    margin: 0 0 10px;
}

@media (max-width: 768px) {
    .easyoffer-badges {
        position: static;
        top: auto;
        left: auto;
        transform: none;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 6px;
        width: 100%;
        max-width: 100%;
        direction: rtl;
        margin: 8px 0 10px;
    }

    .easyoffer-box .easyoffer-content .easyoffer-taxonomy-badges {
        display: inline-flex;
        flex-wrap: nowrap;
        justify-content: center;
        width: auto;
    }

    .easyoffer-taxonomy-badge {
        white-space: nowrap;
    }

    .easyoffer-taxonomy-badge--package {
        background: #efebff;
    }

    .easyoffer-specs {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .easyoffer-specs__item {
        text-align: right;
    }

    .easyoffer-box .easyoffer-content h3,
    .easyoffer-box.easyoffer-box--minimal .easyoffer-content h3 {
        font-size: 20px !important;
    }

    .easyoffer-price {
        align-items: center;
    }

    .easyoffer-btn {
        flex-direction: column;
        width: 100%;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .easyoffer-btn > .easyoffer-gallery-toggle {
        order: 1;
        width: 100%;
    }

    .easyoffer-btn > a,
    .easyoffer-btn > .easyoffer-request-toggle,
    .easyoffer-btn > button:not(.easyoffer-gallery-toggle) {
        order: 2;
        width: 100%;
    }

    .easyoffer-gallery-modal__close {
        top: 8px;
        inset-inline-end: 8px;
    }

    .easyoffer-description-modal__dialog {
        max-height: 85vh;
        padding: 14px;
    }
}

/* ==========================================================================
   EasyOffer Festival Page
   ========================================================================== */
.easyoffer-festival {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    overflow: visible;
    margin: 24px 0;
}

.easyoffer-festival__sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
    border: 1px solid var(--easyoffer-primary-border, #d9d2ff);
    background: #fff;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
    z-index: 40;
}

.easyoffer-festival__sidebar-scroll {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.easyoffer-festival__scroll-hint {
    display: none;
}

@media (min-width: 981px) {
    .easyoffer-festival {
        position: relative;
    }

    .easyoffer-festival__sidebar {
        position: fixed !important;
        top: auto !important;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: min(1200px, calc(100vw - 40px));
        max-width: calc(100vw - 40px);
        z-index: 1000;
    }

    .easyoffer-festival__sidebar-scroll {
        display: flex;
        align-items: center;
        gap: 14px;
        flex-wrap: wrap;
    }

    .easyoffer-festival__main {
        margin-top: 0;
        padding-bottom: 120px;
    }

    .easyoffer-festival__quick-toggle,
    .easyoffer-festival__filter-group {
        position: relative;
        padding-inline-start: 12px;
        margin-inline-start: 2px;
    }

    .easyoffer-festival__quick-toggle::before,
    .easyoffer-festival__filter-group::before {
        content: "";
        position: absolute;
        inset-inline-start: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 1px;
        height: 24px;
        background: rgba(39, 42, 50, 0.18);
    }
}

.easyoffer-festival__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1f2430;
    white-space: nowrap;
}

.easyoffer-festival__filter-group {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.easyoffer-festival__filter-group h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #272a32;
    white-space: nowrap;
}

.easyoffer-festival__options {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.easyoffer-festival__check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.easyoffer-festival__check input {
    accent-color: var(--easyoffer-primary, #9689fb);
}

.easyoffer-festival__quick-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-weight: 400;
    color: #1f2430;
    white-space: nowrap;
}

.easyoffer-festival__quick-toggle input {
    accent-color: var(--easyoffer-primary, #7563ff);
}

.easyoffer-festival__clear {
    width: auto;
    cursor: pointer;
    margin-inline-start: auto;
}

/* Scoped button system for festival filters (prevents theme red styles) */
.easyoffer-festival__sidebar [type="button"],
.easyoffer-festival__sidebar [type="submit"],
.easyoffer-festival__sidebar button,
.easyoffer-festival__mobile-toggle,
.easyoffer-festival__sheet-close {
    background-color: transparent;
    border: 1px solid #978afc;
    border-radius: 3px;
    color: #978afc;
    display: inline-block;
    font-size: 1rem;
    font-weight: 400;
    padding: 0.2rem 1rem;
    text-align: center;
    transition: all .3s;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    white-space: nowrap;
}

.easyoffer-festival__sidebar [type="button"]:hover,
.easyoffer-festival__sidebar [type="submit"]:hover,
.easyoffer-festival__sidebar button:hover,
.easyoffer-festival__mobile-toggle:hover,
.easyoffer-festival__sheet-close:hover,
.easyoffer-festival__sidebar [type="button"]:focus,
.easyoffer-festival__sidebar [type="submit"]:focus,
.easyoffer-festival__sidebar button:focus,
.easyoffer-festival__mobile-toggle:focus,
.easyoffer-festival__sheet-close:focus,
.easyoffer-festival__sidebar [type="button"]:focus-visible,
.easyoffer-festival__sidebar [type="submit"]:focus-visible,
.easyoffer-festival__sidebar button:focus-visible,
.easyoffer-festival__mobile-toggle:focus-visible,
.easyoffer-festival__sheet-close:focus-visible {
    background-color: #978afc !important;
    color: #fff !important;
    text-decoration: none;
    border-color: #978afc !important;
}

.easyoffer-festival__main {
    min-width: 0;
}

.easyoffer-festival__list {
    display: grid;
    gap: 10px;
}

.easyoffer-festival .easyoffer-box {
    margin: 0;
}

.easyoffer-festival__status {
    margin-top: 14px;
    text-align: center;
    color: #5f6470;
    min-height: 20px;
}

.easyoffer-festival__mobile-toggle {
    display: none !important;
}

.easyoffer-festival__sheet {
    display: none;
}

.easyoffer-festival.is-filters-open .easyoffer-festival__mobile-toggle {
    background-color: #978afc !important;
    color: #fff !important;
    border-color: #978afc !important;
}

@media (max-width: 980px) {
    .easyoffer-festival {
        grid-template-columns: 1fr;
    }

    .easyoffer-festival__sidebar {
        display: flex;
        position: fixed;
        top: auto;
        bottom: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
        z-index: 1000;
        padding: 0;
        overflow: visible;
    }

    .easyoffer-festival__sidebar-scroll {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding: 12px 34px;
    }

    .easyoffer-festival__scroll-hint {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 22px;
        height: 22px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        border: 1px solid rgba(151, 138, 252, 0.35);
        background: rgba(255, 255, 255, 0.92);
        color: #7f73e8;
        font-size: 15px;
        line-height: 1;
        box-shadow: 0 2px 8px rgba(17, 24, 39, 0.12);
        pointer-events: none;
        z-index: 4;
    }

    .easyoffer-festival__scroll-hint--start {
        inset-inline-start: 8px;
    }

    .easyoffer-festival__scroll-hint--end {
        inset-inline-end: 8px;
    }

    .easyoffer-festival__title {
        display: block;
    }

    .easyoffer-festival__mobile-toggle {
        display: none !important;
    }

    .easyoffer-festival__sheet[hidden] {
        display: none;
    }

    .easyoffer-festival__sheet {
        display: none !important;
    }

    .easyoffer-festival__sheet-backdrop {
        display: none;
    }

    .easyoffer-festival__sheet-panel {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        max-height: none;
        overflow: auto;
        border-radius: 12px;
        background: #fff;
        padding: 12px;
        box-shadow: 0 6px 18px rgba(17, 24, 39, 0.12);
        border: 1px solid var(--easyoffer-primary-border, #d9d2ff);
    }

    .easyoffer-festival__sheet-close {
        position: absolute;
        top: 8px;
        inset-inline-end: 8px;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        font-size: 20px;
        line-height: 1;
    }

    .easyoffer-festival__sheet-close:hover,
    .easyoffer-festival__sheet-close:focus {
        border-color: #978afc !important;
        color: #fff !important;
        background: #978afc !important;
    }

    .easyoffer-festival .easyoffer-box img {
        width: 100%;
        max-width: none;
        border-radius: 8px;
    }

    .easyoffer-festival .easyoffer-content {
        text-align: center;
    }

    .easyoffer-festival .easyoffer-btn {
        display: flex;
        justify-content: center;
    }

    .easyoffer-festival__main {
        padding-bottom: 130px;
    }

    .easyoffer-festival__quick-toggle,
    .easyoffer-festival__filter-group,
    .easyoffer-festival__options,
    .easyoffer-festival__check {
        flex-wrap: nowrap;
        white-space: nowrap;
    }

    .easyoffer-festival__sheet-content .easyoffer-festival__sidebar {
        display: block;
        position: static;
        border: 0;
        box-shadow: none;
        padding: 8px 2px 18px;
    }

    .easyoffer-festival__sheet-content .easyoffer-festival__title {
        margin: 0 0 12px;
        white-space: normal;
    }

    .easyoffer-festival__sheet-content .easyoffer-festival__filter-group {
        display: block;
        margin-bottom: 14px;
    }

    .easyoffer-festival__sheet-content .easyoffer-festival__filter-group h4 {
        margin: 0 0 10px;
    }

    .easyoffer-festival__sheet-content .easyoffer-festival__options {
        display: grid;
    }

    .easyoffer-festival__sheet-content .easyoffer-festival__quick-toggle {
        display: flex;
        margin: 8px 0 14px;
    }

    .easyoffer-festival__sheet-content .easyoffer-festival__clear {
        width: 100%;
        margin-inline-start: 0;
    }

    .easyoffer-festival.is-filters-open .easyoffer-festival__mobile-toggle {
        display: inline-flex !important;
    }
}

/* Product title: same look on every site (matches the main site's Elementor kit h3). */
.easyoffer-box .easyoffer-content h3 {
    color: #46027a;
    font-weight: 800;
    line-height: 1.2;
}

@media (max-width: 767px) {
    .easyoffer-box .easyoffer-content h3 {
        line-height: 1.7em;
    }
}

/* ======================================================================
 * Installments («خرید اقساطی کلینیک ایرانیان»): card strip/buttons/panel and the packages page.
 * Same tokens as the festival cards (--easyoffer-primary …).
 * ==================================================================== */
.easyoffer-box, .easyoffer-instpage { --eo-ink: #46027a; --eo-muted: #6b6880; }

/* Strip under the price */
.easyoffer-inst-promo {
    display: flex; align-items: center; gap: 8px; width: 100%; margin: -4px 0 14px; padding: 8px 12px !important; text-align: right;
    border: 1px dashed var(--easyoffer-primary, #9689fb) !important; border-radius: 10px !important; cursor: pointer;
    background: linear-gradient(90deg, var(--easyoffer-primary-soft, #f2f1ff), #fff) !important; color: var(--eo-ink) !important;
    font-family: inherit; font-size: 14px; line-height: 1.7; transition: box-shadow .2s;
}
.easyoffer-inst-promo:hover { box-shadow: 0 4px 14px rgba(70, 2, 122, .12); }
.easyoffer-inst-promo b { font-weight: 800; white-space: nowrap; }
.easyoffer-inst-promo__icon { font-size: 18px; line-height: 1; }

/* Buttons: two purchase buttons, then «توضیحات» / «نمونه‌کارها» */
.easyoffer-btn.easyoffer-btn--inst { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; }
.easyoffer-btn.easyoffer-btn--inst > * { width: 100%; margin: 0 !important; justify-content: center; text-align: center; box-sizing: border-box; }
.easyoffer-btn.easyoffer-btn--inst > * { order: 3 !important; }
.easyoffer-btn.easyoffer-btn--inst > :first-child { order: 1 !important; }
.easyoffer-btn.easyoffer-btn--inst > .easyoffer-inst-toggle { order: 2 !important; }
.easyoffer-btn.easyoffer-btn--inst > .easyoffer-description-toggle { order: 4 !important; }
.easyoffer-btn .easyoffer-inst-toggle { background: linear-gradient(135deg, #46027a, var(--easyoffer-primary, #9689fb)) !important; font-weight: 700; border: 0; border-radius: 6px; cursor: pointer; font-family: inherit; }
.easyoffer-btn .easyoffer-inst-toggle.is-active { box-shadow: 0 0 0 3px var(--easyoffer-primary-border, #e2defe); }

/* Installment panel */
.easyoffer-inst {
    margin: 14px 0 0; padding: 14px 16px; background: #fff;
    border: 1px solid var(--easyoffer-primary-border, #e2defe); border-radius: 12px; box-shadow: 0 4px 14px rgba(70, 2, 122, .06);
}
.easyoffer-inst[hidden] { display: none !important; }
.easyoffer-inst__head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.easyoffer-inst__icon { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--easyoffer-primary-soft, #f2f1ff); color: var(--easyoffer-primary, #9689fb); flex-shrink: 0; }
.easyoffer-inst__icon svg { width: 18px !important; height: 18px !important; fill: currentColor; }
.easyoffer-inst__title { font-weight: 800; font-size: 14px; color: var(--eo-ink); }
.easyoffer-inst__monthly { display: flex; flex-direction: column; }
.easyoffer-inst__monthly small { font-size: 12px; color: var(--eo-muted); line-height: 1.6; }
.easyoffer-inst__monthly strong { font-size: 22px; font-weight: 800; color: var(--eo-ink); line-height: 1.5; }

/* Month steps (one per month) */
.easyoffer-steps { display: flex; flex: 1 1 260px; gap: 4px; margin: 0; direction: rtl; }
.easyoffer-steps__s {
    flex: 1 1 0; min-width: 0; height: 34px; padding: 0 !important; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 700; line-height: 1;
    border: 1px solid var(--easyoffer-primary-border, #e2defe) !important; border-radius: 8px !important; background: #fff !important; color: var(--eo-muted, #6b6880) !important;
    transition: background .15s, color .15s, transform .15s;
}
.easyoffer-steps__s.is-before { background: var(--easyoffer-primary-soft, #f2f1ff) !important; color: var(--easyoffer-primary-hover, #8074d5) !important; }
.easyoffer-steps__s.is-on, .easyoffer-steps__s.is-on:hover, .easyoffer-steps__s.is-on:focus { background: var(--easyoffer-primary, #9689fb) !important; border-color: var(--easyoffer-primary, #9689fb) !important; color: #fff !important; transform: scale(1.08); box-shadow: 0 3px 10px rgba(70, 2, 122, .25); }
.easyoffer-steps__s:focus-visible { outline: 2px solid var(--eo-ink, #46027a); outline-offset: 2px; }

.easyoffer-inst__sum { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-top: 10px; font-size: 13px; color: #555; }
.easyoffer-inst__sum b { color: var(--eo-ink); font-weight: 800; }
.easyoffer-inst__pays, .easyoffer-instcalc__pays { display: inline-block; padding: 2px 10px; border-radius: 8px; background: var(--easyoffer-primary-soft, #f2f1ff); border: 1px solid var(--easyoffer-primary-border, #e2defe); color: var(--eo-ink, #46027a); font-size: 12px; font-weight: 700; line-height: 1.9; }
.easyoffer-inst__terms { list-style: none !important; margin: 10px 0 0 !important; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--eo-muted, #6b6880); }
.easyoffer-inst__terms li { position: relative; margin: 0 !important; padding: 0 16px 0 0 !important; list-style: none !important; }
.easyoffer-inst__terms li::before { content: "✓"; position: absolute; right: 0; top: 0; color: var(--easyoffer-primary, #9689fb); font-weight: 800; }
.easyoffer-inst__form, .easyoffer-instcalc__form { display: grid; gap: 8px; margin-top: 12px; }
.easyoffer-inst__form input[type="text"], .easyoffer-inst__form input[type="tel"],
.easyoffer-instcalc__amount, .easyoffer-instcalc__form input[type="text"], .easyoffer-instcalc__form input[type="tel"] {
    width: 100%; box-sizing: border-box; padding: 11px 12px !important; border: unset !important; border-radius: 10px !important; background: #dedbff !important; font-family: inherit; font-size: 15px; color: #222;
}
.easyoffer-inst__submit, .easyoffer-instcalc__submit { padding: 11px 16px; border: 0 !important; border-radius: 10px !important; background: #1fbb9d !important; color: #fff !important; font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.easyoffer-inst__submit:disabled, .easyoffer-instcalc__submit:disabled { opacity: .7; cursor: default; }
.easyoffer-inst__notice, .easyoffer-instcalc__notice { font-size: 13px; color: #555; min-height: 1em; }
.easyoffer-inst__notice.is-success, .easyoffer-instcalc__notice.is-success { color: #166534; }
.easyoffer-inst__notice.is-error, .easyoffer-instcalc__notice.is-error { color: #b42318; }

/* Packages page: packages | calculator */
.easyoffer-instpage { margin: 24px 0; }
.easyoffer-instpage__layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.easyoffer-instpage__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.easyoffer-instpage__chip { padding: 5px 14px !important; border: 1px solid var(--easyoffer-primary-border, #e2defe) !important; border-radius: 8px !important; background: #fff !important; color: var(--easyoffer-primary-hover, #8074d5) !important; font-family: inherit; font-size: 13px; cursor: pointer; }
.easyoffer-instpage__chip.is-active { background: var(--easyoffer-primary, #9689fb) !important; border-color: var(--easyoffer-primary, #9689fb) !important; color: #fff !important; }
.easyoffer-instpage__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.easyoffer-instpage__item { display: flex; flex-direction: column; gap: 6px; padding: 12px; background: var(--easyoffer-primary-soft, #f2f1ff); border: 1px solid var(--easyoffer-primary-border, #e2defe); border-radius: 14px; box-shadow: 0 5px 18px rgba(70, 2, 122, .06); transition: box-shadow .2s, transform .2s; }
.easyoffer-instpage__item[hidden] { display: none !important; }
.easyoffer-instpage__item:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(70, 2, 122, .12); }
.easyoffer-instpage__item.is-picked { box-shadow: 0 0 0 2px var(--easyoffer-primary, #9689fb), 0 8px 22px rgba(70, 2, 122, .12); }
.easyoffer-instpage__media { position: relative; }
.easyoffer-instpage__media img { display: block; width: 100% !important; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px !important; box-shadow: 0 0 0 2px #d9dcfd !important; cursor: zoom-in; margin: 0 !important; }
.easyoffer-instpage .easyoffer-instpage__gal { position: absolute; left: 8px; right: auto !important; bottom: 8px; width: auto !important; min-width: 0 !important; flex: none !important; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px !important; border: 0 !important; border-radius: 8px !important; background: rgba(70, 2, 122, .78) !important; color: #fff !important; font-size: 12px; font-weight: 700; line-height: 1.8; cursor: pointer; }
.easyoffer-instpage .easyoffer-instpage__gal svg { width: 14px !important; height: 14px !important; fill: currentColor; }
.easyoffer-instpage .easyoffer-instpage__gal-t { font-size: 11px; font-weight: 600; opacity: .95; }
/* The festival's gallery-button hover/focus colours must not apply to these two */
.easyoffer-instpage .easyoffer-instpage__gal:hover, .easyoffer-instpage .easyoffer-instpage__gal:focus, .easyoffer-instpage .easyoffer-instpage__gal:active { background: rgba(70, 2, 122, .92) !important; color: #fff !important; border: 0 !important; }
.easyoffer-instpage__item h3 { margin: 4px 0 0 !important; font-size: 15px !important; font-weight: 800; line-height: 1.7; color: var(--eo-ink); cursor: pointer; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.easyoffer-instpage__price { display: flex; flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.7; } /* original (struck) above, discounted below */
.easyoffer-instpage__price del { font-size: 12px; color: #888; }
.easyoffer-instpage__price strong { font-size: 15px; font-weight: 800; color: #333; }
.easyoffer-instpage__gift { font-size: 12px; font-weight: 600; color: var(--eo-ink, #46027a); background: #e7e2ff; border-radius: 8px; padding: 2px 8px; white-space: nowrap; overflow: hidden; }
.easyoffer-instpage__gift-t { display: inline-block; }
.easyoffer-instpage__gift.is-marquee .easyoffer-instpage__gift-t { animation: eo-gift var(--eo-dur, 8s) ease-in-out infinite; }
@keyframes eo-gift { 0%, 15% { transform: translateX(0); } 50%, 65% { transform: translateX(var(--eo-shift, 0)); } 100% { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .easyoffer-instpage__gift.is-marquee .easyoffer-instpage__gift-t { animation: none; } }

/* Bottom of each package: dark purple box with the monthly amount and a light button */
.easyoffer-instpage__cta { margin-top: auto; padding: 10px; border-radius: 12px; background: linear-gradient(135deg, #46027a, var(--easyoffer-primary, #9689fb)); color: #fff; display: flex; flex-direction: column; gap: 8px; }
.easyoffer-instpage__from { display: flex; flex-direction: column; align-items: center; text-align: center; font-size: 13px; line-height: 1.8; color: #fff; }
.easyoffer-instpage__from span { opacity: .9; }
.easyoffer-instpage__from strong { color: #fff; font-weight: 800; font-size: 14px; }
.easyoffer-instpage__from.is-cash { opacity: .9; }
.easyoffer-instpage__pick { width: 100%; padding: 8px 10px !important; border: 0 !important; border-radius: 8px !important; background: #e7e2ff !important; color: #46027a !important; font-family: inherit; font-size: 14px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: background .15s; }
/* Hover and the chosen package: the site's own button-hover purple, white text (stronger than the theme's rules) */
.easyoffer-instpage .easyoffer-instpage__item .easyoffer-instpage__pick:hover,
.easyoffer-instpage .easyoffer-instpage__item .easyoffer-instpage__pick:focus,
.easyoffer-instpage .easyoffer-instpage__item.is-picked .easyoffer-instpage__pick { background: #a540f2 !important; color: #fff !important; }
.easyoffer-instpage .easyoffer-instpage__item.is-picked .easyoffer-instpage__pick { box-shadow: 0 0 0 2px rgba(255, 255, 255, .55); }
/* «جزئیات» on the image, bottom right (the gallery badge is bottom left) */
.easyoffer-instpage .easyoffer-instpage__more, .easyoffer-instpage .easyoffer-instpage__more:hover, .easyoffer-instpage .easyoffer-instpage__more:focus, .easyoffer-instpage .easyoffer-instpage__more:active {
    position: absolute; right: 8px; left: auto !important; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px !important; width: auto !important; min-width: 0 !important; max-width: max-content; flex: none !important; border: 0 !important; border-radius: 8px !important;
    background: rgba(70, 2, 122, .78) !important; color: #fff !important; font-size: 11px; font-weight: 600; line-height: 1.8; text-decoration: none !important; cursor: pointer;
}
.easyoffer-instpage .easyoffer-instpage__more:hover { background: rgba(70, 2, 122, .92) !important; }
.easyoffer-instpage .easyoffer-instpage__more svg { width: 14px !important; height: 14px !important; fill: currentColor; }

/* Calculator */
.easyoffer-instpage__calc { position: sticky; top: 120px; border-radius: 14px; }
/* The theme's body{overflow-x:hidden} turns body into a scroll box and breaks position:sticky.
   «clip» hides sideways overflow the same way without that side effect (only on these pages). */
@media (min-width: 901px) { body:has(.easyoffer-instpage) { overflow-x: clip !important; overflow-y: visible !important; } }
.easyoffer-instcalc { padding: 14px 16px; background: #fff; border: 1px solid var(--easyoffer-primary-border, #e2defe); border-radius: 14px; box-shadow: 0 5px 18px rgba(70, 2, 122, .08); }
.easyoffer-instcalc__sheethead { display: none !important; } /* phones only (below) */
.easyoffer-instcalc__title { margin: 0 0 8px !important; font-size: 16px !important; font-weight: 800; color: var(--eo-ink); }
.easyoffer-instcalc__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 3px; margin-bottom: 8px; border-radius: 12px; background: var(--easyoffer-primary-soft, #f2f1ff); }
.easyoffer-instcalc__tabs button { padding: 6px !important; border: 0 !important; border-radius: 9px !important; background: transparent !important; color: var(--eo-muted) !important; font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.easyoffer-instcalc__tabs button.is-on { background: #fff !important; color: var(--eo-ink) !important; box-shadow: 0 2px 8px rgba(70, 2, 122, .12); }
.easyoffer-instcalc__picked { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; padding: 4px 12px; border-radius: 10px; background: var(--easyoffer-primary-soft, #f2f1ff); color: var(--eo-ink); font-size: 13px; }
.easyoffer-instcalc__picked[hidden], .easyoffer-instcalc [hidden] { display: none !important; }
.easyoffer-instcalc__unpick { border: 0 !important; background: none !important; color: var(--eo-muted) !important; font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px !important; }
.easyoffer-instcalc__label { display: block; font-size: 12px; font-weight: 700; color: #444; margin-bottom: 4px; }
.easyoffer-instcalc__amount { padding: 7px 12px !important; font-size: 19px !important; font-weight: 800; direction: ltr; text-align: right; color: var(--eo-ink) !important; }
.easyoffer-instcalc__hint { margin-top: 6px; font-size: 12px; color: #b42318; }
.easyoffer-instcalc__result { margin: 10px 0 8px; padding: 12px 14px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #46027a, var(--easyoffer-primary, #9689fb)); }
.easyoffer-instcalc__result small { font-size: 13px; opacity: .9; }
.easyoffer-instcalc__result > strong { display: block; font-size: 23px; font-weight: 800; line-height: 1.6; }
.easyoffer-instcalc__result.is-empty > strong { opacity: .6; }
.easyoffer-instcalc__rows { margin-top: 6px; border-top: 1px solid rgba(255, 255, 255, .25); padding-top: 6px; font-size: 13px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.easyoffer-instcalc__rows > div:first-child { display: flex; gap: 8px; }
.easyoffer-instcalc__result .easyoffer-instcalc__pays { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .3); color: #fff; }
.easyoffer-instcalc__empty { padding: 14px; border-radius: 12px; background: var(--easyoffer-primary-soft, #f2f1ff); color: var(--eo-muted); font-size: 14px; text-align: center; }
.easyoffer-instcalc__cashbox { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #46027a, var(--easyoffer-primary, #9689fb)); }
.easyoffer-instcalc__cashbox small { font-size: 13px; opacity: .9; }
.easyoffer-instcalc__cashbox del { font-size: 13px; opacity: .75; }
.easyoffer-instcalc__cashbox strong { font-size: 23px; font-weight: 800; line-height: 1.6; }
.easyoffer-instcalc__gift { margin-top: 6px; padding: 4px 10px; border-radius: 8px; background: rgba(255, 255, 255, .16); font-size: 13px; }

/* Phones: the calculator is a sheet at the bottom of the screen */
@media (max-width: 900px) {
    .easyoffer-instpage { padding-bottom: 140px; }
    .easyoffer-instpage__layout { grid-template-columns: minmax(0, 1fr); }
    .easyoffer-instpage__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .easyoffer-instpage__item { padding: 10px; }
    .easyoffer-instpage__item h3 { font-size: 14px !important; }
    .easyoffer-instpage__calc { position: fixed; z-index: 2147483100; right: 0; left: 0; bottom: 0; top: auto; max-height: none; overflow: visible; border-radius: 0; } /* flush with the bottom of the screen */
    /* Phones, this page only: the chat button (and its message bubble) sits above the calculator bar */
    body:has(.easyoffer-instpage) #easychat-root:not(.ec-open) { bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important; }
    /* Only one of the two at a time: the open chat hides the calculator, the open calculator hides the chat */
    body:has(#easychat-root.ec-open) .easyoffer-instpage__calc, body:has(#easychat-root.ec-open) .easyoffer-instpage__backdrop { display: none !important; }
    body:has(.easyoffer-instpage.is-sheet-open) #easychat-root { visibility: hidden !important; }
    .easyoffer-instcalc { padding: 0; border: 0; background: transparent; box-shadow: none; }
    .easyoffer-instcalc__sheethead { display: flex !important; align-items: center; justify-content: space-between; gap: 10px; width: 100% !important; box-sizing: border-box; margin: 0 !important; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)) !important; border: 0 !important; border-top: 0 !important; border-radius: 16px 16px 0 0 !important; background: #8b0bee !important; color: #fff !important; font-family: inherit; font-size: 14px; font-weight: 800; text-align: right; box-shadow: 0 -8px 24px rgba(70, 2, 122, .18); cursor: pointer; }
    .easyoffer-instcalc__sheethead [data-sheet-text] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .easyoffer-instcalc__chev { display: inline-block !important; width: 10px !important; height: 10px !important; border-right: 0 !important; border-bottom: 0 !important; border-left: 2px solid #fff; border-top: 2px solid #fff; transform: rotate(45deg); flex-shrink: 0; margin-top: 4px; transition: transform .2s; }
    .easyoffer-instcalc__body { display: none; }
    .easyoffer-instpage.is-sheet-open .easyoffer-instpage__calc { left: 0; right: 0; bottom: 0; }
    .easyoffer-instpage.is-sheet-open .easyoffer-instcalc { background: #fff; border-radius: 18px 18px 0 0; box-shadow: 0 -10px 30px rgba(0, 0, 0, .2); }
    .easyoffer-instpage.is-sheet-open .easyoffer-instcalc__sheethead { border-radius: 18px 18px 0 0 !important; box-shadow: none; padding-bottom: 12px !important; border-bottom: 1px solid #ece9ff !important; }
    .easyoffer-instpage.is-sheet-open .easyoffer-instcalc__chev { transform: rotate(225deg); margin-top: -4px; }
    .easyoffer-instpage.is-sheet-open .easyoffer-instcalc__body { display: block; max-height: calc(86vh - 50px); overflow-y: auto; padding: 14px 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
    .easyoffer-instpage.is-sheet-open .easyoffer-instcalc__title { display: none; }
    .easyoffer-instpage__backdrop { position: fixed; inset: 0; z-index: 2147483090; background: rgba(15, 12, 30, .45); }
    .easyoffer-instpage__backdrop[hidden] { display: none !important; }
    html.easyoffer-sheet-lock, html.easyoffer-sheet-lock body { overflow: hidden !important; }
}
@media (max-width: 480px) {
    .easyoffer-inst__monthly strong { font-size: 20px; }
    .easyoffer-instcalc__result > strong { font-size: 21px; }
    .easyoffer-steps { gap: 3px; }
    .easyoffer-steps__s { height: 32px; font-size: 12px; }
    .easyoffer-inst-promo { font-size: 13px; }
}

/* Compact calculator: package name on one line, short terms, name + mobile side by side */
.easyoffer-instcalc__picked > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.easyoffer-instcalc .easyoffer-steps__row { margin-top: 10px; }
.easyoffer-instcalc .easyoffer-steps__s { height: 30px; }
.easyoffer-instcalc .easyoffer-inst__terms { margin-top: 6px !important; font-size: 11px; gap: 2px 12px; }
.easyoffer-instcalc__form { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.easyoffer-instcalc__form input[type="text"], .easyoffer-instcalc__form input[type="tel"] { padding: 9px 10px !important; font-size: 14px; }
.easyoffer-instcalc__form .easyoffer-instcalc__submit, .easyoffer-instcalc__form .easyoffer-instcalc__notice { grid-column: 1 / -1; }
.easyoffer-instcalc__submit { padding: 10px 14px; }
.easyoffer-instcalc__title { display: none !important; } /* the purchase tabs already say what this is */
@media (min-width: 901px) and (max-height: 760px) { .easyoffer-instpage__calc { top: 96px; } }
/* Amount: the label sits inside the box, before the number («مبلغ با کسر ۱۹٪ تخفیف: ۲۰٬۴۰۰٬۰۰۰») */
.easyoffer-instcalc__amountbox { display: flex; align-items: center; gap: 8px; padding: 0; background: none; }
.easyoffer-instcalc__amountbox .easyoffer-instcalc__label { margin: 0; font-size: 13px; font-weight: 700; color: #46027a; white-space: nowrap; }
.easyoffer-instcalc__amountbox .easyoffer-instcalc__amount { flex: 1; min-width: 0; padding: 4px 0 !important; background: transparent !important; border: 0 !important; border-bottom: 1px dashed #c9c1f5 !important; border-radius: 0 !important; box-shadow: none !important; }
.easyoffer-instcalc__amountbox .easyoffer-instcalc__amount:focus { outline: none; border-bottom-color: var(--easyoffer-primary, #9689fb) !important; }
/* Month steps: caption and steps on one line (wraps under the caption only when too narrow) */
.easyoffer-steps__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 12px 0 4px; }
.easyoffer-steps__cap { font-size: 12px; font-weight: 700; color: var(--eo-ink, #46027a); white-space: nowrap; }
/* Hover/focus on a month that is not chosen: light purple, dark text (stronger than the theme's button hover) */
.easyoffer-steps .easyoffer-steps__s:not(.is-on):hover, .easyoffer-steps .easyoffer-steps__s:not(.is-on):focus { background: #e7e2ff !important; color: #46027a !important; border-color: var(--easyoffer-primary, #9689fb) !important; }
.easyoffer-steps .easyoffer-steps__s.is-on:hover, .easyoffer-steps .easyoffer-steps__s.is-on:focus { background: var(--easyoffer-primary, #9689fb) !important; color: #fff !important; }
@media (max-width: 480px) {
    /* Narrow images: portfolio badge shows only the camera and count, so it never overlaps «جزئیات» */
    .easyoffer-instpage .easyoffer-instpage__gal-t { display: none; }
    .easyoffer-instpage .easyoffer-instpage__gal, .easyoffer-instpage .easyoffer-instpage__more { left: 6px; bottom: 6px; padding: 1px 6px !important; font-size: 11px; }
    .easyoffer-instpage .easyoffer-instpage__more { left: auto !important; right: 6px; }
}
/* Phones: smaller figures on the two-column package cards of this page */
@media (max-width: 900px) {
    .easyoffer-instpage__price strong { font-size: 12px; }
    .easyoffer-instpage__price del { font-size: 10.5px; }
    .easyoffer-instpage__from { font-size: 11px; }
    .easyoffer-instpage__from strong { font-size: 10.5px; white-space: nowrap; letter-spacing: -.1px; }
    .easyoffer-instpage__cta { padding: 8px 6px; }
    .easyoffer-instpage__media .easyoffer-discount-badge { top: 6px; left: 6px; padding: 1px 7px; font-size: 11px; border-radius: 7px; }
}
/* While a portfolio or details popup is open, nothing floats over it */
body.easyoffer-gallery-lock .easyoffer-instpage__calc, body.easyoffer-gallery-lock #easychat-root { visibility: hidden !important; }
/* Phones zoom into any field with text under 16px: keep every EasyOffer field at 16px on touch screens */
@media (hover: none) and (pointer: coarse) {
    .easyoffer-instpage .easyoffer-instcalc__form input[type="text"], .easyoffer-instpage .easyoffer-instcalc__form input[type="tel"],
    .easyoffer-instpage .easyoffer-instcalc__amountbox .easyoffer-instcalc__amount,
    .easyoffer-box .easyoffer-inst__form input[type="text"], .easyoffer-box .easyoffer-inst__form input[type="tel"],
    .easyoffer-box .easyoffer-request-form input, .easyoffer-box .easyoffer-request-form select, .easyoffer-box .easyoffer-request-form textarea { font-size: 16px !important; }
}

/* ======================================================================
 * In-post package card ([easyoffer]): image with 4 corner labels; title, price, gift and the
 * purple installment box (both buy buttons) beside it.
 * ==================================================================== */
.easyoffer-box > .easyoffer-media { flex-shrink: 0; align-self: flex-start !important; width: 236px; margin: 10px 0; display: flex; flex-direction: column; gap: 8px; }
.easyoffer-media__img { position: relative; line-height: 0; }
.easyoffer-media__img > img { width: 100% !important; max-width: none !important; margin: 0 !important; border-radius: 10px !important; border: 0 !important; box-shadow: 0 0 0 2px #d9dcfd !important; cursor: zoom-in; }
.easyoffer-grid-count-2 .easyoffer-box > .easyoffer-media, .easyoffer-grid-count-3 .easyoffer-box > .easyoffer-media, .easyoffer-grid-count-4 .easyoffer-box > .easyoffer-media { width: 100%; }

/* Corner labels: discount top-left, category top-right, portfolio bottom-left, details bottom-right */
.easyoffer-box .easyoffer-media__off, .easyoffer-box .easyoffer-media__cats,
.easyoffer-box .easyoffer-media__gal, .easyoffer-box .easyoffer-media__more,
.easyoffer-box .easyoffer-media__gal:hover, .easyoffer-box .easyoffer-media__more:hover,
.easyoffer-box .easyoffer-media__gal:focus, .easyoffer-box .easyoffer-media__more:focus {
    position: absolute; display: inline-flex; align-items: center; gap: 4px; width: auto !important; min-width: 0 !important; flex: none !important; margin: 0 !important;
    padding: 2px 8px !important; border: 0 !important; border-radius: 8px !important; font-size: 11px; font-weight: 600; line-height: 1.8; text-decoration: none !important;
}
.easyoffer-box .easyoffer-media__off { top: 8px; left: 8px; background: var(--easyoffer-primary, #9689fb) !important; color: #fff !important; font-weight: 800; }
.easyoffer-box .easyoffer-media__cats { top: 8px; right: 8px; gap: 4px; padding: 0 !important; background: none !important; }
.easyoffer-box .easyoffer-media__cats > span { padding: 1px 8px; border-radius: 8px; background: rgba(255, 255, 255, .92); color: var(--easyoffer-primary-hover, #8074d5); border: 1px solid #e2defe; font-size: 11px; font-weight: 600; line-height: 1.8; }
.easyoffer-box .easyoffer-media__gal, .easyoffer-box .easyoffer-media__more { bottom: 8px; background: rgba(70, 2, 122, .8) !important; color: #fff !important; cursor: pointer; }
.easyoffer-box .easyoffer-media__gal { left: 8px; right: auto !important; }
.easyoffer-box .easyoffer-media__more { right: 8px; left: auto !important; }
.easyoffer-box .easyoffer-media__gal:hover, .easyoffer-box .easyoffer-media__more:hover { background: rgba(70, 2, 122, .95) !important; }
.easyoffer-box .easyoffer-media__gal svg, .easyoffer-box .easyoffer-media__more svg { width: 14px !important; height: 14px !important; fill: currentColor; margin: 0 !important; }

/* Gift under the discounted price, in the theme's purple */
.easyoffer-box .easyoffer-content .easyoffer-discount-tip { display: flex; align-items: center; gap: 6px; margin: 10px 0 12px !important; text-align: right; padding: 6px 10px; border-radius: 8px; background: #e7e2ff !important; color: #46027a !important; font-size: 12.5px; font-weight: 600; line-height: 1.7; }
.easyoffer-box .easyoffer-discount-tip .easyoffer-discount-tip__icon { font-size: 15px; line-height: 1; }
.easyoffer-box .easyoffer-discount-tip .easyoffer-discount-tip__text { color: #46027a !important; }

/* Purple installment box + «خرید نقدی» beside it, same height */
.easyoffer-buyrow { margin-top: 12px; }
.easyoffer-inst-cta { padding: 12px; border-radius: 12px; background: linear-gradient(135deg, #46027a, var(--easyoffer-primary, #9689fb)); color: #fff; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.easyoffer-inst-cta__t { display: flex; flex-direction: column; align-items: center; text-align: center; font-size: 13px; line-height: 1.8; }
.easyoffer-inst-cta__t span { opacity: .9; }
.easyoffer-inst-cta__t strong { font-size: 16px; font-weight: 800; color: #fff; }
.easyoffer-box .easyoffer-inst-cta .easyoffer-inst-toggle { width: 100%; margin: 0 !important; padding: 9px 10px !important; border: 0 !important; border-radius: 8px !important; background: #e7e2ff !important; color: #46027a !important; font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.easyoffer-inst-cta__acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.easyoffer-box .easyoffer-inst-cta .easyoffer-cash-toggle { width: 100%; margin: 0 !important; padding: 9px 10px !important; border: 1px solid rgba(255, 255, 255, .75) !important; border-radius: 8px !important; background: transparent !important; color: #fff !important; font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.easyoffer-box .easyoffer-inst-cta .easyoffer-inst-toggle:hover, .easyoffer-box .easyoffer-inst-cta .easyoffer-inst-toggle.is-active,
.easyoffer-box .easyoffer-inst-cta .easyoffer-cash-toggle:hover { background: #a540f2 !important; border-color: #a540f2 !important; color: #fff !important; }

@media (max-width: 768px) {
    .easyoffer-box > .easyoffer-media { width: 100%; max-width: none; }
}

/* Desktop: the image fills the full height of the text column (title on top, purple box at the bottom). */
@media (min-width: 769px) {
    .easyoffer-box:has(> .easyoffer-media) { align-items: stretch !important; }
    .easyoffer-box > .easyoffer-media { align-self: stretch !important; margin: 0 !important; width: min(320px, 46%); }
    .easyoffer-box > .easyoffer-media > .easyoffer-media__img { flex: 1 1 auto; min-height: 200px; }
    .easyoffer-box > .easyoffer-media > .easyoffer-media__img > img { position: absolute; inset: 0; height: 100% !important; object-fit: cover; }
    .easyoffer-grid-count-2 .easyoffer-box > .easyoffer-media, .easyoffer-grid-count-3 .easyoffer-box > .easyoffer-media, .easyoffer-grid-count-4 .easyoffer-box > .easyoffer-media { width: 100%; }
    .easyoffer-grid-count-2 .easyoffer-box > .easyoffer-media > .easyoffer-media__img > img, .easyoffer-grid-count-3 .easyoffer-box > .easyoffer-media > .easyoffer-media__img > img, .easyoffer-grid-count-4 .easyoffer-box > .easyoffer-media > .easyoffer-media__img > img { position: static; height: auto !important; }
    /* When the installment panel or the cash form opens, the image keeps its own size instead of growing with the text. */
    .easyoffer-box:has(> .easyoffer-content > .easyoffer-inst:not([hidden]), > .easyoffer-content > .easyoffer-request-form.is-visible, > .easyoffer-content > .easyoffer-request-notice:not(:empty)) > .easyoffer-media { align-self: flex-start !important; }
    .easyoffer-box:has(> .easyoffer-content > .easyoffer-inst:not([hidden]), > .easyoffer-content > .easyoffer-request-form.is-visible, > .easyoffer-content > .easyoffer-request-notice:not(:empty)) > .easyoffer-media > .easyoffer-media__img { flex: none; min-height: 0; }
    .easyoffer-box:has(> .easyoffer-content > .easyoffer-inst:not([hidden]), > .easyoffer-content > .easyoffer-request-form.is-visible, > .easyoffer-content > .easyoffer-request-notice:not(:empty)) > .easyoffer-media > .easyoffer-media__img > img { position: static; height: auto !important; }
    .easyoffer-box:has(> .easyoffer-content > .easyoffer-inst:not([hidden]), > .easyoffer-content > .easyoffer-request-form.is-visible, > .easyoffer-content > .easyoffer-request-notice:not(:empty)) > .easyoffer-content > .easyoffer-buyrow { margin-top: 0; }
    .easyoffer-grid-count-2 .easyoffer-box > .easyoffer-media > .easyoffer-media__img, .easyoffer-grid-count-3 .easyoffer-box > .easyoffer-media > .easyoffer-media__img, .easyoffer-grid-count-4 .easyoffer-box > .easyoffer-media > .easyoffer-media__img { flex: none; min-height: 0; }
    .easyoffer-box:has(> .easyoffer-media) > .easyoffer-content { display: flex; flex-direction: column; }
    .easyoffer-box:has(> .easyoffer-media) > .easyoffer-content > .easyoffer-buyrow,
    .easyoffer-box:has(> .easyoffer-media) > .easyoffer-content > .easyoffer-btn { margin-top: auto; }
    .easyoffer-box:has(> .easyoffer-media) > .easyoffer-content > h3 { margin-top: 0 !important; }
}
