/* Checkout Payment Options Selector, Vertically Stacked Full-Width Cards & Floating Discount Pill (v1.5.0) */
.dppp-payment-options-card {
	--dppp-main: #111827;
	--dppp-accent: #ef4444;
	--dppp-card-bg: #ffffff;
	--dppp-text: #111827;
	--dppp-radius: 10px;

	background: var(--dppp-card-bg);
	color: var(--dppp-text);
	border: 1px solid #e5e7eb;
	border-radius: calc(var(--dppp-radius) + 2px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
	padding: 18px;
	margin: 16px 0 20px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	overflow: visible;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.dppp-card-header-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}

.dppp-shield-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--dppp-main);
	color: #ffffff;
	font-size: 13px;
}

.dppp-card-heading {
	font-size: 14.5px;
	font-weight: 700;
	color: var(--dppp-text);
}

/* Split Progress Bar (Payable Today vs Due on Delivery) */
.dppp-split-progress {
	margin-bottom: 14px;
}

.dppp-split-progress-track {
	height: 6px;
	background: #e5e7eb;
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 6px;
}

.dppp-split-progress-fill {
	height: 100%;
	background: var(--dppp-main);
	border-radius: 999px;
	transition: width 0.25s ease;
}

.dppp-split-progress-labels {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	font-weight: 600;
}

.dppp-prog-left {
	color: var(--dppp-text);
}

.dppp-prog-right {
	color: #6b7280;
}

/* Vertically Stacked Full-Width Option Rows on Desktop, Tablet & Mobile */
.dppp-option-boxes {
	display: flex !important;
	flex-direction: column !important;
	grid-template-columns: 1fr !important;
	gap: 14px;
	width: 100%;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

.dppp-option-box {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 12px;
	width: 100%;
	min-height: 64px;
	border: 1.5px solid #e5e7eb;
	border-radius: var(--dppp-radius);
	padding: 15px 18px;
	background: #ffffff;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
	user-select: none;
	margin: 0;
	box-sizing: border-box;
	overflow: visible;
}

.dppp-option-box.dppp-full-pay-box.has-discount-pill {
	margin-top: 8px;
	padding-top: 22px;
	padding-bottom: 15px;
}

.dppp-option-box:hover {
	border-color: #9ca3af;
}

.dppp-option-box.is-selected {
	border: 2px solid var(--dppp-main);
	background: #ffffff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Floating Discount Pill Centered on Top Border of Full Payment Card */
.dppp-full-discount-pill {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translate(-50%, -54%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px 28px;
	min-width: 144px;
	max-width: calc(100% - 24px);
	border-radius: 999px;
	border: 1.5px solid #111827;
	background-color: #00b853;
	color: #052e16;
	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.01em;
	white-space: nowrap;
	z-index: 6;
	pointer-events: none;
	box-sizing: border-box;
	animation: dpppPillBgTransition 4s infinite ease-in-out;
}

@keyframes dpppPillBgTransition {
	0%, 100% {
		background-color: #00b853;
		color: #052e16;
	}
	50% {
		background-color: #38bdf8;
		color: #0c4a6e;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dppp-full-discount-pill {
		animation: none !important;
	}
}

.dppp-radio-input {
	margin: 2px 0 0 0 !important;
	accent-color: var(--dppp-main);
	width: 17px;
	height: 17px;
	flex-shrink: 0;
	cursor: pointer;
}

.dppp-check-badge {
	display: none;
	position: absolute;
	top: -9px;
	right: -9px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--dppp-main);
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.16);
	z-index: 5;
}

.dppp-option-box.is-selected .dppp-check-badge {
	display: inline-block;
}

.dppp-option-content {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.dppp-option-title-row {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 8px;
	margin: 0 0 4px 0;
	width: 100%;
}

.dppp-option-title {
	font-size: 14.5px;
	font-weight: 700;
	color: var(--dppp-text);
	line-height: 1.3;
	margin: 0;
}

.dppp-rec-badge {
	display: inline-flex;
	align-items: center;
	font-size: 11.5px;
	font-weight: 600;
	background: #dcfce7;
	color: #15803d;
	padding: 2px 9px;
	border-radius: 999px;
	line-height: 1.3;
	white-space: nowrap;
	flex-shrink: 0;
}

.dppp-option-sub {
	display: block;
	font-size: 12.5px;
	color: #6b7280;
	font-weight: 500;
	line-height: 1.35;
	margin: 0;
	padding: 0;
}

.dppp-full-pay-box .dppp-option-sub-green {
	color: #16a34a;
	font-weight: 600;
}

/* Checkout Order Review Table Breakdown Rows */
tr.dppp-checkout-row th,
tr.dppp-checkout-row td {
	padding-top: 10px !important;
	padding-bottom: 10px !important;
	font-size: 14px;
}

tr.dppp-row-pay-today th,
tr.dppp-row-pay-today td {
	color: #2563eb;
	background: #f8fafc;
}

tr.dppp-row-rest-home th,
tr.dppp-row-rest-home td {
	color: #111827;
}

tr.dppp-row-full-discount th,
tr.dppp-row-full-discount td {
	color: #16a34a;
	font-weight: 600;
}

/* Preset Layout Variations — All Enforce Single-Column Full-Width Rows */
.dppp-payment-options-card .dppp-option-boxes {
	display: flex !important;
	flex-direction: column !important;
	grid-template-columns: 1fr !important;
}

.dppp-layout-compact {
	padding: 12px;
}

.dppp-layout-modern_v2 {
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
	border: none;
}

.dppp-layout-high_contrast {
	background: #000000;
	color: #ffffff;
	border: 2px solid #ffffff;
}

.dppp-layout-high_contrast .dppp-card-heading,
.dppp-layout-high_contrast .dppp-option-title {
	color: #ffffff;
}

.dppp-layout-high_contrast .dppp-option-box {
	background: #111827;
	border-color: #374151;
	color: #f3f4f6;
}

/* Responsive Tablet & Mobile Adjustments */
@media (max-width: 560px) {
	.dppp-payment-options-card {
		padding: 14px 12px;
		margin: 12px 0 16px;
	}

	.dppp-option-boxes {
		gap: 12px;
	}

	.dppp-option-box {
		padding: 13px 14px;
	}

	.dppp-option-box.dppp-full-pay-box.has-discount-pill {
		margin-top: 8px;
		padding-top: 20px;
		padding-bottom: 13px;
	}

	.dppp-full-discount-pill {
		padding: 3px 22px;
		min-width: 132px;
		max-width: calc(100% - 28px);
		font-size: 13px;
	}
}

@media (max-width: 360px) {
	.dppp-option-title-row {
		flex-wrap: wrap;
		row-gap: 4px;
	}
}
