/* ======================================== */
/* == SEÇÃO DE PAGAMENTO EM DINHEIRO     == */
/* ======================================== */

.payment-method-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    margin-top: 15px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    animation: slideInUp 0.3s ease-out;
}

.payment-method-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-method-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 18px;
    background: #db0038;
    /* var(--primary-red) hardcoded for safety */
    border-radius: 2px;
}

.money-input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.money-input-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
    /* var(--text-light) */
    margin-bottom: 8px;
    text-transform: uppercase;
}

.money-input-field {
    width: 100%;
    height: 60px;
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    /* var(--text-dark) */
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0 16px;
    transition: all 0.2s ease;
    background: #f8fafc;
}

.money-input-field:focus {
    border-color: #db0038;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(219, 0, 56, 0.1);
    outline: none;
}

.money-input-field::placeholder {
    color: #cbd5e1;
}

.change-display-box {
    background: #f0fdf4;
    /* Verde bem claro */
    border: 1px dashed #bbf7d0;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.change-label {
    font-size: 0.9rem;
    color: #166534;
    font-weight: 600;
    text-transform: uppercase;
}

.change-value-highlight {
    font-size: 1.8rem;
    font-weight: 800;
    color: #15803d;
    /* Verde escuro */
    letter-spacing: -0.5px;
}

.payment-actions-row {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-payment-confirm {
    flex: 1;
    height: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #db0038;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(219, 0, 56, 0.2);
}

.btn-payment-confirm:hover {
    background: #b8002e;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(219, 0, 56, 0.3);
}

.btn-payment-back {
    padding: 0 20px;
    height: 50px;
    font-weight: 600;
    color: #6b7280;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-payment-back:hover {
    background: #f8fafc;
    color: #1f2937;
    border-color: #cbd5e1;
}

/* ======================================== */
/* == SPINNER & MODAL PIX DINÂMICO       == */
/* ======================================== */

.text-center {
    text-align: center;
}

.justify-center {
    justify-content: center;
}

.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 16px; }
.mb-lg { margin-bottom: 24px; }

.price-highlight {
    font-size: 2.5rem;
    font-weight: 800;
    color: #db0038;
}

.spinner-container-pdv {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner-ring-pdv {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid rgba(219, 0, 56, 0.08);
    border-top: 4px solid #db0038;
    border-right: 4px solid #db0038;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-icon-pdv {
    font-size: 2rem;
    color: #db0038;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.85); opacity: 0.7; }
}