.cdbag {
	position: fixed;
	inset: 0;
	z-index: 2147483647;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
	overflow-y: auto;
}
.cdbag *,
.cdbag *::before,
.cdbag *::after { box-sizing: border-box; }

.cdbag__box {
	width: 100%;
	max-width: 440px;
	margin: auto;
	padding: 40px 32px 28px;
	background: var(--cdbag-box, #fff);
	color: var(--cdbag-text, #1a1a1a);
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
	text-align: center;
	font-size: 16px;
	line-height: 1.5;
	animation: cdbag-in .25s ease-out;
}
@keyframes cdbag-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .cdbag__box { animation: none; } }

.cdbag__logo { margin: 0 0 20px; }
.cdbag__logo img { max-width: 180px; max-height: 90px; width: auto; height: auto; display: inline-block; }

.cdbag__title {
	margin: 0 0 10px;
	font-size: 26px;
	line-height: 1.2;
	font-weight: 700;
	color: inherit;
	text-transform: none;
	letter-spacing: normal;
}
.cdbag__msg { margin: 0 0 24px; color: inherit; opacity: .85; }

.cdbag__actions { display: flex; flex-direction: column; gap: 10px; }
.cdbag__actions[hidden] { display: none; }

.cdbag__btn {
	appearance: none;
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 12px 20px;
	border: 2px solid var(--cdbag-accent, #1a1a1a);
	border-radius: 8px;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: opacity .15s, transform .15s;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
}
.cdbag__btn--yes { background: var(--cdbag-accent, #1a1a1a); color: var(--cdbag-accent-text, #fff); }
.cdbag__btn--no  { background: transparent; color: var(--cdbag-text, #1a1a1a); border-color: currentColor; opacity: .75; }
.cdbag__btn:hover { opacity: .9; }
.cdbag__btn:active { transform: scale(.98); }
.cdbag__btn:focus-visible { outline: 3px solid var(--cdbag-accent, #1a1a1a); outline-offset: 3px; }

.cdbag__denied { margin: 8px 0 0; font-weight: 600; }
.cdbag__denied:focus { outline: none; }

.cdbag__note { margin: 24px 0 0; font-size: 13px; opacity: .65; }
.cdbag__note a, .cdbag__msg a, .cdbag__denied a { color: inherit; text-decoration: underline; }

@media (max-width: 480px) {
	.cdbag__box { padding: 32px 20px 22px; }
	.cdbag__title { font-size: 22px; }
}
