/* Small site-wide CSS fixes (version in file name: the site strips ?ver from CSS) */

/* No white gap between the bottom banner (.wdn-second-slider) and the footer.
   The gap came from the footer wrapper's 40px top margin, an empty 1px divider and the footer's 30px top margin.
   Only applies when that banner sits right above the footer; other pages keep their spacing. */
.wdn-second-slider ~ section:has(> #footercontent) { margin-top: 0 !important; }
.wdn-second-slider ~ section:has(> #footercontent) > .container-fluid:first-child { display: none; }
.wdn-second-slider ~ section:has(> #footercontent) > #footercontent { margin-top: 0 !important; }
.wdn-second-slider { margin-bottom: 0 !important; }

/* Wishlist popup: size to its content instead of a near full-screen white panel.
   The theme put the white background on the dialog wrapper, which Bootstrap stretches to the screen height. */
.wdn-wishlist .modal-dialog.modal-dialog-centered {
	background: transparent !important;
	height: auto !important;
	min-height: calc(100% - 3.5rem);
	margin: 1.75rem auto !important;
	justify-content: center; /* theme sets flex-direction: column, so centre on this axis */
}
.wdn-wishlist .modal-dialog-centered .modal-content {
	background: #fff;
	border: 0;
	border-radius: 0;
	max-height: calc(100vh - 3.5rem);
	overflow: hidden;
}
.wdn-wishlist .modal-dialog-centered .modal-content .modal-body {
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}
@media (max-width: 767px) {
	.wdn-wishlist .modal-dialog.modal-dialog-centered {
		max-width: none !important;
		width: auto !important;
		min-height: calc(100% - 1.5rem);
		margin: .75rem !important;
	}
	.wdn-wishlist .modal-dialog-centered .modal-content { max-height: calc(100vh - 1.5rem); }
}
