.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: center;
    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--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: 110px;
    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-price {
    margin: 8px 0 15px;
    font-size: 17px;
    color: #555;
}

.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 {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--easyoffer-primary-border, #f1caca);
    border-radius: 6px;
    box-sizing: border-box;
    background: #fff;
}

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

.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: 180px;
    }

    .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;
}
