/* Free-shipping products: the "See more" popup (MD-456). */

.mdfsp-popup {
	--mdfsp-navy: #1f3566;
	--mdfsp-blue: #3150c8;
	--mdfsp-line: #e3e8f3;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-height: 0;
	background: #fff;
	color: var(--mdfsp-navy);
}

.mdfsp-popup__head {
	display: flex;
	flex: 0 0 auto;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 22px 24px 14px;
	border-bottom: 1px solid var(--mdfsp-line);
}

.mdfsp-popup .mdfsp-popup__title {
	margin: 0;
	color: var(--mdfsp-navy);
	font-family: inherit;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
}

.mdfsp-popup__subtitle {
	margin: 4px 0 0;
	color: #4a5a7a;
	font-size: 14px;
	line-height: 1.4;
}

.mdfsp-popup__close {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: -6px -8px 0 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--mdfsp-navy);
	cursor: pointer;
}

.mdfsp-popup__close:hover,
.mdfsp-popup__close:focus-visible {
	color: var(--mdfsp-blue);
}

.mdfsp-popup__list {
	flex: 1 1 auto;
	min-height: 0;
	margin: 0;
	padding: 0 24px;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	list-style: none;
}

.mdfsp-popup__item {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 8px 0;
	border-bottom: 1px solid #edf0f6;
}

.mdfsp-popup__item:last-child {
	border-bottom: 0;
}

.mdfsp-popup__info {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
}

.mdfsp-popup .mdfsp-popup__name {
	color: var(--mdfsp-navy);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
}

.mdfsp-popup .mdfsp-popup__name:hover,
.mdfsp-popup .mdfsp-popup__name:focus-visible {
	color: var(--mdfsp-blue);
	text-decoration: underline;
}

.mdfsp-popup__price {
	color: var(--mdfsp-blue);
	font-size: 14px;
	font-weight: 700;
}

.mdfsp-popup__price del {
	display: none;
}

.mdfsp-popup__price ins {
	text-decoration: none;
}

.mdfsp-popup__empty,
.mdfsp-popup__status {
	margin: 0;
	padding: 32px 24px;
	color: #4a5a7a;
	font-size: 14px;
	text-align: center;
}

.mdfsp-popup__status {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.mdfsp-popup--state .mdfsp-popup__head {
	padding-bottom: 0;
	border-bottom: 0;
}

.mdfsp-popup__foot {
	flex: 0 0 auto;
	padding: 16px 24px;
	border-top: 1px solid var(--mdfsp-line);
	text-align: center;
}

.mdfsp-popup__view-all {
	color: var(--mdfsp-blue);
	font-size: 14px;
	font-weight: 700;
	text-decoration: underline;
}

.mdfsp-spinner {
	width: 28px;
	height: 28px;
	border: 3px solid #d7deef;
	border-top-color: var(--mdfsp-navy);
	border-radius: 50%;
	animation: mdfsp-spin 0.8s linear infinite;
}

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

/* Modal (cart, checkout, product page); above the theme's mobile checkout drawer (10040/10050).
   The theme styles every .modal / .modal-content (dark overlay, navy padded box), so those
   are reset here. */
.modal.mdfsp-modal {
	z-index: 10070;
	background-color: transparent;
}

body.mdfsp-modal-open .modal-backdrop {
	z-index: 10060;
	background-color: #1f3566;
}

.mdfsp-modal .mdfsp-modal__dialog {
	max-width: 560px;
}

.mdfsp-modal .mdfsp-modal__content {
	width: 100%;
	height: auto;
	max-height: min(680px, calc(100vh - 3.5rem));
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 4px;
	background-color: #fff;
	box-shadow: 0 20px 50px rgba(7, 26, 61, 0.25);
}

@media (min-width: 768px) {
	.mdfsp-modal .mdfsp-popup__info {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
	}

	.mdfsp-modal .mdfsp-popup__price {
		flex: 0 0 auto;
		font-size: 15px;
	}
}

/* Phones: the modal is a panel from the bottom */
@media (max-width: 767.98px) {
	.mdfsp-modal .mdfsp-modal__dialog {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		display: block;
		width: auto;
		max-width: none;
		min-height: 0;
		margin: 0;
	}

	.mdfsp-modal.fade .mdfsp-modal__dialog {
		transform: translateY(100%);
		transition: transform 0.25s ease-out;
	}

	.mdfsp-modal.show .mdfsp-modal__dialog {
		transform: none;
	}

	.mdfsp-modal .mdfsp-modal__content {
		max-height: calc(100vh - 72px);
		max-height: calc(100dvh - 72px);
		padding-bottom: env(safe-area-inset-bottom);
		border-radius: 12px 12px 0 0;
	}

	.mdfsp-modal .mdfsp-popup__head {
		padding: 18px 18px 12px;
	}

	.mdfsp-modal .mdfsp-popup__list {
		padding: 0 18px;
	}
}

/* Quick cart: a sheet inside the off-canvas panel, under its header */
.mdfsp-qc-sheet {
	position: absolute;
	z-index: 5;
	inset: 0;
	background: rgba(31, 53, 102, 0.45);
	opacity: 0;
	transition: opacity 0.2s ease-out;
}

.mdfsp-qc-sheet.is-open {
	opacity: 1;
}

.mdfsp-qc-sheet__panel {
	position: absolute;
	top: calc(var(--mdfsp-sheet-top, 72px) + 12px);
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 10px 10px 0 0;
	background: #fff;
	box-shadow: 0 -8px 24px rgba(7, 26, 61, 0.18);
	outline: 0;
	transform: translateY(24px);
	transition: transform 0.2s ease-out;
}

.mdfsp-qc-sheet.is-open .mdfsp-qc-sheet__panel {
	transform: none;
}

.mdfsp-qc-sheet .mdfsp-popup__head {
	padding: 18px 18px 12px;
}

.mdfsp-qc-sheet .mdfsp-popup__title {
	font-size: 17px;
}

.mdfsp-qc-sheet .mdfsp-popup__subtitle {
	font-size: 13px;
}

.mdfsp-qc-sheet .mdfsp-popup__list {
	padding: 0 18px;
}

@media (prefers-reduced-motion: reduce) {
	.mdfsp-qc-sheet,
	.mdfsp-qc-sheet__panel,
	.mdfsp-modal.fade .mdfsp-modal__dialog {
		transition: none;
	}

	.mdfsp-spinner {
		animation-duration: 2s;
	}
}
