/* ================================================
   SILVINA C. · Plugin Cotizador de Envío v1.0.0
   ================================================ */

/* --- Botón trigger --- */
.sc-envio-wrapper { margin: 14px 0 4px; }

.sc-btn-envio {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 12px 20px;
    color: #fff;
    font-size: 14.5px;
    font-weight: 700;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    transition: filter .2s, transform .1s;
    font-family: inherit;
    letter-spacing: .3px;
    box-sizing: border-box;
    line-height: 1.3;
}
.sc-btn-envio:hover  { filter: brightness(1.12); }
.sc-btn-envio:active { transform: scale(.99); }
.sc-btn-envio i      { font-size: 17px; flex-shrink: 0; }

.sc-envio-sub {
    margin: 6px 0 0;
    font-size: 12px;
    color: #9a9a9a;
    text-align: center;
    line-height: 1.5;
}

/* --- Overlay --- */
.sc-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(20, 12, 6, .54);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}
.sc-modal-overlay.sc-modal-activo { display: flex; }

/* --- Box --- */
.sc-modal-box {
    background: #fff;
    border-radius: 16px;
    max-width: 430px;
    width: 100%;
    padding: 36px 30px 28px;
    position: relative;
    box-shadow: 0 24px 64px rgba(0,0,0,.18);
    animation: sccot-in .28s cubic-bezier(.34,1.3,.64,1);
    box-sizing: border-box;
}

@keyframes sccot-in {
    from { opacity: 0; transform: translateY(18px) scale(.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- Cerrar --- */
.sc-modal-close {
    position: absolute;
    top: 12px; right: 13px;
    background: none;
    border: none;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #bbb;
    cursor: pointer;
    transition: background .15s, color .15s;
    padding: 0;
}
.sc-modal-close:hover { background: #f3ede6; color: #555; }

/* --- Header --- */
.sc-modal-header {
    text-align: center;
    margin-bottom: 24px;
}
.sc-modal-icon-wrap {
    width: 54px; height: 54px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0ebe4, #e8ddd3);
    display: flex;
    align-items: center;
    justify-content: center;
}
.sc-modal-icon-wrap i  { font-size: 22px; color: #9a6e4a; }
.sc-modal-header h3    { font-size: 19px; font-weight: 700; color: #1e1e1e; margin: 0 0 5px; }
.sc-modal-header p     { font-size: 13px; color: #9a9a9a; margin: 0; }

/* --- Formulario --- */
.sc-modal-form   { display: flex; flex-direction: column; gap: 13px; }
.sc-field-row    { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sc-field-group  { display: flex; flex-direction: column; gap: 5px; }

.sc-field-group label {
    font-size: 11px;
    font-weight: 700;
    color: #888;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.sc-input {
    width: 100%;
    padding: 11px 13px;
    border: 1.5px solid #e5ddd6;
    border-radius: 8px;
    font-size: 14px;
    color: #1e1e1e;
    background: #faf7f4;
    box-sizing: border-box;
    transition: border-color .2s, background .2s, box-shadow .2s;
    font-family: inherit;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.sc-input:focus {
    border-color: #b5956a;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(181,149,106,.14);
}
.sc-input.sc-input-readonly {
    color: #888;
    background: #f2ede8;
    cursor: default;
    font-size: 13px;
}
.sc-input.sc-input-error {
    border-color: #d9534f;
    background: #fff8f8;
    box-shadow: 0 0 0 3px rgba(217,83,79,.1);
}

/* --- Submit --- */
.sc-modal-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    margin-top: 4px;
    padding: 14px 20px;
    background: #25d366;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    transition: filter .2s, transform .1s;
    font-family: inherit;
    letter-spacing: .2px;
}
.sc-modal-submit:hover  { filter: brightness(1.1); }
.sc-modal-submit:active { transform: scale(.99); }
.sc-modal-submit i      { font-size: 18px; }

/* --- Responsive --- */
@media (max-width: 480px) {
    .sc-modal-box  { padding: 28px 18px 22px; border-radius: 14px; }
    .sc-field-row  { grid-template-columns: 1fr; }
}

