/* BWD Offers: price notes, basket progress and the popup. Black and white, inherits the theme font. */

.bwdo-price-note {
	display: block;
	width: fit-content;
	margin-top: 6px;
	padding: 2px 10px;
	border-radius: 999px;
	background: #e6f6ec;
	border: 1px solid #b7e4c7;
	color: #14663b;
	font-size: 0.78em;
	font-weight: 600;
	line-height: 1.7;
}

.bwdo-progress {
	margin: 0 0 12px;
	padding: 10px 14px;
	border: 1px solid #1a1a1a;
	background: #fff;
	color: #1a1a1a;
	font-weight: 600;
	font-variant-numeric: lining-nums tabular-nums;
}

.bwdo-progress-blocks {
	margin-bottom: 16px;
}

.bwdo-overlay[hidden] {
	display: none !important;
}

.bwdo-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 15, 20, 0.55);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	padding: 20px;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.bwdo-overlay.is-open {
	opacity: 1;
}

.bwdo-modal {
	position: relative;
	background: #fff;
	color: #1a1a1a;
	max-width: 440px;
	width: 100%;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	padding: 40px 32px 32px;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	text-align: center;
	font-family: inherit;
	transform: translateY(10px);
	transition: transform 0.3s ease;
}

.bwdo-overlay.is-open .bwdo-modal {
	transform: translateY(0);
}

.bwdo-modal:focus {
	outline: none;
}

.bwdo-close {
	position: absolute;
	top: 10px;
	right: 12px;
	background: none;
	border: 0;
	font-size: 28px;
	line-height: 1;
	color: #666;
	cursor: pointer;
	padding: 6px 10px;
	border-radius: 6px;
}

.bwdo-close:hover,
.bwdo-close:focus-visible {
	color: #1a1a1a;
	background: #f3f3f3;
}

.bwdo-close:focus-visible {
	outline: 2px solid #1a1a1a;
	outline-offset: 2px;
}

.bwdo-eyebrow {
	margin: 0 0 12px;
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #666;
	font-weight: 600;
}

.bwdo-title {
	margin: 0 0 10px;
	font-size: 30px;
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.bwdo-kicker {
	margin: 0 0 14px;
	font-size: 19px;
	line-height: 1.25;
	font-weight: 600;
}

.bwdo-text {
	margin: 0 0 20px;
	font-size: 16px;
	line-height: 1.5;
	color: #444;
}

.bwdo-badge {
	display: inline-block;
	margin: 0 0 24px;
	padding: 10px 20px;
	border: 2px dashed #1a1a1a;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* Deliberately specific with the colour forced: themes set their own a:hover
   colour, which washed out the button text in the GANNI30 popup. */
.bwdo-overlay .bwdo-modal a.bwdo-cta,
.bwdo-overlay .bwdo-modal a.bwdo-cta:visited {
	display: inline-block;
	background: #1a1a1a;
	color: #fff !important;
	text-decoration: none !important;
	padding: 14px 32px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 15px;
	letter-spacing: 0.01em;
	transition: background 0.15s ease, box-shadow 0.15s ease;
}

.bwdo-overlay .bwdo-modal a.bwdo-cta:hover,
.bwdo-overlay .bwdo-modal a.bwdo-cta:focus,
.bwdo-overlay .bwdo-modal a.bwdo-cta:active {
	background: #3d3d3d;
	color: #fff !important;
	text-decoration: none !important;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.bwdo-overlay .bwdo-modal a.bwdo-cta:focus-visible {
	outline: 2px solid #1a1a1a;
	outline-offset: 3px;
}

.bwdo-fine {
	margin: 22px 0 0;
	font-size: 11.5px;
	line-height: 1.5;
	color: #666;
}

@media (max-width: 480px) {
	.bwdo-modal {
		padding: 36px 22px 26px;
	}

	.bwdo-title {
		font-size: 26px;
	}

	.bwdo-kicker {
		font-size: 17px;
	}
}

/* Coupon link toast (assets/js/bwd-offers-link.js). */
.bwdo-toast {
	position: fixed;
	z-index: 100000;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	max-width: calc(100% - 32px);
	padding: 12px 18px;
	background: #000;
	color: #fff;
	font-size: 14px;
	line-height: 1.4;
	border-radius: 4px;
	text-align: center;
}

@media (prefers-reduced-motion: reduce) {
	.bwdo-overlay,
	.bwdo-modal {
		transition: none;
	}
}
