/* PDP purchase group — Buy It Now, Pay Later badge, payment icons, modal.
   Ported from gucci-child, retuned to this storefront's tokens. */

/* ── Buy It Now ───────────────────────────────────────────────────────────── */

/* Add to Cart carries a 12px bottom margin of its own; the two buttons read as
   one control pair, so tighten the gap only when Buy It Now actually follows. */
.mb-btn-add:has( + .mb-btn-buynow ) {
	margin-bottom: 6px;
}

.mb-btn-buynow {
	display: block;
	width: 100%;
	padding: 15px 24px;
	margin-top: 0;
	background: transparent;
	border: 1.5px solid var(--mb-black, #111);
	color: var(--mb-black, #111);
	font-family: var(--mb-font-body, sans-serif);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .2s, color .2s;
}

.mb-btn-buynow:hover:not(:disabled) {
	background: var(--mb-black, #111);
	color: var(--mb-white, #fff);
}

.mb-btn-buynow:disabled {
	opacity: .6;
	cursor: default;
}

/* ── Accepted payment icons ───────────────────────────────────────────────── */

.mb-pdp__payments {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 4px;
	margin: 2px 0 0;
}

.mb-pdp__pay {
	display: inline-flex;
	line-height: 0;
}

.mb-pdp__pay svg {
	display: block;
	width: 40px;
	height: 40px;
}

/* ── "Buy now, pay later" badge ───────────────────────────────────────────── */

.mb-pdp__paylater {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 7px;
	margin: 10px 0 0;
	font-family: var(--mb-font-body, sans-serif);
	font-size: 12px;
	letter-spacing: .03em;
	line-height: 1.35;
	color: var(--mb-gray-500, #777);
}

.mb-pdp__paylater-mark {
	flex-shrink: 0;
	width: auto;
	height: 15px;
}

.mb-pdp__paylater-brand {
	margin-right: 1px;
	font-weight: 700;
	font-style: italic;
}

.mb-pdp__paylater-brand .mb-pp-a { color: #003087; }
.mb-pdp__paylater-brand .mb-pp-b { color: #0070e0; }

.mb-pdp__paylater-learn {
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	color: var(--mb-gray-500, #777);
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.mb-pdp__paylater-learn:hover { color: #0070e0; }

/* ── Pay Later modal ──────────────────────────────────────────────────────── */

html.mb-paylater-open { overflow: hidden; }

.mb-paylater-modal[hidden] { display: none; }

.mb-paylater-modal {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.mb-paylater-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(17, 17, 17, .55);
}

.mb-paylater-modal__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 440px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	padding: 30px 28px 24px;
	border-radius: 10px;
	background: var(--mb-white, #fff);
	box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
	font-family: var(--mb-font-body, sans-serif);
	outline: none;
}

.mb-paylater-modal__close {
	position: absolute;
	top: 10px;
	right: 12px;
	padding: 4px 8px;
	border: 0;
	background: none;
	font-size: 26px;
	line-height: 1;
	color: var(--mb-gray-500, #777);
	cursor: pointer;
}

.mb-paylater-modal__close:hover { color: var(--mb-black, #111); }

.mb-paylater-modal__brand {
	display: flex;
	align-items: center;
	gap: 7px;
}

.mb-paylater-modal__brand .mb-pdp__paylater-mark { width: auto; height: 22px; }

.mb-paylater-modal__brand .mb-pdp__paylater-brand {
	font-size: 17px;
	font-weight: 700;
	font-style: italic;
}

.mb-paylater-modal__title {
	margin: 14px 0 6px;
	font-size: 22px;
	font-weight: 700;
	color: var(--mb-black, #111);
}

.mb-paylater-modal__sub {
	margin: 0 0 20px;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--mb-gray-700, #444);
}

.mb-paylater-modal__options {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.mb-paylater-opt {
	padding: 15px 16px;
	border: 1px solid var(--mb-gray-100, #e0e0e0);
	border-radius: 8px;
}

.mb-paylater-opt__badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 4px;
	background: #003087;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .01em;
}

.mb-paylater-opt__amount {
	margin: 11px 0 4px;
	font-size: 15px;
	font-weight: 600;
	color: var(--mb-black, #111);
}

.mb-paylater-opt__desc {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--mb-gray-700, #444);
}

.mb-paylater-modal__legal {
	margin: 18px 0 0;
	font-size: 11px;
	line-height: 1.5;
	color: var(--mb-gray-400, #999);
}
