/* ============================================================
   CUBA PAYMENTS PLUGIN — Estilos del cliente
   ============================================================ */

/* Contenedor principal */
.cppa-payment-instructions,
.cppa-thank-you-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 36px 32px 60px;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

/* Encabezados */
.cppa-payment-instructions h2,
.cppa-thank-you-page h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-top: 0;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 3px solid #c0392b;
}

/* Resumen del pedido */
.cppa-payment-summary {
    background: #f8f9fa;
    border-left: 4px solid #c0392b;
    border-radius: 0 6px 6px 0;
    padding: 14px 18px;
    margin-bottom: 30px;
}

.cppa-payment-summary p {
    margin: 5px 0;
    font-size: 0.96rem;
    color: #444;
}

/* Lista de cuentas */
.cppa-account-list {
    display: grid;
    gap: 18px;
    margin-bottom: 32px;
}

/* Tarjeta de cuenta */
.cppa-account-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 22px;
    display: flex;
    gap: 22px;
    align-items: center;
    background: #fafafa;
    transition: box-shadow 0.25s;
}

.cppa-account-card:hover {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.09);
}

/* Imagen QR */
.cppa-qr-image {
    flex-shrink: 0;
}

.cppa-account-card img {
    width: 180px;
    height: 180px;
    display: block;
    object-fit: contain;
    background: #fff;
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

/* Info de cuenta */
.cppa-account-info {
    flex: 1;
}

.cppa-account-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 12px 0;
}

.cppa-account-info p {
    margin: 6px 0;
    color: #555;
    font-size: 0.96rem;
}

.cppa-account-info p strong {
    color: #333;
}

/* Número de cuenta destacado */
.cppa-account-number {
    display: inline-block;
    background: #fff;
    border: 1px solid #c0392b;
    border-radius: 5px;
    padding: 5px 13px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    letter-spacing: 1.5px;
    color: #c0392b;
    font-weight: 700;
    margin-top: 2px;
}

/* Formulario de transacción */
.cppa-transaction-form {
    background: #f8f9fa;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    padding: 24px 26px;
    margin-top: 6px;
}

.cppa-form-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 18px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e4e4e4;
}

.cppa-transaction-form p {
    margin-top: 0;
    margin-bottom: 14px;
}

.cppa-transaction-form label strong {
    font-size: 0.94rem;
    color: #333;
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.cppa-transaction-form input[type="text"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 1rem;
    letter-spacing: 1px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cppa-transaction-form input[type="text"]:focus {
    outline: none;
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.cppa-transaction-form small {
    display: block;
    margin-top: 7px;
    color: #888;
    font-size: 0.82rem;
}

/* Botón de envío */
.cppa-transaction-form .cppa-submit-button {
    display: inline-block;
    padding: 12px 30px;
    font-size: 0.96rem;
    font-weight: 600;
    line-height: 1;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    background: #c0392b;
    color: #fff;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(192, 57, 43, 0.3);
    margin-top: 4px;
}

.cppa-transaction-form .cppa-submit-button:hover {
    background: #a93226;
    box-shadow: 0 4px 14px rgba(192, 57, 43, 0.4);
}

.cppa-transaction-form .cppa-submit-button:active {
    transform: scale(0.97);
}

/* Mensaje de error */
.cppa-error-message {
    background: #fff0f0;
    border-left: 4px solid #b00020;
    border-radius: 0 6px 6px 0;
    padding: 12px 16px;
    color: #b00020 !important;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

/* Página de agradecimiento */
.cppa-thank-you-page h2 {
    color: #155724;
    border-bottom-color: #27ae60;
}

.cppa-thank-you-intro {
    background: #f0faf4;
    border-left: 4px solid #27ae60;
    border-radius: 0 6px 6px 0;
    padding: 14px 18px;
    color: #2d5a3d;
    margin-bottom: 20px;
    font-size: 0.97rem;
}

.cppa-thank-you-details {
    background: #f8f9fa;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    padding: 18px 22px;
    margin-top: 4px;
}

.cppa-thank-you-details p {
    margin: 7px 0;
    color: #444;
    font-size: 0.96rem;
}

.cppa-thank-you-details p strong {
    color: #222;
}

/* Número de transacción en agradecimiento */
.cppa-transaction-code {
    display: inline-block;
    background: #fff;
    border: 1px solid #27ae60;
    border-radius: 5px;
    padding: 4px 12px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    letter-spacing: 1.5px;
    color: #1a6b3c;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 600px) {
    .cppa-payment-instructions,
    .cppa-thank-you-page {
        padding: 22px 16px 40px;
        border-radius: 6px;
    }

    .cppa-account-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cppa-account-card img {
        width: 150px;
        height: 150px;
    }

    .cppa-account-info {
        width: 100%;
        text-align: center;
    }

    .cppa-transaction-form {
        padding: 18px 16px;
    }
}
