.ymh-whatsapp-modal-open {
    overflow: hidden;
}

.ymh-whatsapp-float {
    position: fixed;
    right: 14px;
    bottom: 85px;
    z-index: 1100;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    width: 62px;
    height: 62px;
    padding: 0;
    background: linear-gradient(135deg, #12a74a 0%, #25d366 100%);
    color: #fff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: visible;
}

.ymh-whatsapp-float:hover,
.ymh-whatsapp-float:focus {
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.28);
    outline: none;
}

.ymh-whatsapp-float__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
}

.ymh-whatsapp-float__icon svg {
    display: block;
    width: 30px;
    height: 30px;
}

.ymh-whatsapp-float__tooltip {
    position: absolute;
    right: 76px;
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    min-width: 232px;
    padding: 12px 16px;
    border-radius: 16px;
    background: #13253f;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    white-space: nowrap;
}

.ymh-whatsapp-float__tooltip::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -8px;
    width: 16px;
    height: 16px;
    background: #13253f;
    transform: translateY(-50%) rotate(45deg);
}

.ymh-whatsapp-float:hover .ymh-whatsapp-float__tooltip,
.ymh-whatsapp-float:focus .ymh-whatsapp-float__tooltip,
.ymh-whatsapp-float:focus-visible .ymh-whatsapp-float__tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.ymh-whatsapp-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.ymh-whatsapp-modal.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ymh-whatsapp-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.ymh-whatsapp-modal__dialog {
    position: relative;
    z-index: 1;
    width: calc(100% - 32px);
    max-width: 760px;
    max-height: calc(100vh - 48px);
    margin: 30px auto;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.ymh-whatsapp-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #333;
    font-size: 30px;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.ymh-whatsapp-modal__close:hover,
.ymh-whatsapp-modal__close:focus {
    opacity: 1;
    outline: none;
}

.ymh-whatsapp-modal__header {
    padding: 18px 20px 14px;
    border-top: 4px solid #e0040b;
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
    color: #333;
}

.ymh-whatsapp-modal__eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e0040b;
}

.ymh-whatsapp-modal__title {
    margin: 0 34px 6px 0;
    font-family: "Montserrat", sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.ymh-whatsapp-modal__lead {
    max-width: 560px;
    margin: 0;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

.ymh-whatsapp-modal__body {
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    padding: 15px 20px 20px;
    background: #fff;
}

.ymh-whatsapp-modal__status {
    display: none;
    margin-bottom: 15px;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 600;
}

.ymh-whatsapp-modal__status.is-loading {
    display: block;
    background: #f7f7f7;
    color: #555;
}

.ymh-whatsapp-modal__status.is-error {
    display: block;
    border-color: #f1b3b5;
    background: #fff6f6;
    color: #a30006;
}

.ymh-whatsapp-modal__status.is-empty {
    display: block;
    background: #f7f7f7;
    color: #555;
}

.ymh-whatsapp-modal__step {
    display: none;
}

.ymh-whatsapp-modal__step.is-active {
    display: block;
}

.ymh-whatsapp-modal__form {
    margin: 0;
}

.ymh-whatsapp-modal__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ymh-whatsapp-modal__field {
    min-width: 0;
}

.ymh-whatsapp-modal__field--full {
    grid-column: 1 / -1;
}

.ymh-whatsapp-modal__label {
    display: block;
    margin: 0 0 6px;
    color: #333;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.ymh-whatsapp-modal__input,
.ymh-whatsapp-modal__select {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ymh-whatsapp-modal__input:focus,
.ymh-whatsapp-modal__select:focus {
    border-color: #e0040b;
    box-shadow: 0 0 0 3px rgba(224, 4, 11, 0.12);
    outline: none;
}

.ymh-whatsapp-modal__select:disabled {
    background: #f7f7f7;
    color: #888;
    cursor: not-allowed;
}

.ymh-whatsapp-modal__actions,
.ymh-whatsapp-modal__list-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.ymh-whatsapp-modal__primary,
.ymh-whatsapp-modal__secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 4px;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ymh-whatsapp-modal__primary {
    border: 1px solid #c7040a;
    background: #e0040b;
    color: #fff;
}

.ymh-whatsapp-modal__primary:hover,
.ymh-whatsapp-modal__primary:focus {
    background: #b20309;
    border-color: #8d0207;
    color: #fff;
    outline: none;
}

.ymh-whatsapp-modal__primary[disabled] {
    opacity: 0.65;
    cursor: not-allowed;
}

.ymh-whatsapp-modal__secondary {
    border: 1px solid #d4d4d4;
    background: #fff;
    color: #555;
}

.ymh-whatsapp-modal__secondary:hover,
.ymh-whatsapp-modal__secondary:focus {
    border-color: #b9b9b9;
    color: #333;
    outline: none;
}

.ymh-whatsapp-modal__summary {
    display: none;
    margin-bottom: 14px;
    padding: 14px 16px;
    border-radius: 4px;
    background: #f7f7f7;
    color: #555;
    font-size: 13px;
    line-height: 1.6;
}

.ymh-whatsapp-modal__summary strong {
    color: #222;
}

.ymh-whatsapp-modal__province + .ymh-whatsapp-modal__province {
    margin-top: 10px;
}

.ymh-whatsapp-modal__province {
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

.ymh-whatsapp-modal__province-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 0;
    background: #f7f7f7;
    color: #333;
    text-align: left;
    transition: background-color 0.2s ease;
}

.ymh-whatsapp-modal__province-button:hover,
.ymh-whatsapp-modal__province-button:focus {
    background: #efefef;
    outline: none;
}

.ymh-whatsapp-modal__province-name {
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
}

.ymh-whatsapp-modal__province-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.ymh-whatsapp-modal__province-count {
    min-width: 26px;
    padding: 0;
    background: transparent;
    color: #e0040b;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.ymh-whatsapp-modal__province-arrow {
    color: #777;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.ymh-whatsapp-modal__province.is-open .ymh-whatsapp-modal__province-arrow {
    transform: translateY(-1px);
}

.ymh-whatsapp-modal__province-panel {
    display: none;
    padding: 0 16px 6px;
    background: #fff;
}

.ymh-whatsapp-modal__dealer + .ymh-whatsapp-modal__dealer {
    margin-top: 0;
    border-top: 1px solid #ececec;
}

.ymh-whatsapp-modal__dealer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
    background: transparent;
}

.ymh-whatsapp-modal__dealer-name {
    margin: 0 0 4px;
    color: #333;
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 700;
}

.ymh-whatsapp-modal__dealer-address,
.ymh-whatsapp-modal__dealer-phone {
    margin: 0;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

.ymh-whatsapp-modal__dealer-phone {
    margin-top: 4px;
    color: #333;
    font-weight: 700;
}

.ymh-whatsapp-modal__dealer-link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 142px;
    padding: 10px 14px;
    border: 1px solid #c7040a;
    border-radius: 3px;
    background: #e0040b;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
}

.ymh-whatsapp-modal__dealer-link:hover,
.ymh-whatsapp-modal__dealer-link:focus {
    color: #fff;
    text-decoration: none;
    background: #ae0309;
    border-color: #8b0207;
    outline: none;
}

body.ymh-whatsapp-external-open #alert-link-externo {
    z-index: 1310;
}

body.ymh-whatsapp-external-open .modal-backdrop {
    z-index: 1300;
}

@media (max-width: 767px) {
    .ymh-whatsapp-float {
        right: 14px;
        bottom: 85px;
        width: 58px;
        height: 58px;
    }

    .ymh-whatsapp-float__tooltip {
        right: 70px;
        min-width: 0;
        max-width: calc(100vw - 110px);
        white-space: normal;
    }

    .ymh-whatsapp-modal__dialog {
        width: calc(100% - 20px);
        max-height: calc(100vh - 20px);
        margin: 10px auto;
        border-radius: 6px;
    }

    .ymh-whatsapp-modal__header {
        padding: 16px 16px 12px;
    }

    .ymh-whatsapp-modal__title {
        font-size: 20px;
    }

    .ymh-whatsapp-modal__body {
        max-height: calc(100vh - 150px);
        padding: 12px 16px 16px;
    }

    .ymh-whatsapp-modal__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .ymh-whatsapp-modal__actions,
    .ymh-whatsapp-modal__list-actions {
        margin-top: 16px;
    }

    .ymh-whatsapp-modal__primary,
    .ymh-whatsapp-modal__secondary {
        width: 100%;
    }

    .ymh-whatsapp-modal__province-button,
    .ymh-whatsapp-modal__province-panel {
        padding-left: 16px;
        padding-right: 16px;
    }

    .ymh-whatsapp-modal__dealer {
        flex-direction: column;
        align-items: flex-start;
    }

    .ymh-whatsapp-modal__dealer-link {
        width: 100%;
    }
}
