/*
 * BOTÃO MERCADO LIVRE
 * Visual isolado do tema WooCommerce.
 */
.mlpl-public-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
}

.mlpl-availability-label {
    margin: 0 0 8px 0;
    padding: 0;
    color: #222222;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
}

.mlpl-public-wrapper .mlpl-button {
    width: 100%;
    min-height: 45px;
    margin: 0;
    padding: 7px 18px;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;

    appearance: none;
    -webkit-appearance: none;

    background: #ffffff !important;
    border: 1px solid #d7dce2 !important;
    border-radius: 8px !important;
    box-shadow: none !important;

    color: #003b85 !important;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
    text-transform: none !important;
    letter-spacing: normal !important;
    text-decoration: none !important;

    cursor: pointer;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.mlpl-public-wrapper .mlpl-button:hover,
.mlpl-public-wrapper .mlpl-button:focus {
    background: #ffffff !important;
    border-color: #bfc7d1 !important;
    color: #003b85 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06) !important;
    outline: none;
}

.mlpl-public-wrapper .mlpl-button:focus-visible {
    outline: 2px solid rgba(52, 131, 250, 0.35);
    outline-offset: 2px;
}

.mlpl-button-logo {
    display: block;
    width: 39px;
    height: 27px;
    object-fit: contain;
    flex: 0 0 39px;
    margin: 0;
    padding: 0;
}

.mlpl-button-logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 27px;
    flex: 0 0 39px;
    margin: 0;
    padding: 0;
    border: 1px solid #d7dce2;
    border-radius: 999px;
    background: #ffe600;
    color: #003b85;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.mlpl-button-text {
    display: inline-block;
    color: #003b85;
    white-space: nowrap;
}

.mlpl-button-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #003b85;
    font-size: 17px;
    font-weight: 500;
    line-height: 1;
    transform: translateY(-1px);
    margin-left: -4px;
}

.mlpl-modal[hidden] {
    display: none !important;
}

.mlpl-modal-state[hidden] {
    display: none !important;
}


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


.mlpl-modal-backdrop {
    position: absolute;
    inset: 0;
    background:
        rgba(0, 0, 0, 0.55);
}


.mlpl-modal-dialog {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 445px;

    background: #ffffff;

    border-radius: 12px;

    box-shadow:
        0 20px 60px
        rgba(0, 0, 0, 0.25);

    overflow: hidden;
}


.mlpl-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 18px 22px;

    border-bottom:
        1px solid #eeeeee;
}


.mlpl-modal-brand {
    display: flex;
    align-items: center;
    gap: 9px;

    font-size: 18px;
    color: #111111;
}


.mlpl-modal-logo {
    font-size: 22px;
    line-height: 1;
}


.mlpl-modal-close {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid #f2994a;

    border-radius: 8px;

    background: #ffffff;

    color: #555555;

    font-size: 23px;
    line-height: 1;

    cursor: pointer;
}


.mlpl-modal-close:hover {
    background: #fff8f1;
}


.mlpl-modal-body {
    padding: 24px;
}


/*
 * LOADING
 */

.mlpl-state-loading {
    min-height: 170px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}


.mlpl-state-loading p {
    margin:
        18px 0 0;

    color: #345078;
}


.mlpl-spinner {
    width: 30px;
    height: 30px;

    border:
        3px solid #dce8fb;

    border-top-color:
        #3483fa;

    border-radius: 50%;

    animation:
        mlpl-spin
        0.8s linear
        infinite;
}


@keyframes mlpl-spin {

    to {
        transform:
            rotate(360deg);
    }

}


/*
 * SUCESSO
 */

.mlpl-success-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    padding: 12px 14px;

    background: #ecfff3;

    border-radius: 8px;

    color: #047a38;

    line-height: 1.45;
}


.mlpl-status-icon {
    flex:
        0 0 auto;

    width: 20px;
    height: 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border:
        2px solid currentColor;

    border-radius: 50%;

    font-size: 12px;
    font-weight: 700;
}


.mlpl-success-box .mlpl-status-icon {
    color: #047a38;
    border: 0;
}

.mlpl-success-box .mlpl-verified-icon {
    display: block;
    width: 20px;
    height: 20px;
    color: #047a38;
    stroke: currentColor;
    fill: none;
}

.mlpl-listing-title {
    margin:
        20px 0;

    color: #222222;

    font-size: 14px;
    line-height: 1.5;
}


.mlpl-modal .mlpl-redirect-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 0;
    color: var(--jardim-brand-blue, #00386d);
    font-size: 14px;
    line-height: 1.5;
}

.mlpl-modal .mlpl-redirect-spinner {
    display: block;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    box-sizing: border-box;
    border-width: 2px;
}

.mlpl-modal .mlpl-fallback-link {
    display: inline-block;
    padding: 6px 0;
    background: transparent;
    color: var(--jardim-brand-blue, #00386d);
    font-size: 14px;
    line-height: 1.5;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.mlpl-modal .mlpl-fallback-link:focus-visible {
    outline: 2px solid var(--jardim-brand-blue, #00386d);
    outline-offset: 3px;
}

.mlpl-modal .mlpl-fallback-link[hidden],
.mlpl-modal .mlpl-redirect-spinner[hidden] {
    display: none !important;
}

/*
 * ERRO / INDISPONÍVEL
 */

.mlpl-error-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    padding: 14px;

    background:
        #fff7e8;

    border-radius:
        8px;

    color:
        #8a5a00;

    line-height:
        1.45;
}


.mlpl-error-title {
    margin:
        18px 0 0;

    color:
        #333333;

    line-height:
        1.5;
}


.mlpl-error-actions {
    margin-top:
        20px;

    text-align:
        center;
}

html.mlpl-modal-open {
    overflow: hidden;
}


/*
 * MOBILE
 */

@media
(max-width: 480px) {

    .mlpl-modal {
        padding: 12px;
    }


    .mlpl-modal-dialog {
        max-width:
            100%;
    }


    .mlpl-modal-header {
        padding:
            15px 17px;
    }


    .mlpl-modal-body {
        padding:
            18px;
    }



}
.mlpl-modal-dialog { max-height: calc(100dvh - 32px); overflow-y: auto; }
@media (prefers-reduced-motion: reduce) { .mlpl-spinner { animation: none; } }

/* Match the site's blue actions and rounded controls, scoped to this dialog. */
.mlpl-modal .mlpl-modal-logo { display: inline-flex; align-items: center; color: var(--jardim-brand-blue, #00386d); }
.mlpl-modal .mlpl-modal-brand-image { display: block; flex: 0 0 39px; width: 39px; height: 27px; object-fit: contain; }
.mlpl-modal .mlpl-error-actions .mlpl-retry-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid var(--jardim-brand-blue, #00386d);
    border-radius: 8px;
    background: var(--jardim-brand-blue, #00386d);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: normal;
    box-shadow: none;
    cursor: pointer;
}
.mlpl-modal .mlpl-error-actions .mlpl-retry-button:hover { background: #002b54; border-color: #002b54; color: #fff; }
.mlpl-modal .mlpl-error-actions .mlpl-retry-button:focus-visible { outline: 2px solid var(--jardim-brand-blue, #00386d); outline-offset: 3px; }
.mlpl-modal .mlpl-retry-button svg { display: block; flex: 0 0 18px; width: 18px; height: 18px; }
