.mlp-quote-open {
    margin-top: 12px;
}

.mlp-quote-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
}

.mlp-quote-modal.is-open {
    display: block;
}

.mlp-quote-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
}

.mlp-quote-dialog {
    position: relative;
    z-index: 2;
    width: min(720px, calc(100% - 32px));
    max-height: calc(100vh - 40px);
    overflow: auto;
    margin: 20px auto;
    padding: 28px;
    background: #fff;
    border-radius: 6px;
    box-sizing: border-box;
}

.mlp-quote-close {
    position: absolute;
    top: 8px;
    right: 12px;
    border: 0;
    background: transparent;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.mlp-quote-product-line {
    margin-bottom: 20px;
}

.mlp-quote-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 14px 18px;
}

.mlp-quote-grid p {
    margin: 0;
}

.mlp-quote-grid label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.mlp-quote-grid input,
.mlp-quote-grid select {
    width: 100%;
    box-sizing: border-box;
}

.mlp-span-2 {
    grid-column: 1 / -1;
}

.mlp-quote-actions {
    margin-top: 22px;
    margin-bottom: 0;
}

.mlp-quote-message {
    margin-top: 18px;
    padding: 0;
}

.mlp-quote-message.is-success,
.mlp-quote-message.is-error {
    padding: 10px 12px;
    border: 1px solid currentColor;
}

body.mlp-quote-modal-open {
    overflow: hidden;
}

.mlp-hp {
    position: absolute !important;
    left: -99999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 640px) {
    .mlp-quote-dialog {
        width: calc(100% - 20px);
        margin: 10px auto;
        padding: 22px 16px;
        max-height: calc(100vh - 20px);
    }

    .mlp-quote-grid {
        grid-template-columns: 1fr;
    }

    .mlp-span-2 {
        grid-column: auto;
    }
}


/* Ajustements MyLittlePessaire */
.woocommerce .product.style-default .entry-summary .cart .quantity .input-text,
.woocommerce .product.style-default .entry-summary .cart .button.alt.mlp-quote-open {
    padding: 15px 10px !important;
}

.mlp-quote-grid input {
    width: 100%;
    border-color: #cca9fe;
}
