:root {
	--zdcp-green: #0a2a20;
	--zdcp-green-2: #113a2d;
	--zdcp-gold: #d8b257;
	--zdcp-gold-soft: #f0d58e;
	--zdcp-cream: #fffaf0;
	--zdcp-line: rgba(216, 178, 87, .32);
}


/* Use the same heading typography as the active Woodmart design. */
.zdcp-offer__hero h1,
.zdcp-offer-card h2,
.zdcp-rewards__eyebrow,
.zdcp-rewards h3,
.zdcp-rewards__gift strong {
	font-family: var(--wd-title-font, var(--wd-entities-title-font, inherit));
	font-style: var(--wd-title-font-style, normal);
}

.zdcp-rewards__eyebrow,
.zdcp-rewards h3 {
	font-weight: var(--wd-title-font-weight, 700);
}

.zdcp-offer {
	max-width: 1280px;
	margin: 0 auto;
	padding: 38px 20px 60px;
}

.zdcp-offer__hero {
	position: relative;
	padding: 36px;
	margin-bottom: 28px;
	border: 1px solid var(--zdcp-line);
	border-radius: 20px;
	background: linear-gradient(135deg, var(--zdcp-green), var(--zdcp-green-2));
	color: #fff;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
}

.zdcp-offer__hero h1 {
	max-width: 780px;
	margin: 0 0 12px;
	color: var(--zdcp-gold-soft);
	font-size: clamp(34px, 5vw, 58px);
	line-height: 1.05;
}

.zdcp-offer__hero > p:not(.zdcp-offer__eyebrow) {
	max-width: 760px;
	font-size: 18px;
	line-height: 1.55;
}

.zdcp-offer__eyebrow,
.zdcp-rewards__eyebrow {
	margin: 0 0 8px;
	color: var(--zdcp-gold);
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.zdcp-offer__timer {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 12px;
	padding: 9px 14px;
	border-radius: 999px;
	background: #b6293b;
	color: #fff;
}

.zdcp-offer__timer.is-expired {
	background: rgba(255,255,255,.14);
}

.zdcp-offer__timer-value {
	font-size: 21px;
	font-variant-numeric: tabular-nums;
}

.zdcp-offer__continue {
	margin-left: 16px !important;
	border-radius: 999px !important;
}

.zdcp-offer__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.zdcp-offer-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid rgba(10, 42, 32, .12);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(10, 42, 32, .08);
}

.zdcp-offer-card__image {
	aspect-ratio: 1.35 / 1;
	background: #f7f4eb;
}

.zdcp-offer-card__image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.zdcp-offer-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 20px;
}

.zdcp-offer-card h2 {
	margin: 0 0 14px;
	font-size: 20px;
	line-height: 1.25;
}

.zdcp-offer-card__prices {
	display: flex;
	align-items: baseline;
	gap: 9px;
	margin-top: auto;
	margin-bottom: 14px;
}

.zdcp-offer-card__prices strong {
	color: #5c7e00;
	font-size: 21px;
}

.zdcp-offer-card__discount {
	color: #d14a3a;
	font-weight: 700;
}

.zdcp-offer-card__prices del {
	color: #6b6b6b;
	opacity: .95;
	text-decoration-color: #6b6b6b;
	text-decoration-thickness: 1.5px;
}

.zdcp-offer-card__add {
	width: 100%;
	min-height: 48px;
	border-radius: 999px !important;
	background: #b4d41e !important;
	color: #17310b !important;
	font-weight: 800 !important;
}

.zdcp-offer-card__add.is-added {
	background: var(--zdcp-green) !important;
	color: #fff !important;
}

.zdcp-offer-card__message {
	min-height: 20px;
	margin: 8px 0 0;
	font-size: 13px;
}

.zdcp-offer-card__message.is-success { color: #3f6d00; }
.zdcp-offer-card__message.is-error { color: #b42318; }

.zdcp-offer__footer {
	padding-top: 30px;
	text-align: center;
}

.zdcp-offer__footer .zdcp-offer__continue {
	margin-left: 0 !important;
}

.zdcp-offer__footer p,
.zdcp-offer__notice {
	opacity: .72;
}

.zdcp-offer__notice,
.zdcp-offer-empty {
	padding: 24px;
	border: 1px solid var(--zdcp-line);
	border-radius: 16px;
	background: #fff;
}

.zdcp-rewards-wrap {
	margin: 18px 0 24px;
}

.zdcp-rewards {
	padding: 20px;
	border: 1px solid rgba(216, 178, 87, .42);
	border-radius: 14px;
	background: linear-gradient(135deg, rgba(216,178,87,.12), rgba(255,255,255,.035));
}

.zdcp-rewards h3 {
	margin: 0 0 5px;
	color: var(--zdcp-gold-soft);
	font-size: 18px;
	line-height: 1.35;
}

.zdcp-rewards__subline {
	margin: 0;
	font-size: 13px;
	opacity: .86;
}

.zdcp-rewards__track {
	position: relative;
	height: 8px;
	margin: 34px 5px 25px;
	border-radius: 999px;
	background: rgba(255,255,255,.12);
}

.zdcp-rewards__fill {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #9bbd18, var(--zdcp-gold));
	transition: width .3s ease;
}

.zdcp-rewards__milestone {
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
}

.zdcp-rewards__milestone i {
	display: block;
	width: 16px;
	height: 16px;
	border: 3px solid var(--zdcp-green);
	border-radius: 50%;
	background: #7f8f76;
	box-shadow: 0 0 0 2px rgba(255,255,255,.35);
}

.zdcp-rewards__milestone.is-done i {
	background: var(--zdcp-gold);
}

.zdcp-rewards__milestone b {
	position: absolute;
	top: 19px;
	left: 50%;
	width: 100px;
	transform: translateX(-50%);
	font-size: 10px;
	text-align: center;
	white-space: nowrap;
}

/* Keep each milestone price together: e.g. “800 Kč”, never “800” / “Kč”. */
.zdcp-rewards__milestone b > span,
.zdcp-rewards__milestone b > em {
	display: block;
}

.zdcp-rewards__milestone b > em {
	font-style: normal;
	white-space: nowrap !important;
}

.zdcp-rewards__milestone b > em .woocommerce-Price-amount,
.zdcp-rewards__milestone b > em bdi,
.zdcp-rewards__milestone b > em .woocommerce-Price-currencySymbol {
	display: inline !important;
	white-space: nowrap !important;
}

.zdcp-rewards__milestone--gift b {
	left: auto;
	right: 0;
	transform: none;
	text-align: right;
}

.zdcp-rewards__labels {
	display: flex;
	justify-content: space-between;
	font-size: 11px;
	opacity: .7;
}

.zdcp-rewards__gift {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid rgba(255,255,255,.1);
	opacity: .72;
}

.zdcp-rewards__gift.is-unlocked {
	opacity: 1;
}

.zdcp-rewards__gift-image {
	width: 58px;
	height: 58px;
	flex: 0 0 58px;
	overflow: hidden;
	border-radius: 10px;
	background: #fff;
}

.zdcp-rewards__gift-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.zdcp-rewards__gift p {
	margin: 2px 0 0;
	font-size: 12px;
}

.zdcp-gift-qty {
	display: inline-block;
	min-width: 28px;
	text-align: center;
}

@media (max-width: 900px) {
	.zdcp-offer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.zdcp-offer__continue { display: block; width: max-content; margin: 16px 0 0 !important; }
}

@media (max-width: 560px) {
	.zdcp-offer { padding-inline: 12px; }
	.zdcp-offer__hero { padding: 24px 20px; }
	.zdcp-offer__grid { grid-template-columns: 1fr; }
	.zdcp-rewards { padding: 16px 14px; }
	.zdcp-rewards__milestone b { font-size: 9px; }
}

/* Keep the final milestone and its label inside the rewards card. */
.zdcp-rewards__milestone.is-end {
	transform: translate(-100%, -50%);
}

.zdcp-rewards__milestone.is-end b {
	left: auto;
	right: 0;
	transform: none;
	text-align: right;
}

/* 3DL-0.1.4: brighter Woodmart-style text and explicit milestone amounts. */
.zdcp-rewards h3,
.zdcp-rewards__gift strong,
.zdcp-rewards__gift p {
	color: #fff;
}

.zdcp-rewards__milestone b {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1px;
	line-height: 1.2;
	color: #fff;
}

.zdcp-rewards__milestone b span,
.zdcp-rewards__milestone b em {
	display: block;
	font-style: normal;
	white-space: nowrap;
}

.zdcp-rewards__milestone b em {
	color: var(--zdcp-gold-soft);
	font-size: 10px;
	font-weight: 700;
}

.zdcp-rewards__milestone--gift b,
.zdcp-rewards__milestone.is-end b {
	align-items: flex-end;
}

.zdcp-rewards__labels {
	justify-content: flex-start;
}


.zdcp-offer-loading {
	display: flex;
	min-height: 180px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 30px;
	border: 1px solid var(--zdcp-line);
	border-radius: 16px;
	background: #fff;
	text-align: center;
}

.zdcp-offer-loading strong {
	font-family: var(--wd-title-font, var(--wd-entities-title-font, inherit));
	font-size: 22px;
}

.zdcp-offer-loading span {
	opacity: .7;
}

/* 3DL-0.1.7: make the secret-offer page visually belong to Zelený Drak. */
body.zdcp-secret-offer-page .main-page-wrapper,
body.zdcp-secret-offer-page .site-content,
body.zdcp-secret-offer-page .content-layout-wrapper,
body.zdcp-secret-offer-page .wd-content-layout,
body.zdcp-secret-offer-page .page-wrapper {
	background-color: var(--wd-alternative-color, var(--zdcp-green)) !important;
}

body.zdcp-secret-offer-page .zdcp-offer-root {
	color: #fff;
}

body.zdcp-secret-offer-page .zdcp-offer {
	padding-top: 34px;
}

body.zdcp-secret-offer-page .zdcp-offer-card {
	border-color: rgba(216, 178, 87, .34);
	box-shadow: 0 12px 34px rgba(0, 0, 0, .22);
}

/* Let Woodmart provide the exact same button styling as everywhere else. */
.zdcp-offer-card__add,
.zdcp-offer__continue,
.zdcp-offer-empty .button {
	border-radius: var(--btn-accented-brd-radius, var(--wd-brd-radius, 0)) !important;
	font-family: inherit !important;
	text-transform: inherit;
}

.zdcp-offer-card__add {
	width: 100%;
	min-height: 48px;
	background-color: var(--btn-accented-bgcolor, var(--wd-primary-color, #d8b257)) !important;
	color: var(--btn-accented-color, #0a2a20) !important;
}

.zdcp-offer-card__add:hover,
.zdcp-offer-card__add:focus {
	background-color: var(--btn-accented-bgcolor-hover, var(--wd-primary-color, #d8b257)) !important;
	color: var(--btn-accented-color-hover, var(--btn-accented-color, #0a2a20)) !important;
}

.zdcp-offer__continue,
.zdcp-offer-empty .button {
	background-color: var(--btn-accented-bgcolor, var(--wd-primary-color, #d8b257)) !important;
	color: var(--btn-accented-color, #0a2a20) !important;
}

.zdcp-offer__continue:hover,
.zdcp-offer__continue:focus,
.zdcp-offer-empty .button:hover,
.zdcp-offer-empty .button:focus {
	background-color: var(--btn-accented-bgcolor-hover, var(--wd-primary-color, #d8b257)) !important;
	color: var(--btn-accented-color-hover, var(--btn-accented-color, #0a2a20)) !important;
}

/* Override the old lime custom button from earlier versions. */
.zdcp-offer-card__add:not(.is-added) {
	background: var(--btn-accented-bgcolor, var(--wd-primary-color, #d8b257)) !important;
}

body.zdcp-secret-offer-page .zdcp-offer__footer,
body.zdcp-secret-offer-page .zdcp-offer__footer p {
	color: rgba(255, 255, 255, .82);
}

body.zdcp-secret-offer-page .zdcp-offer__notice,
body.zdcp-secret-offer-page .zdcp-offer-empty,
body.zdcp-secret-offer-page .zdcp-offer-loading {
	background: rgba(255, 255, 255, .96);
	color: #18271f;
}


/* 3DL-0.1.8: the WooCommerce price inside the gold offer button must stay visible. */
.zdcp-offer-card__add .woocommerce-Price-amount,
.zdcp-offer-card__add .woocommerce-Price-amount bdi,
.zdcp-offer-card__add .woocommerce-Price-currencySymbol {
	color: var(--zdcp-green, #0a2a20) !important;
	font-weight: 900 !important;
	white-space: nowrap !important;
}

.zdcp-offer-card__add:not(.is-added) {
	white-space: nowrap;
}

/* 3DL-0.2.1: milestone badges moved over the product image. */
.zdcp-offer-card__image {
	position: relative;
}

.zdcp-offer-card__unlock {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	max-width: calc(100% - 24px);
	min-height: 34px;
	margin: 0;
	padding: 8px 12px;
	border-radius: 14px;
	font-size: 12px;
	font-weight: 900;
	line-height: 1.25;
	box-shadow: 0 8px 20px rgba(0,0,0,.16);
}

.zdcp-offer-card__unlock.is-empty {
	display: none;
}

.zdcp-offer-card__unlock--shipping {
	background: rgba(10, 42, 32, 0.92);
	color: #fff;
}

.zdcp-offer-card__unlock--gift {
	background: rgba(216, 178, 87, 0.96);
	color: #0a2a20;
}

.zdcp-offer-card__unlock--both {
	background: linear-gradient(90deg, rgba(10,42,32,.96) 0%, rgba(10,42,32,.96) 44%, rgba(216,178,87,.96) 100%);
	color: #fff;
}

@media (max-width: 767px) {
	.zdcp-offer-card__unlock {
		font-size: 11px;
		padding: 7px 10px;
		max-width: calc(100% - 20px);
	}
}

/* 3DL-0.2.1: optional description for a custom gift without a catalog product. */
.zdcp-rewards__gift-description { display:block; margin-top:3px; color:#fff; opacity:.78; font-size:11px; line-height:1.35; }
