/* ============================================================
   MDPD Tienda Cerrada — Shortcode Registration Form (Frontend)
   Solo disposición. Los estilos visuales los aporta el tema.
   ============================================================ */

.mdpd-tc-form {
    max-width: 680px;
    margin: 0 auto;
}

/* ─── Messages ────────────────────────────────────────────── */

.mdpd-tc-form__errors {
    background: #fff0f3;
    border-left: 4px solid #e74c3c;
    padding: 1em 1.2em;
    margin-bottom: 1.5em;
    list-style: none;
}

.mdpd-tc-form__errors li {
    color: #c0392b;
    font-size: .9em;
    line-height: 1.6;
}

.mdpd-tc-form__success {
    background: #e8f9f3;
    border-left: 4px solid #27ae60;
    padding: 1.2em 1.5em;
    margin-bottom: 1.5em;
    font-size: .95em;
    line-height: 1.6;
}

/* ─── Section headers ─────────────────────────────────────── */

.mdpd-tc-form__section {
    margin: 1.8em 0 .6em;
    padding-bottom: .3em;
    border-bottom: 2px solid #e0e0e0;
}

.mdpd-tc-form__section:first-child {
    margin-top: .5em;
}

.mdpd-tc-form__section h3 {
    margin: 0;
    padding: 0;
}

/* ─── Field rows ──────────────────────────────────────────── */

.mdpd-tc-form__row {
    display: grid;
    gap: 1em;
    margin-bottom: .9em;
    grid-template-columns: repeat(var(--cols, 1), 1fr);
}

/* ─── Fields ──────────────────────────────────────────────── */

.mdpd-tc-form__field {
    min-width: 0;
}

.mdpd-tc-form__field label {
    display: block;
    margin-bottom: .3em;
}

.mdpd-tc-form__field input,
.mdpd-tc-form__field textarea {
    width: 100%;
    box-sizing: border-box;
}

/* ─── Input group (prefix / suffix) ───────────────────────── */

.mdpd-tc-form__input-group {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    width: 100%;
}

.mdpd-tc-form__input-group input {
    flex: 1;
    min-width: 0;
}

.mdpd-tc-form__addon {
    white-space: nowrap;
    font-size: .85em;
    font-weight: 600;
    flex-shrink: 0;
}

/* ─── Validation (JS inline) ──────────────────────────────── */

.mdpd-tc-invalid {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 1px rgba(231, 76, 60, .18) !important;
}

.mdpd-tc-form__tip {
    display: block;
    margin-top: .3em;
    font-size: .78em;
    line-height: 1.4;
    color: #c0392b;
}

/* ─── Separator between account and custom ────────────────── */

.mdpd-tc-form__sep {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 1.5em 0 .5em;
}

/* ─── Submit ──────────────────────────────────────────────── */

.mdpd-tc-form__submit {
    margin-top: 1.8em;
    text-align: center;
}

/* ─── Responsive ──────────────────────────────────────────── */

@media (max-width: 600px) {
    .mdpd-tc-form__row {
        grid-template-columns: repeat(var(--cols-mob, 1), 1fr) !important;
        gap: .6em;
    }
}
