.mzsc-estimator-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    width: 100%;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fff5f5;
    color: #df1f2d;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    letter-spacing: 0 !important;
    text-transform: none !important;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.mzsc-estimator-trigger:hover,
.mzsc-estimator-trigger:focus {
    background: #ffe7e9;
    border-color: #fb7185;
    color: #be123c;
}

.mzsc-estimator-trigger__mark {
    position: relative;
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-radius: 50%;
    flex: 0 0 18px;
}

.mzsc-estimator-trigger__mark::before,
.mzsc-estimator-trigger__mark::after {
    position: absolute;
    content: "";
    left: 50%;
    top: 50%;
    background: currentColor;
    transform: translate(-50%, -50%);
}

.mzsc-estimator-trigger__mark::before {
    width: 8px;
    height: 2px;
}

.mzsc-estimator-trigger__mark::after {
    width: 2px;
    height: 8px;
}

.cart_totals tr.mzsc-estimator-row {
    border-bottom: 1px solid #ececec;
}

.cart_totals tr.mzsc-estimator-row th {
    padding: 16px 0;
}

.mzsc-estimator-mini {
    width: 100%;
    margin: 0 0 10px;
}

.btn-mini-cart .mzsc-estimator-trigger {
    min-height: 36px;
    border-color: #fee2e2;
    background: #fffafa;
    color: #d92828;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.1;
    padding: 0 12px;
    box-shadow: none;
}

.btn-mini-cart .mzsc-estimator-trigger:hover,
.btn-mini-cart .mzsc-estimator-trigger:focus {
    border-color: #fecaca;
    background: #fff1f2;
    color: #b91c1c;
}

.btn-mini-cart .mzsc-estimator-trigger__mark {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
}

#cart-sidebar .btn-mini-cart .mzsc-estimator-mini,
.ns-cart-popup-wrap .btn-mini-cart .mzsc-estimator-mini,
.ns-cart-popup-v2 .btn-mini-cart .mzsc-estimator-mini {
    order: 1;
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
}

.mzsc-estimator-modal[hidden] {
    display: none;
}

.mzsc-estimator-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.mzsc-estimator-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 24, 40, 0.52);
}

.mzsc-estimator-dialog {
    position: relative;
    width: min(100%, 520px);
    max-height: calc(100vh - 36px);
    overflow: visible;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #1f2937;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.22);
    padding: 28px;
}

.mzsc-estimator-dialog__close {
    position: absolute;
    right: 14px;
    top: 12px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.mzsc-estimator-dialog__close:hover,
.mzsc-estimator-dialog__close:focus {
    background: #e5e7eb;
    color: #111827;
}

.mzsc-estimator-dialog__eyebrow {
    margin: 0 0 6px;
    color: #df1f2d;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.mzsc-estimator-dialog h2 {
    margin: 0 34px 20px 0;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: 0;
}

.mzsc-estimator-form {
    display: grid;
    gap: 12px;
}

.mzsc-estimator-form label {
    margin: 0;
    color: #374151;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
}

.mzsc-estimator-combobox {
    position: relative;
}

.mzsc-estimator-country {
    width: 100%;
    height: 46px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    font-size: 15px;
    font-weight: 700;
    padding: 0 14px;
    box-shadow: none;
}

.mzsc-estimator-country:focus {
    border-color: #fb7185;
    outline: 2px solid rgba(251, 113, 133, 0.18);
    outline-offset: 0;
}

.mzsc-estimator-country-list {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    max-height: 260px;
    overflow: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
    padding: 6px;
}

.mzsc-estimator-country-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #1f2937;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    padding: 10px 12px;
    text-align: left;
}

.mzsc-estimator-country-option small {
    color: #6b7280;
    font-size: 12px;
    font-weight: 900;
}

.mzsc-estimator-country-option:hover,
.mzsc-estimator-country-option.is-active {
    background: #fff1f2;
    color: #be123c;
}

.mzsc-estimator-country-list__empty {
    color: #6b7280;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 12px;
}

.mzsc-estimator-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 0;
    border-radius: 8px;
    background: #ff2f3f;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
    padding: 0 18px;
    box-shadow: 0 12px 26px rgba(255, 47, 63, 0.24);
}

.mzsc-estimator-submit:hover,
.mzsc-estimator-submit:focus {
    background: #e92736;
    color: #fff;
}

.mzsc-estimator-submit:disabled {
    cursor: wait;
    opacity: 0.72;
}

.mzsc-estimator-result {
    margin-top: 16px;
}

.mzsc-estimator-result:empty {
    display: none;
}

.mzsc-estimator-result__card,
.mzsc-estimator-error,
.mzsc-estimator-loading {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    padding: 16px;
}

.mzsc-estimator-result__label,
.mzsc-estimator-result__service,
.mzsc-estimator-result__note {
    margin: 0;
}

.mzsc-estimator-result__label {
    color: #4b5563;
    font-size: 14px;
    font-weight: 800;
}

.mzsc-estimator-result__price {
    display: block;
    margin-top: 6px;
    color: #111827;
    font-size: 30px;
    font-weight: 900;
    line-height: 1.1;
}

.mzsc-estimator-result__service {
    margin-top: 4px;
    color: #374151;
    font-size: 13px;
    font-weight: 800;
}

.mzsc-estimator-result__note {
    margin-top: 10px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.4;
}

.mzsc-estimator-error {
    border-color: #fecaca;
    background: #fff1f2;
    color: #be123c;
    font-size: 14px;
    font-weight: 800;
}

.mzsc-estimator-loading {
    color: #4b5563;
    font-size: 14px;
    font-weight: 800;
}

body.mzsc-estimator-is-open {
    overflow: hidden;
}

@media (max-width: 520px) {
    .mzsc-estimator-modal {
        align-items: flex-end;
        padding: 10px;
    }

    .mzsc-estimator-dialog {
        width: 100%;
        max-height: calc(100vh - 20px);
        padding: 24px 18px 18px;
    }

    .mzsc-estimator-dialog h2 {
        font-size: 23px;
    }

    .mzsc-estimator-submit {
        width: 100%;
    }
}
