body.cpbu-lock {
	overflow: hidden;
}

.cpbu-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	opacity: 0;
	transition: opacity 0.2s ease;
	font-family: inherit;
}

.cpbu-modal.cpbu-open {
	opacity: 1;
}

.cpbu-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.65);
	backdrop-filter: blur(2px);
}

.cpbu-card:focus {
	outline: none;
}

.cpbu-card {
	position: relative;
	width: 100%;
	max-width: 640px;
	max-height: 92vh;
	box-sizing: border-box;
	overflow-x: hidden;
	overflow-y: auto;
	background: #fff;
	color: #1f2937;
	border-radius: 16px;
	padding: 32px 28px 24px;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
	text-align: center;
	transform: translateY(16px) scale(0.97);
	transition: transform 0.25s ease;
}

.cpbu-open .cpbu-card {
	transform: none;
}

.cpbu-close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #6b7280;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

.cpbu-close:hover {
	background: #f3f4f6;
	color: #111827;
}

.cpbu-badge {
	display: inline-block;
	background: linear-gradient(135deg, #16a34a, #22c55e);
	color: #fff;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 5px 14px;
	border-radius: 999px;
	margin-bottom: 12px;
}

.cpbu-headline {
	margin: 0 0 8px;
	font-size: 24px;
	line-height: 1.25;
	color: #111827;
}

.cpbu-message {
	margin: 0 0 18px;
	color: #4b5563;
	font-size: 15px;
}

.cpbu-items {
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	text-align: left;
}

.cpbu-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	margin: 0;
	border-bottom: 1px solid #f1f5f9;
}

.cpbu-item:last-child {
	border-bottom: 0;
}

.cpbu-card *,
.cpbu-card *::before,
.cpbu-card *::after {
	box-sizing: border-box;
}

.cpbu-thumb {
	flex: 0 0 48px;
}

.cpbu-thumb img {
	display: block;
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 8px;
}

.cpbu-name {
	flex: 1 1 auto;
	min-width: 0;
	overflow-wrap: anywhere;
	font-weight: 600;
	font-size: 14px;
}

.cpbu-price {
	flex: 0 0 auto;
	white-space: nowrap;
	text-align: right;
	font-size: 14px;
}

.cpbu-price del,
.cpbu-total del {
	color: #9ca3af;
	margin-right: 6px;
	font-weight: 400;
}

.cpbu-price ins,
.cpbu-total ins {
	text-decoration: none;
	font-weight: 700;
	color: #15803d;
}

.cpbu-total {
	gap: 12px;
	flex-wrap: wrap;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 14px;
	margin-bottom: 10px;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 12px;
	font-weight: 600;
}

.cpbu-total ins {
	font-size: 18px;
}

.cpbu-note {
	margin: 0 0 14px;
	font-size: 12px;
	color: #6b7280;
}

.cpbu-error {
	margin: 0 0 12px;
	padding: 8px 12px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 8px;
	color: #b91c1c;
	font-size: 14px;
}

.cpbu-error[hidden] {
	display: none;
}

.cpbu-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cpbu-btn {
	display: block;
	width: 100%;
	border: 0;
	border-radius: 10px;
	padding: 14px 18px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	text-align: center;
	transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.cpbu-btn:disabled {
	opacity: 0.7;
	cursor: default;
}

.cpbu-btn-accept {
	background: #16a34a;
	color: #fff;
	box-shadow: 0 6px 16px rgba(22, 163, 74, 0.35);
}

.cpbu-btn-accept:hover:not(:disabled) {
	background: #15803d;
	transform: translateY(-1px);
}

.cpbu-btn-accept.cpbu-loading {
	position: relative;
	color: transparent;
}

.cpbu-btn-accept.cpbu-loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 18px;
	margin: -9px 0 0 -9px;
	border: 2px solid #fff;
	border-top-color: transparent;
	border-radius: 50%;
	animation: cpbu-spin 0.7s linear infinite;
}

.cpbu-btn-decline {
	background: transparent;
	color: #6b7280;
	font-weight: 500;
	font-size: 14px;
	padding: 8px;
}

.cpbu-btn-decline:hover:not(:disabled) {
	color: #111827;
	text-decoration: underline;
}

@keyframes cpbu-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 480px) {
	.cpbu-card {
		padding: 28px 16px 18px;
	}

	.cpbu-headline {
		font-size: 20px;
	}
}
