/**
 * OXFIT Manager — Partial Payment front-end styles.
 */

.oxfit-pp {
	--oxfit-pp-border: #e4e6ea;
	--oxfit-pp-border-strong: #121212;
	--oxfit-pp-bg: #ffffff;
	--oxfit-pp-text: #121212;
	--oxfit-pp-muted: #6b7280;

	box-sizing: border-box;
	width: 100%;
	margin: 0 0 20px;
	padding: 16px 18px;
	border: 1px solid var(--oxfit-pp-border);
	border-radius: 6px;
	background-color: var(--oxfit-pp-bg);
	color: var(--oxfit-pp-text);
}

.oxfit-pp *,
.oxfit-pp *::before,
.oxfit-pp *::after {
	box-sizing: border-box;
}

.oxfit-pp.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

.oxfit-pp__heading {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.oxfit-pp__option {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 8px;
	padding: 11px 13px;
	border: 1px solid var(--oxfit-pp-border);
	border-radius: 5px;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.oxfit-pp__option:last-of-type {
	margin-bottom: 0;
}

.oxfit-pp__option:hover {
	border-color: #c9ccd2;
}

.oxfit-pp__option.is-selected {
	border-color: var(--oxfit-pp-border-strong);
	background-color: #fafafa;
}

.oxfit-pp__option input[type="radio"] {
	flex: 0 0 auto;
	margin: 2px 0 0;
	accent-color: var(--oxfit-pp-border-strong);
}

.oxfit-pp__option-body {
	display: block;
	min-width: 0;
}

.oxfit-pp__option-title {
	display: block;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
}

.oxfit-pp__option-desc {
	display: block;
	margin-top: 2px;
	font-size: 13px;
	line-height: 1.45;
	color: var(--oxfit-pp-muted);
}

.oxfit-pp__note {
	margin: 12px 0 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--oxfit-pp-muted);
}

/* Pay now / balance due rows inside the cart and checkout totals tables. */

.oxfit-pp-row th,
.oxfit-pp-row td {
	font-size: 13px;
	font-weight: 400;
	color: #6b7280;
}

.oxfit-pp-row--later th,
.oxfit-pp-row--later td {
	font-weight: 600;
	color: #121212;
}

.oxfit-pp-row--full th,
.oxfit-pp-row--full td {
	border-top: 1px dashed #e4e6ea;
	padding-top: 10px;
}

/* Order summary on the thank-you and view-order pages. */

.oxfit-pp-order {
	margin: 0 0 30px;
	padding: 18px 20px;
	border: 1px solid var(--oxfit-pp-border, #e4e6ea);
	border-radius: 6px;
	background: #fff;
}

.oxfit-pp-order__title {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 600;
}

.oxfit-pp-order__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.oxfit-pp-order__list li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 7px 0;
	border-bottom: 1px solid #f0f0f1;
	font-size: 14px;
}

.oxfit-pp-order__list li:last-child {
	border-bottom: none;
}

.oxfit-pp-order__total {
	border-top: 1px solid #e4e6ea;
	font-weight: 600;
}

.oxfit-pp-order__action {
	margin: 14px 0 0;
}

@media (max-width: 480px) {
	.oxfit-pp {
		padding: 14px 12px;
	}
	.oxfit-pp__option {
		padding: 10px 11px;
	}
}
