﻿/* Solo los contenedores de Mercado Pago marcados; no alcanza otros campos. */
#mp-card-payment-brick.mp-editorial-checkout form {
    display: block !important;
    width: 100%;
    min-width: 0;
    text-align: left;
}

#mp-card-payment-brick.mp-editorial-checkout input:not([type="hidden"]),
#mp-card-payment-brick.mp-editorial-checkout select {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100%;
    min-width: 0 !important;
    min-height: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 10px 14px !important;
    font-size: 16px !important;
    line-height: 22px !important;
    color: #172114 !important;
    -webkit-text-fill-color: #172114 !important;
    background-color: #e8e2d2 !important;
    border: 1px solid #9f926d !important;
    border-radius: 2px !important;
    text-align: left !important;
}

#mp-card-payment-brick.mp-editorial-checkout input::placeholder {
    color: #756f63 !important;
    -webkit-text-fill-color: #756f63 !important;
    opacity: 1 !important;
    font: inherit !important;
}

#mp-card-payment-brick.mp-editorial-checkout .mp-pay-action {
    background: var(--mp-pay-background, #e8dcc2) !important;
    border: 1px solid var(--mp-pay-background, #e8dcc2) !important;
    color: #22301b !important;
}

#mp-card-payment-brick.mp-editorial-checkout .mp-pay-action:hover,
#mp-card-payment-brick.mp-editorial-checkout .mp-pay-action:focus-visible {
    --mp-pay-background: #f3ecdf;
}

#mp-card-payment-brick.mp-editorial-checkout select {
    appearance: auto !important;
    -webkit-appearance: auto !important;
    background-image: none !important;
    padding-right: 10px !important;
}

#mp-card-payment-brick.mp-editorial-checkout [data-testid="dropdown"] {
    min-width: 84px;
    flex-shrink: 0;
    position: relative;
}

#mp-card-payment-brick.mp-editorial-checkout [data-testid="dropdown"] > svg {
    display: none !important; /* El select conserva su flecha nativa. */
}

#mp-card-payment-brick.mp-editorial-checkout [class*="input-container"]:has(select) {
    display: flex !important;
    align-items: stretch !important;
    width: 100%;
    height: auto !important;
    overflow: visible !important;
}

#mp-card-payment-brick.mp-editorial-checkout [class*="input-container"]:has(select) input {
    flex: 1 1 0%;
    width: 0 !important;
}

#mp-card-payment-brick.mp-editorial-checkout label {
    width: auto !important;
    text-align: left !important;
}

#mp-card-payment-brick.mp-editorial-checkout [class*="fade-wrapper"],
#mp-card-payment-brick.mp-editorial-checkout div:has(> input[type="email"]),
#mp-card-payment-brick.mp-editorial-checkout div:has(> input[name="EMAIL"]) {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    text-align: left !important;
}

#mp-card-payment-brick.mp-editorial-checkout input[type="email"],
#mp-card-payment-brick.mp-editorial-checkout input[name="EMAIL"] {
    display: block !important;
    flex: none !important;
}

#mp-card-payment-brick.mp-editorial-checkout [class*="button-container"] {
    width: 100% !important;
    height: auto !important;
    margin-top: 20px !important;
    overflow: visible !important;
}

#mp-card-payment-brick.mp-editorial-checkout button[type="submit"],
#mp-card-payment-brick.mp-editorial-checkout [class*="button-container"] button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 48px !important;
    height: auto !important;
    padding: 12px 18px !important;
    background: #e8dcc2 !important;
    border: 1px solid #e8dcc2 !important;
    color: #22301b !important;
    -webkit-text-fill-color: #22301b !important;
    line-height: 1.4 !important;
}

#mp-card-payment-brick.mp-editorial-checkout button[type="submit"] *,
#mp-card-payment-brick.mp-editorial-checkout [class*="button-container"] button * {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
}

#mp-card-payment-brick.mp-editorial-checkout button:disabled {
    opacity: .65 !important;
    cursor: not-allowed;
}

#mp-card-payment-brick.mp-editorial-checkout input:focus-visible,
#mp-card-payment-brick.mp-editorial-checkout select:focus-visible,
#mp-card-payment-brick.mp-editorial-checkout button:focus-visible {
    outline: 2px solid #c5b58e !important;
    outline-offset: 2px;
}


