.threedis-ms-step .threedis-order-grid {
    display: grid;
    gap: 18px 22px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.threedis-ms-step label {
    display: grid;
    font-weight: 600;
    gap: 7px;
    line-height: 1.35;
}

/* Les boutons et widgets conservent leurs propres styles. */
.threedis-ms-step input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="hidden"]):not([type="file"]),
.threedis-ms-step select,
.threedis-ms-step textarea {
    background: #fff;
    border: 1px solid #b9c4d6;
    border-radius: 8px;
    box-sizing: border-box;
    min-height: 46px;
    padding: 10px 12px;
    width: 100%;
}

.threedis-ms-step textarea {
    min-height: 125px;
    resize: vertical;
}

.threedis-ms-step input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="hidden"]):not([type="file"]):focus,
.threedis-ms-step select:focus,
.threedis-ms-step textarea:focus {
    border-color: var(--ms-active);
    box-shadow: 0 0 0 3px rgba(245, 34, 67, .15);
    outline: 0;
}

.threedis-ms-step .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

/* Signature Addon calcule le canvas depuis son conteneur configuré.
 * Ne pas imposer ici de hauteur au canvas ou au conteneur.
 * Seul son bouton d'effacement est adapté dans une étape Multistep.
 */
.threedis-ms-step .wpcf7-form-control-signature-global-wrap .wpcf7-form-control-clear-wrap input[type="button"] {
    display: inline-block;
    box-sizing: border-box;
    width: auto;
    max-width: 100%;
    min-height: 32px;
    height: auto;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 18px;
    background: #0073aa;
    color: #fff;
    border: 1px solid #005b87;
    border-radius: 4px;
    cursor: pointer;
}

.threedis-ms-step .wpcf7-form-control-signature-global-wrap .wpcf7-form-control-clear-wrap input[type="button"]:focus-visible {
    outline: 2px solid #005b87;
    outline-offset: 3px;
}

@media (max-width: 700px) {
    .threedis-ms-step .threedis-order-grid {
        grid-template-columns: 1fr;
    }
}
