/**
 * Frontend styles
 */

.wpp-partial-payment-options {
	margin: 20px 0;
	padding: 15px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #f9f9f9;
}

.wpp-partial-payment-options h3 {
	margin-top: 0;
	margin-bottom: 12px;
	font-size: 18px;
	font-weight: 600;
	color: #1d2327;
}

.wpp-deposit-option,
.wpp-installments-option,
.wpp-payment-plan-option {
	margin-bottom: 15px;
	padding: 12px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
}

.wpp-deposit-option h4,
.wpp-installments-option h4,
.wpp-payment-plan-option h4 {
	margin-top: 0;
	margin-bottom: 10px;
	font-size: 16px;
	font-weight: 600;
	color: #1d2327;
}

/* Plan Details Styling */
.wpp-plan-details {
	margin-top: 10px;
}

.wpp-plan-detail-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 0;
	border-bottom: 1px solid #f0f0f0;
	font-size: 14px;
}

.wpp-plan-detail-item:last-child {
	border-bottom: none;
}

.wpp-detail-label {
	color: #646970;
	font-weight: 500;
	flex: 0 0 auto;
	margin-right: 15px;
}

.wpp-detail-value {
	color: #1d2327;
	font-weight: 500;
	text-align: right;
	flex: 1;
}

.wpp-deposit-amount {
	width: 100%;
	max-width: 200px;
	padding: 8px;
	margin: 10px 0;
}

.wpp-deposit-preview {
	margin-top: 10px;
	padding: 10px;
	background: #f0f0f0;
	border-radius: 4px;
}

.wpp-balance-due-date {
	margin-top: 5px;
	color: #666;
}

.wpp-order-partial-payment-info {
	margin: 20px 0;
}

.wpp-balance-payment-form {
	margin: 20px 0;
	padding: 20px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #f9f9f9;
}

.wpp-payment-plan-schedule {
	margin: 20px 0;
}

.wpp-payment-plan-schedule table {
	width: 100%;
	margin-top: 10px;
}

.wpp-payment-plan-schedule th,
.wpp-payment-plan-schedule td {
	padding: 10px;
	text-align: left;
	border-bottom: 1px solid #ddd;
}

.wpp-payment-plan-schedule th {
	background: #f0f0f0;
	font-weight: bold;
}

/* EMI Options Grid */
.wpp-emi-options {
	margin-top: 20px;
}

.wpp-emi-options h5 {
	margin-bottom: 15px;
	font-size: 16px;
	font-weight: 600;
	color: #1d2327;
}

.wpp-emi-options-grid {
	margin-top: 12px;
}

.wpp-emi-options-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
}

.wpp-emi-options-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 520px; /* keeps table readable; wrapper scrolls on small screens */
	font-size: 13px;
}

.wpp-emi-options-table th,
.wpp-emi-options-table td {
	padding: 10px 12px;
	border-bottom: 1px solid #eef0f2;
	text-align: left;
	vertical-align: middle;
}

.wpp-emi-options-table thead th {
	background: #f6f7f7;
	font-weight: 600;
	color: #1d2327;
	white-space: nowrap;
}

.wpp-emi-options-table tbody tr:last-child td {
	border-bottom: none;
}

.wpp-emi-muted {
	margin-left: 6px;
	color: #646970;
	font-size: 12px;
	white-space: nowrap;
}

.wpp-emi-monthly strong {
	font-size: 14px;
	color: #1d2327;
}

.wpp-emi-total span {
	color: #646970;
	white-space: nowrap;
}

.wpp-emi-option-row.selected {
	background: #f0f7ff;
}

.wpp-emi-option-row.selected td:first-child {
	border-left: 3px solid #2271b1;
}

.wpp-emi-options-table .button.wpp-select-emi-option {
	padding: 6px 10px;
	background: #1f2937;
	color: #fff;
	border: 1px solid #1f2937;
	border-radius: 4px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
	white-space: nowrap;
}

.wpp-emi-options-table .button.wpp-select-emi-option:hover {
	background: #111827;
	border-color: #111827;
}

.wpp-emi-option-row.selected .button.wpp-select-emi-option {
	background: #135e96;
	border-color: #135e96;
}

/* Checkout EMI Details */
.wpp-emi-details {
	background-color: #f8f9fa;
	border-top: 1px solid #e0e0e0;
}

.wpp-emi-details th {
	font-weight: 600;
	color: #1d2327;
	padding: 12px 0;
}

.wpp-emi-details td {
	padding: 12px 0;
}

.wpp-emi-details strong {
	color: #2271b1;
	font-size: 16px;
}

.wpp-emi-details small {
	color: #646970;
	font-size: 13px;
	line-height: 1.6;
}

