.dpc-banner {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 20px 28px;
	background: var(--dpc-bg, #ffffff);
	border-radius: var(--dpc-radius, 16px);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
	color: #222222;
	font-size: 14px;
	line-height: 1.55;
	z-index: 99999;
}

.dpc-banner *,
.dpc-banner *::before,
.dpc-banner *::after {
	box-sizing: border-box;
}

.dpc-banner.is-fixed {
	position: fixed;
	left: 24px;
	right: 24px;
	bottom: 24px;
}

.dpc-banner:not(.is-fixed) {
	position: relative;
	margin: 16px auto;
	max-width: 1200px;
}

.dpc-banner__check {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1 1 auto;
	min-width: 0;
	cursor: pointer;
	margin: 0;
}

.dpc-banner__checkbox {
	appearance: none;
	-webkit-appearance: none;
	width: 18px;
	height: 18px;
	margin: 0;
	flex-shrink: 0;
	border: 1px solid var(--dpc-btn-bg, #1a2744);
	border-radius: 2px;
	background: #ffffff;
	cursor: pointer;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.dpc-banner__checkbox:checked {
	background: var(--dpc-btn-bg, #1a2744);
	border-color: var(--dpc-btn-bg, #1a2744);
}

.dpc-banner__checkbox:checked::after {
	content: "";
	width: 5px;
	height: 9px;
	margin-top: -1px;
	border: solid #ffffff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.dpc-banner__text {
	flex: 1 1 auto;
	min-width: 0;
}

.dpc-banner__text p {
	margin: 0;
}

.dpc-banner__text p + p {
	margin-top: 0.5em;
}

.dpc-banner__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.dpc-banner__btn {
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	border: 1px solid transparent;
	padding: 10px 28px;
	font-size: 13px;
	font-weight: 700;
	font-family: inherit;
	letter-spacing: 0.04em;
	white-space: nowrap;
	line-height: 1.3;
	color: #ffffff;
	background: var(--dpc-btn-bg, #1a2744);
	border-color: var(--dpc-btn-bg, #1a2744);
	border-radius: var(--dpc-btn-radius, 999px);
	transition: opacity 0.15s ease;
}

.dpc-banner__btn p {
	margin: 0;
	display: inline;
}

.dpc-banner__btn br {
	display: none;
}

.dpc-banner__btn:hover {
	opacity: 0.88;
}

.dpc-banner__btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.dpc-modal[hidden] {
	display: none !important;
}

.dpc-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.dpc-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(40, 40, 40, 0.55);
}

.dpc-modal__box {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 560px;
	background: #ffffff;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
	padding: 36px 40px 28px;
}

.dpc-modal__close {
	position: absolute;
	top: -14px;
	right: -14px;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--dpc-btn-bg, #1a2744);
	color: #ffffff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.dpc-modal__close:hover {
	opacity: 0.88;
}

.dpc-modal__body {
	color: #222222;
	font-size: 15px;
	line-height: 1.6;
}

.dpc-modal__body p {
	margin: 0;
}

.dpc-modal__body p + p {
	margin-top: 0.6em;
}

.dpc-modal__footer {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #e5e5e5;
	text-align: center;
}

.dpc-modal__btn {
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	border: 1px solid transparent;
	padding: 12px 40px;
	font-size: 13px;
	font-weight: 700;
	font-family: inherit;
	letter-spacing: 0.04em;
	color: #ffffff;
	background: var(--dpc-btn-bg, #1a2744);
	border-color: var(--dpc-btn-bg, #1a2744);
	border-radius: var(--dpc-btn-radius, 999px);
	transition: opacity 0.15s ease;
}

.dpc-modal__btn p {
	margin: 0;
	display: inline;
}

.dpc-modal__btn:hover {
	opacity: 0.88;
}

@media (max-width: 768px) {
	.dpc-banner {
		flex-direction: column;
		align-items: stretch;
		padding: 16px;
		gap: 16px;
	}

	.dpc-banner.is-fixed {
		left: 12px;
		right: 12px;
		bottom: 12px;
	}

	.dpc-banner__actions {
		flex-direction: column;
		width: 100%;
	}

	.dpc-banner__btn {
		width: 100%;
		white-space: normal;
		text-align: center;
	}

	.dpc-modal__box {
		padding: 28px 20px 20px;
	}

	.dpc-modal__close {
		top: -12px;
		right: 8px;
	}
}
