/**
 * Paypercut BNPL Checkout Styles
 */

.paypercut-bnpl-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    margin: 15px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.paypercut-bnpl-info h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.paypercut-bnpl-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.paypercut-bnpl-info li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.paypercut-bnpl-info li:last-child {
    border-bottom: none;
}

.paypercut-bnpl-info .label {
    font-weight: 500;
    color: #495057;
}

.paypercut-bnpl-info .value {
    font-weight: 600;
    color: #2c3e50;
}

.paypercut-bnpl-terms {
    margin: 15px 0;
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
}

.paypercut-bnpl-terms label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
}

.paypercut-bnpl-terms input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 2px;
    flex-shrink: 0;
}

.paypercut-bnpl-terms a {
    color: #0073aa;
    text-decoration: none;
}

.paypercut-bnpl-terms a:hover {
    text-decoration: underline;
}

.paypercut-bnpl-logo {
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
    width: 24px;
    height: 24px;
}

.paypercut-bnpl-thankyou {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
}

.paypercut-bnpl-thankyou h3 {
    margin: 0 0 15px 0;
    color: #155724;
    font-size: 18px;
}

.paypercut-bnpl-thankyou p {
    margin: 0 0 10px 0;
    color: #155724;
}

.paypercut-bnpl-thankyou p:last-child {
    margin-bottom: 0;
}

.paypercut-bnpl-installment-plan {
    background: #e7f3ff;
    border: 1px solid #b8daff;
    border-radius: 6px;
    padding: 20px;
    margin: 15px 0;
}

.paypercut-bnpl-installment-plan h4 {
    margin: 0 0 15px 0;
    color: #004085;
    font-size: 16px;
}

.paypercut-bnpl-installment-plan .installment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #b8daff;
}

.paypercut-bnpl-installment-plan .installment-item:last-child {
    border-bottom: none;
}

.paypercut-bnpl-installment-plan .installment-date {
    font-weight: 500;
    color: #004085;
}

.paypercut-bnpl-installment-plan .installment-amount {
    font-weight: 600;
    color: #004085;
}

.paypercut-bnpl-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
    color: #721c24;
}

.paypercut-bnpl-error p {
    margin: 0;
    font-weight: 500;
}

/* Payment method selection styling */
.wc_payment_method.payment_method_paypercut_bnpl {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}

.wc_payment_method.payment_method_paypercut_bnpl:hover {
    border-color: #0073aa;
}

.wc_payment_method.payment_method_paypercut_bnpl input[type="radio"]:checked + label {
    color: #0073aa;
    font-weight: 600;
}

.wc_payment_method.payment_method_paypercut_bnpl .payment_box {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 6px 6px;
    padding: 20px;
    margin-top: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .paypercut-bnpl-info,
    .paypercut-bnpl-terms,
    .paypercut-bnpl-installment-plan {
        padding: 15px;
    }
    
    .paypercut-bnpl-info li,
    .paypercut-bnpl-installment-plan .installment-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .paypercut-bnpl-info .value,
    .paypercut-bnpl-installment-plan .installment-amount {
        font-size: 16px;
    }
}

/* Loading states */
.paypercut-bnpl-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: paypercut-spin 1s linear infinite;
    margin-right: 10px;
}

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

/* Success states */
.paypercut-bnpl-success {
    color: #28a745;
    font-weight: 500;
}

.paypercut-bnpl-success::before {
    content: "✓";
    display: inline-block;
    margin-right: 8px;
    color: #28a745;
    font-weight: bold;
}

/* Redirect states */
.paypercut-bnpl-redirect {
    background: #e7f3ff;
    border: 1px solid #b8daff;
    border-radius: 6px;
    padding: 20px;
    margin: 15px 0;
    text-align: center;
}

.paypercut-bnpl-redirect h4 {
    margin: 0 0 15px 0;
    color: #004085;
    font-size: 18px;
}

.paypercut-bnpl-redirect p {
    margin: 0 0 15px 0;
    color: #004085;
    font-size: 14px;
    line-height: 1.5;
}

.paypercut-bnpl-redirect .paypercut-bnpl-loading {
    display: inline-block;
    margin-top: 10px;
}

/* Payment option row layout */
.paypercut-bnpl-row { display:flex; align-items:center; gap:16px; min-height:64px; }
.paypercut-bnpl-row .paypercut-logo { height:64px !important; width:auto !important; object-fit:contain; display:block; }
.paypercut-bnpl-row .paypercut-texts { display:flex; flex-direction:column; gap:4px; }
.paypercut-bnpl-row .paypercut-title { font-weight:600; margin:0; }
.paypercut-bnpl-row .paypercut-desc { margin:0; }

