/* CHECKOUT MODAL STYLES - VERSÃO PROFISSIONAL - SEM EMOJIS */

.checkout-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in;
}

.checkout-modal.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.checkout-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.checkout-header {
    background: #000000;
    color: white;
    padding: 25px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.checkout-header h2 {
    font-size: 22px;
    font-weight: 900;
    margin: 0;
}

.checkout-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.checkout-close:hover {
    transform: scale(1.2);
}

.checkout-body {
    padding: 30px;
    background: #ffffff;
}

.checkout-section {
    margin-bottom: 30px;
}

.checkout-section-title {
    font-size: 16px;
    font-weight: 900;
    color: #000000;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #000000;
    text-transform: uppercase;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.form-group input::placeholder {
    color: #999;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.payment-option:hover {
    border-color: #000000;
    background: #f9f9f9;
}

.payment-option.active {
    border-color: #000000;
    background: #f5f5f5;
}

.payment-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    cursor: pointer;
    accent-color: #000000;
}

.payment-option-content {
    flex-grow: 1;
}

.payment-option-title {
    font-weight: 900;
    color: #000000;
    font-size: 14px;
    margin-bottom: 3px;
}

.payment-option-desc {
    font-size: 12px;
    color: #666666;
}

.payment-option-icon {
    font-size: 24px;
    margin-left: 10px;
    color: #000000;
}

/* INSTALLMENTS SECTION */
.installments-section {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.installments-section.active {
    display: block;
}

.installments-section label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 10px;
}

.installments-select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    cursor: pointer;
    background: white;
}

.installments-select:focus {
    outline: none;
    border-color: #000000;
}

/* PIX QR CODE INFO */
.pix-info {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
    border-left: 4px solid #000000;
}

.pix-info.active {
    display: block;
}

.pix-info-title {
    font-weight: 900;
    color: #000000;
    margin-bottom: 8px;
    font-size: 14px;
}

.pix-info-text {
    font-size: 12px;
    color: #333333;
    line-height: 1.5;
}

.pix-qr-placeholder {
    width: 100%;
    height: 200px;
    background: white;
    border: 2px dashed #000000;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    color: #000000;
    font-weight: 700;
    font-size: 12px;
    text-align: center;
    flex-direction: column;
    gap: 10px;
}

.pix-qr-placeholder i {
    font-size: 40px;
}

/* ORDER SUMMARY */
.order-summary {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.summary-row.total {
    border-top: 2px solid #e0e0e0;
    padding-top: 10px;
    font-weight: 900;
    font-size: 16px;
    color: #000000;
}

.summary-label {
    color: #666;
}

.summary-value {
    font-weight: 700;
    color: #000000;
}

/* PAYMENT FLOW */
.payment-flow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    position: relative;
}

.payment-flow::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.flow-step-number {
    width: 40px;
    height: 40px;
    background: #e0e0e0;
    color: #999;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.flow-step.active .flow-step-number {
    background: #000000;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.flow-step-content {
    text-align: center;
}

.flow-step-title {
    font-weight: 700;
    color: #000000;
    font-size: 12px;
    margin-bottom: 2px;
}

.flow-step-desc {
    font-size: 11px;
    color: #666666;
}

/* SUCCESS SCREEN */
.checkout-success {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    font-size: 60px;
    color: #1FB334;
    margin-bottom: 20px;
}

.pix-payment-box {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #e0e0e0;
}

.pix-amount {
    font-size: 16px;
    margin-bottom: 15px;
}

.qr-code-container {
    background: white;
    padding: 15px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 15px;
    border: 1px solid #eee;
}

.pix-code-field {
    display: flex;
    gap: 10px;
}

.pix-code-field input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 12px;
    background: white;
}

.pix-code-field button {
    padding: 0 20px;
    background: #000000;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}

.success-footer {
    margin-top: 30px;
    font-size: 13px;
    color: #666;
}

/* BUTTONS */
.checkout-footer {
    display: flex;
    gap: 10px;
    padding: 20px 30px;
    background: #f9f9f9;
    border-radius: 0 0 15px 15px;
    border-top: 1px solid #e0e0e0;
    position: sticky;
    bottom: 0;
}

.btn-checkout {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-weight: 900;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-checkout-primary {
    background: #000000;
    color: white;
}

.btn-checkout-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.btn-checkout-secondary {
    background: white;
    color: #000000;
    border: 2px solid #000000;
}

.btn-checkout-secondary:hover {
    background: #f5f5f5;
}

/* LOADING SPINNER */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .checkout-content {
        width: 95%;
        max-height: 95vh;
    }

    .checkout-body {
        padding: 20px;
    }
}
