/* Blackstone payment method in the WooCommerce Checkout Block. */

.bmspay-blocks-payment {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Room for the block's own "save payment information" checkbox below the form. */
    margin-bottom: 12px;
}

.bmspay-blocks-description {
    margin: 0;
}

.bmspay-blocks-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* WooCommerce adds a top margin to every text input; the grid gap already spaces them. */
.bmspay-blocks-payment .bmspay-blocks-field.wc-block-components-text-input {
    margin-top: 0;
}

/* 3D Secure challenge dialog. */
.bmspay-3ds-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    padding: 16px;
}

.bmspay-3ds-dialog {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    width: 100%;
    max-width: 430px;
    box-sizing: border-box;
    text-align: center;
}

.bmspay-3ds-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px;
}

.bmspay-3ds-frame {
    position: relative;
    width: 100%;
    max-width: 390px;
    height: 400px;
    margin: 0 auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    overflow: hidden;
}

.bmspay-3ds-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.bmspay-3ds-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    color: #555;
    pointer-events: none;
}

.bmspay-3ds-hint {
    margin: 12px 0 0;
    font-size: 12px;
    color: #666;
}
