.mc-agroesa-contact {
    --mc-agro-primary: #39ad32;
    --mc-agro-secondary: #173b4d;
    --mc-agro-accent: #f7941d;
    clear: both;
}

.single-product .summary .mc-agroesa-contact {
    width: 100%;
    margin-top: 24px;
}

.mc-agroesa-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    width: 100%;
    margin: 0 auto 10px;
}

.mc-agroesa-button,
.woocommerce .mc-agroesa-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 220px;
    min-height: 50px;
    margin: 0;
    padding: 13px 24px;
    border: 2px solid transparent;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(23, 59, 77, .12);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}

.mc-agroesa-button svg {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    fill: currentColor;
}

.mc-agroesa-button--info,
.woocommerce .mc-agroesa-button--info {
    background: var(--mc-agro-primary);
    border-color: var(--mc-agro-primary);
    color: #fff;
}

.mc-agroesa-button--whatsapp,
.woocommerce .mc-agroesa-button--whatsapp {
    background: var(--mc-agro-secondary);
    border-color: var(--mc-agro-secondary);
    color: #fff;
}

.mc-agroesa-button:hover,
.mc-agroesa-button:focus-visible,
.woocommerce .mc-agroesa-button:hover,
.woocommerce .mc-agroesa-button:focus-visible {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(23, 59, 77, .2);
}

.mc-agroesa-button--info:hover,
.mc-agroesa-button--info:focus-visible,
.woocommerce .mc-agroesa-button--info:hover,
.woocommerce .mc-agroesa-button--info:focus-visible {
    background: var(--mc-agro-secondary);
    border-color: var(--mc-agro-secondary);
}

.mc-agroesa-button--whatsapp:hover,
.mc-agroesa-button--whatsapp:focus-visible,
.woocommerce .mc-agroesa-button--whatsapp:hover,
.woocommerce .mc-agroesa-button--whatsapp:focus-visible {
    background: var(--mc-agro-primary);
    border-color: var(--mc-agro-primary);
}

.mc-agroesa-button:focus-visible,
.mc-agroesa-modal__close:focus-visible,
.mc-agroesa-form__submit:focus-visible {
    outline: 3px solid var(--mc-agro-accent);
    outline-offset: 3px;
}

body.mc-agroesa-modal-open {
    overflow: hidden;
}

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

.mc-agroesa-modal {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    overflow-y: auto;
    background: rgba(14, 33, 42, .72);
    backdrop-filter: blur(3px);
}

.mc-agroesa-modal__panel {
    position: relative;
    width: min(100%, 660px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 34px;
    border-top: 6px solid var(--mc-agro-primary);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
    color: var(--mc-agro-secondary);
    animation: mc-agroesa-modal-in .22s ease-out;
}

@keyframes mc-agroesa-modal-in {
    from { opacity: 0; transform: translateY(12px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.mc-agroesa-modal__close {
    position: absolute;
    top: 13px;
    right: 15px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #eef4ef;
    color: var(--mc-agro-secondary);
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
}

.mc-agroesa-modal__eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--mc-agro-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.mc-agroesa-modal__heading h2 {
    margin: 0 42px 8px 0;
    color: var(--mc-agro-secondary);
    font-size: clamp(24px, 4vw, 32px);
    line-height: 1.15;
}

.mc-agroesa-modal__heading p {
    margin: 0 0 24px;
    color: #62736b;
    line-height: 1.55;
}

.mc-agroesa-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

.mc-agroesa-form__field {
    min-width: 0;
}

.mc-agroesa-form__field--full {
    grid-column: 1 / -1;
}

.mc-agroesa-form label {
    display: block;
    margin-bottom: 6px;
    color: var(--mc-agro-secondary);
    font-size: 14px;
    font-weight: 700;
}

.mc-agroesa-form input[type="text"],
.mc-agroesa-form input[type="email"],
.mc-agroesa-form input[type="tel"],
.mc-agroesa-form textarea {
    width: 100%;
    margin: 0;
    padding: 12px 13px;
    border: 1px solid #cbd7cf;
    border-radius: 7px;
    background: #fff;
    color: #233b46;
    font: inherit;
    line-height: 1.4;
    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.mc-agroesa-form textarea {
    min-height: 125px;
    resize: vertical;
}

.mc-agroesa-form input:focus,
.mc-agroesa-form textarea:focus {
    border-color: var(--mc-agro-primary);
    outline: 0;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--mc-agro-primary) 18%, transparent);
}

.mc-agroesa-form__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.mc-agroesa-form__privacy {
    max-width: 330px;
    margin: 0;
    color: #718078;
    font-size: 12px;
    line-height: 1.45;
}

.mc-agroesa-form__submit,
.woocommerce .mc-agroesa-form__submit {
    min-width: 170px;
    padding: 13px 20px;
    border: 0;
    border-radius: 7px;
    background: var(--mc-agro-primary);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.mc-agroesa-form__submit:hover,
.woocommerce .mc-agroesa-form__submit:hover {
    background: var(--mc-agro-secondary);
    color: #fff;
}

.mc-agroesa-form__submit:disabled {
    opacity: .65;
    cursor: wait;
}

.mc-agroesa-form__status {
    display: none;
    padding: 12px 14px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
}

.mc-agroesa-form__status.is-visible {
    display: block;
}

.mc-agroesa-form__status.is-success {
    border: 1px solid #a8d8a5;
    background: #eff9ee;
    color: #236b25;
}

.mc-agroesa-form__status.is-error {
    border: 1px solid #e8b2aa;
    background: #fff1ef;
    color: #982d20;
}

.mc-agroesa-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 620px) {
    .mc-agroesa-actions {
        flex-direction: column;
    }

    .mc-agroesa-button,
    .woocommerce .mc-agroesa-button {
        width: min(100%, 340px);
    }

    .mc-agroesa-modal {
        align-items: start;
        padding: 10px;
    }

    .mc-agroesa-modal__panel {
        max-height: calc(100vh - 20px);
        padding: 28px 20px 22px;
        border-radius: 10px;
    }

    .mc-agroesa-form {
        grid-template-columns: 1fr;
    }

    .mc-agroesa-form__field--full {
        grid-column: auto;
    }

    .mc-agroesa-form__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .mc-agroesa-form__submit,
    .woocommerce .mc-agroesa-form__submit {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mc-agroesa-button,
    .mc-agroesa-modal__panel {
        animation: none;
        transition: none;
    }
}
