/*
 * Provjera punoljetnosti m-Građani — frontend.
 * Namjerno visoka specifičnost i ciljani !important: teme često globalno stiliziraju
 * naslove, gumbe, linkove i poruke na checkoutu.
 */

.dcpp-box,
.dcpp-notice,
.dcpp-product-notice,
.dcpp-alert {
	box-sizing: border-box;
	font-family: inherit;
	letter-spacing: normal;
	text-align: left;
}

.dcpp-box *,
.dcpp-notice *,
.dcpp-product-notice *,
.dcpp-alert * {
	box-sizing: border-box;
}

/* ---------------------------------------------------------------- Blok */

.dcpp-box {
	display: block;
	width: 100%;
	flex: 0 0 100%;
	max-width: 100%;
	margin: 0 0 32px;
	padding: 24px 26px;
	background: #fff !important;
	color: #000 !important;
	border: 1px solid #000;
	border-radius: 0;
	font-size: 15px;
	line-height: 1.55;
}

.dcpp-box--empty {
	display: none !important;
}

.dcpp-box--compact {
	margin: 0 0 24px;
	padding: 16px 18px;
}

.dcpp-box.dcpp-state-verified {
	padding: 14px 18px;
	border-color: #1d6b38;
	background: #f3faf5 !important;
}

.dcpp-box.dcpp-attention {
	animation: dcpp-pulse 1.2s ease-out 1;
}

@keyframes dcpp-pulse {
	0% { box-shadow: 0 0 0 0 rgba(179, 38, 30, .45); }
	100% { box-shadow: 0 0 0 14px rgba(179, 38, 30, 0); }
}

.dcpp-box__head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 12px;
}

.dcpp-badge {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #000;
	color: #fff !important;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}

.dcpp-badge--sm {
	width: 30px;
	height: 30px;
	font-size: 11px;
}

.dcpp-box .dcpp-box__title {
	color: #000 !important;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	text-transform: none;
}

.dcpp-box p,
.dcpp-box li {
	color: #000 !important;
	font-size: 15px;
	line-height: 1.55;
}

.dcpp-box p {
	margin: 0 0 12px;
	padding: 0;
}

.dcpp-box .dcpp-box__small,
.dcpp-box .dcpp-box__small * {
	color: #4c4c4c !important;
	font-size: 13px;
}

.dcpp-box .dcpp-box__legal {
	font-weight: 600;
	margin-bottom: 0;
}

.dcpp-box .dcpp-box__privacy {
	margin-bottom: 4px;
}

.dcpp-box .dcpp-box__actions {
	margin: 16px 0;
}

.dcpp-box ol.dcpp-steps {
	margin: 0 0 14px 20px;
	padding: 0;
	list-style: decimal outside;
}

.dcpp-box ol.dcpp-steps li {
	margin: 0 0 4px;
	padding: 0;
	list-style: decimal outside;
}

.dcpp-box ol.dcpp-steps li::before {
	content: none;
	display: none;
}

/* ---------------------------------------------------------------- Gumbi */

.dcpp-box a.dcpp-btn,
.dcpp-box button.dcpp-btn,
.dcpp-alert a.dcpp-btn {
	display: inline-block;
	width: 340px;
	max-width: 100%;
	min-height: 0;
	margin: 0;
	padding: 14px 28px;
	background: var(--dcpp-btn-bg, #000) !important;
	color: var(--dcpp-btn-fg, #fff) !important;
	border: 1px solid var(--dcpp-btn-bg, #000) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 25px;
	text-align: center;
	text-wrap: balance;
	text-decoration: none !important;
	text-transform: none;
	white-space: normal;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}

.dcpp-box a.dcpp-btn:hover,
.dcpp-box a.dcpp-btn:focus,
.dcpp-box button.dcpp-btn:hover,
.dcpp-box button.dcpp-btn:focus,
.dcpp-alert a.dcpp-btn:hover,
.dcpp-alert a.dcpp-btn:focus {
	background: var(--dcpp-btn-fg, #fff) !important;
	color: var(--dcpp-btn-bg, #000) !important;
}

.dcpp-box a.dcpp-btn:focus-visible,
.dcpp-box a.dcpp-link:focus-visible,
.dcpp-box button:focus-visible,
.dcpp-alert a:focus-visible,
.dcpp-alert button:focus-visible {
	outline: 2px solid var(--dcpp-accent, #99552b) !important;
	outline-offset: 2px;
}

.dcpp-box button.dcpp-link,
.dcpp-alert button.dcpp-link {
	display: inline;
	width: auto !important;
	min-width: 0 !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	background: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: var(--dcpp-accent, #99552b) !important;
	font: inherit !important;
	font-weight: 600 !important;
	line-height: inherit !important;
	text-align: left;
	text-decoration: underline !important;
	text-transform: none !important;
	cursor: pointer;
}

.dcpp-box a.dcpp-link,
.dcpp-box a.dcpp-link:visited {
	color: var(--dcpp-accent, #99552b) !important;
	font-weight: 600;
	text-decoration: underline !important;
	background: none !important;
}

.dcpp-box a.dcpp-link:hover,
.dcpp-box button.dcpp-link:hover,
.dcpp-alert button.dcpp-link:hover {
	background: none !important;
	color: #000 !important;
}

.dcpp-box button[disabled],
.dcpp-alert button[disabled] {
	opacity: .6;
	cursor: wait;
}

/* ---------------------------------------------------------------- Stanja */

.dcpp-verified {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #1d5e33 !important;
	font-size: 15px;
	line-height: 1.4;
}

.dcpp-verified strong {
	color: #1d5e33 !important;
	font-weight: 700;
}

.dcpp-verified__until {
	color: #2f5d3d !important;
	font-size: 13px;
	white-space: nowrap;
}

.dcpp-check {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #1d6b38;
	color: #fff !important;
}

.dcpp-box .dcpp-pending {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
}

.dcpp-spinner {
	display: inline-block;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	border: 2px solid #c9c9c9;
	border-top-color: #000;
	border-radius: 50%;
	animation: dcpp-spin .8s linear infinite;
}

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

/* ---------------------------------------------------------------- Poruke */

.dcpp-alert {
	display: block;
	margin: 0 0 14px;
	padding: 12px 16px;
	border-left: 4px solid #b3261e;
	background: #fcf1f0 !important;
	color: #5f1410 !important;
	font-size: 15px;
	line-height: 1.5;
}

.dcpp-alert p {
	margin: 0 0 8px;
	color: #5f1410 !important;
}

.dcpp-alert p:last-child {
	margin-bottom: 0;
}

.dcpp-global {
	max-width: 1040px;
	margin: 0 auto 24px;
	outline: none;
}

.dcpp-global .dcpp-alert__actions {
	margin-top: 10px;
}

/* ---------------------------------------------------------------- Košarica / proizvod */

.dcpp-notice,
.dcpp-product-notice {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 20px;
	padding: 12px 16px;
	background: #f7f5f2 !important;
	border-left: 4px solid var(--dcpp-accent, #99552b);
	color: #000 !important;
	font-size: 14px;
	line-height: 1.5;
}

.dcpp-product-notice {
	margin: 16px 0;
}

.dcpp-notice__text,
.dcpp-product-notice__text,
.dcpp-product-notice__text strong {
	color: #000 !important;
}

.dcpp-box .dcpp-box__again a.dcpp-link {
	display: inline-block;
	padding: 12px 0;
	font-size: 15px !important;
}

.dcpp-orderpay {
	margin: 0 0 24px;
}

/* Trajna live regija za čitače ekrana (vizualno skrivena). */
.dcpp-sr {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

@media (min-width: 481px) {
	.dcpp-box a.dcpp-btn,
	.dcpp-box button.dcpp-btn,
	.dcpp-alert a.dcpp-btn {
		width: auto;
		min-width: 340px;
	}
}

@media (max-width: 768px) {
	/* Ciljevi dodira ≥ 44 px bez promjene ritma redaka. */
	.dcpp-box button.dcpp-link,
	.dcpp-alert button.dcpp-link {
		display: inline-block;
		padding: 11px 0 !important;
		margin: -11px 0 !important;
	}
}

/* ---------------------------------------------------------------- Mobitel */

@media (max-width: 480px) {
	.dcpp-box {
		padding: 18px 16px;
	}

	.dcpp-box a.dcpp-btn,
	.dcpp-box button.dcpp-btn,
	.dcpp-alert a.dcpp-btn {
		width: 100%;
	}

	.dcpp-verified {
		align-items: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dcpp-spinner,
	.dcpp-box.dcpp-attention {
		animation: none;
	}
}
