/**
 * V12 Finance Block Checkout Styles
 */

.v12-finance-payment-method-block {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 4px;
    margin-top: 15px;
}

.v12-finance-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.v12-finance-header img {
    display: block;
    margin-bottom: 10px;
}

.v12-finance-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Calculator Styles */
.v12-finance-calculator-block {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.v12-calculator-controls {
    flex: 1;
    min-width: 300px;
}

.v12-calculator-summary {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

/* Deposit Section */
.deposit-section {
    margin-bottom: 25px;
}

.deposit-section h4 {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.deposit-info {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.deposit-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.deposit-adjust {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
}

.deposit-adjust:hover {
    background: #f0f0f0;
    border-color: #999;
}

.deposit-input-field {
    flex: 1;
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0 10px;
    background: white;
}

.deposit-input-field .currency {
    color: #666;
    margin-right: 5px;
}

.deposit-input-field input {
    flex: 1;
    border: none;
    outline: none;
    padding: 8px 5px;
    font-size: 16px;
    background: transparent;
}

/* Slider */
.deposit-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
}

.deposit-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0073aa;
    cursor: pointer;
}

.deposit-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0073aa;
    cursor: pointer;
    border: none;
}

/* Finance Options Section */
.finance-options-section h4 {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.v12-finance-options-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    cursor: pointer;
}

/* Summary Section */
.v12-calculator-summary h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.summary-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.summary-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.summary-list li:last-child {
    border-bottom: none;
}

.summary-list .label {
    color: #666;
}

.summary-list .value {
    font-weight: 500;
    color: #333;
}

.summary-list .total-payable {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid #e0e0e0;
    font-size: 16px;
}

.summary-list .total-payable .value {
    font-weight: 600;
    color: #0073aa;
}

/* Error Messages */
.v12-finance-error {
    background: #fff2f2;
    border: 1px solid #ffcccc;
    color: #cc0000;
    padding: 10px;
    border-radius: 4px;
    margin-top: 15px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .v12-finance-calculator-block {
        flex-direction: column;
    }
    
    .v12-calculator-controls,
    .v12-calculator-summary {
        min-width: 100%;
    }
}

/* Payment method label in list */
.wc-block-components-payment-method-label {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

.wc-block-components-payment-method-label img {
    margin-left: auto !important;
    max-height: 20px !important;
}