﻿/* =========================================================
   MY DOG RUN V2 HEADER - PNG STYLE
   ========================================================= */

.mdr-v2-header {
	width: 100%;
	background: #fff;
	border-bottom: 1px solid #ead7dd;
}

.mdr-v2-header-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 18px 28px 22px 28px;
}

/* Top area */

.mdr-v2-top {
	position: relative;
	min-height: 135px;
}

.mdr-v2-logo {
	text-align: left;
}

	.mdr-v2-logo img {
		display: block;
		height: 130px;
		width: auto;
	}

/* Basket / login */

.mdr-v2-account-links {
	position: absolute;
	top: 8px;
	right: 0;
	text-align: right;
	font-size: 18px;
	line-height: 1.45em;
	font-weight: 500;
}

	.mdr-v2-account-links a {
		display: block;
		color: #17488c;
		text-decoration: none;
	}

		.mdr-v2-account-links a:hover {
			color: #0d3164;
			text-decoration: underline;
		}

	.mdr-v2-account-links span,
	.mdr-v2-account-links .aspNetDisabled {
		display: block;
	}


	/* Basket icon / count ------------------------------------------------------ */

	.mdr-v2-account-links .mdr-v2-basket-link {
		display: flex;
		align-items: center;
		justify-content: flex-end;
		gap: 7px;
		color: #17488c;
		text-decoration: none;
		margin-bottom: 2px;
	}

.mdr-v2-basket-icon-wrap {
	position: relative;
	display: inline-block;
	width: 34px;
	height: 34px;
	flex: 0 0 34px;
}

.mdr-v2-basket-icon {
	display: block;
	width: 34px;
	height: 34px;
	object-fit: contain;
	opacity: 1;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

	.mdr-v2-basket-icon.empty {
		opacity: 0.28;
		filter: grayscale(1);
	}

.mdr-v2-basket-count {
	position: absolute;
	top: -7px;
	right: -8px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 4px;
	box-sizing: border-box;
	border-radius: 999px;
	background: #9a7388;
	color: #fff;
	border: 2px solid #fff;
	font-size: 11px;
	line-height: 1;
	font-weight: 700;
}

.mdr-v2-basket-link:hover .mdr-v2-basket-icon {
	transform: translateY(-1px);
}

.mdr-v2-basket-link:hover .mdr-v2-basket-text {
	text-decoration: underline;
}

@media (max-width: 900px) {
	.mdr-v2-account-links .mdr-v2-basket-link {
		justify-content: center;
	}
}

/* Menu row */

.mdr-v2-menu-row {
	margin-top: 8px;
}

	/* Menu.ascx output */

	.mdr-v2-menu-row .wpf-menu {
		display: block;
		width: 100%;
		min-width: 0;
	}

	.mdr-v2-menu-row .wpf-menu-list {
		display: grid;
		width: 100%;
		box-sizing: border-box;
		grid-template-columns: repeat(6, minmax(0, 1fr));
		gap: 12px;
		align-items: stretch;
		list-style: none;
		margin: 0;
		padding: 0;
	}

	.mdr-v2-menu-row .wpf-menu-item {
		position: relative;
		list-style: none;
		margin: 0;
		padding: 0;
	}

		.mdr-v2-menu-row .wpf-menu-item > a {
			display: flex;
			align-items: center;
			justify-content: center;
			box-sizing: border-box;
			width: 100%;
			min-width: 0;
			min-height: 46px;
			padding: 12px 10px;
			border-radius: 999px;
			background: #17488c;
			color: #ffffff;
			text-align: center;
			text-decoration: none;
			text-transform: uppercase;
			font-size: 14px;
			line-height: 1.1em;
			font-weight: 500;
			letter-spacing: 0.02em;
			transition: background-color 0.2s ease;
		}

			.mdr-v2-menu-row .wpf-menu-item > a:hover {
				background: #0d3164;
				color: #fff;
			}

		/* Current / selected item if added by menu renderer */

		.mdr-v2-menu-row .wpf-menu-item.current > a,
		.mdr-v2-menu-row .wpf-menu-item.active > a,
		.mdr-v2-menu-row .wpf-menu-item.selected > a {
			background: #9a7388;
		}

			.mdr-v2-menu-row .wpf-menu-item.current > a:hover,
			.mdr-v2-menu-row .wpf-menu-item.active > a:hover,
			.mdr-v2-menu-row .wpf-menu-item.selected > a:hover {
				background: #805c70;
			}

	/* Submenus */

	.mdr-v2-menu-row .wpf-submenu {
		display: none;
		position: absolute;
		top: calc(100% + 8px);
		left: 0;
		min-width: 220px;
		background: #ffffff;
		border: 1px solid #ead7dd;
		border-radius: 12px;
		padding: 8px 0;
		margin: 0;
		list-style: none;
		box-shadow: 0 8px 24px rgba(0,0,0,0.14);
		z-index: 1000;
	}

	.mdr-v2-menu-row .wpf-menu-item:hover > .wpf-submenu {
		display: block;
	}

	.mdr-v2-menu-row .wpf-submenu .wpf-menu-item > a {
		min-width: 0;
		border-radius: 0;
		background: #ffffff;
		color: #17488c;
		text-align: left;
		padding: 10px 18px;
		font-size: 14px;
	}

		.mdr-v2-menu-row .wpf-submenu .wpf-menu-item > a:hover {
			background: #fdf0f4;
			color: #0d3164;
		}

/* Mobile */

@media (max-width: 900px) {

	.mdr-v2-header-inner {
		padding: 16px 18px 20px 18px;
	}

	.mdr-v2-top {
		min-height: 0;
		text-align: center;
	}

	.mdr-v2-logo {
		text-align: center;
		width: 100%;
	}

		.mdr-v2-logo img {
			display: block;
			width: auto;
			height: auto;
			max-width: 100%;
			max-height: 105px;
			margin: 0 auto;
			object-fit: contain;
		}

	.mdr-v2-account-links {
		position: static;
		margin-top: 10px;
		text-align: center;
		font-size: 16px;
	}

	.mdr-v2-menu-row {
		margin-top: 18px;
	}

		.mdr-v2-menu-row .wpf-menu-list {
			display: grid !important;
			grid-template-columns: repeat(2, minmax(0, 150px));
			justify-content: center;
			margin-left: auto;
			margin-right: auto;
			gap: 10px 12px;
		}

		.mdr-v2-menu-row .wpf-menu-item {
			width: 100%;
			min-width: 0;
		}

			.mdr-v2-menu-row .wpf-menu-item > a {
				width: 100%;
				min-height: 44px;
				padding: 10px 8px;
				font-size: 12px;
			}

		/* Sophie: Home/Vouchers, How It Works/Book Now, Locations/Login. */
		.mdr-v2-menu-row .wpf-menu-list > .wpf-menu-item:nth-child(1) {
			grid-column: 1;
			grid-row: 1;
		}

		.mdr-v2-menu-row .wpf-menu-list > .wpf-menu-item:nth-child(2) {
			grid-column: 1;
			grid-row: 2;
		}

		.mdr-v2-menu-row .wpf-menu-list > .wpf-menu-item:nth-child(3) {
			grid-column: 1;
			grid-row: 3;
		}

		.mdr-v2-menu-row .wpf-menu-list > .wpf-menu-item:nth-child(4) {
			grid-column: 2;
			grid-row: 1;
		}

		.mdr-v2-menu-row .wpf-menu-list > .wpf-menu-item:nth-child(5) {
			grid-column: 2;
			grid-row: 2;
		}

		.mdr-v2-menu-row .wpf-menu-list > .wpf-menu-item:nth-child(6) {
			grid-column: 2;
			grid-row: 3;
		}
}

@media (max-width: 350px) {
	.mdr-v2-menu-row .wpf-menu-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mdr-v2-menu-row .wpf-menu-item {
		width: 100%;
	}
}


/* =========================================================
   MY DOG RUN V2 FOOTER
   ========================================================= */

.mdr-v2-footer {
	background: #ffffff;
	padding: 44px 20px 38px 20px;
	color: #17488c;
}

.mdr-v2-footer-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	column-gap: 70px;
}

.mdr-v2-footer-contact,
.mdr-v2-footer-links {
	font-size: 1.0em;
}

.mdr-v2-footer-links {
	justify-self: end;
	text-align: right;
	min-width: 220px;
}


.mdr-v2-footer-social {
	align-self: center;
	justify-self: center;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
}

	.mdr-v2-footer-social a {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		text-decoration: none;
	}

	.mdr-v2-footer-social img {
		display: block;
		width: 38px;
		height: 38px;
		object-fit: contain;
		transition: transform 0.15s ease, opacity 0.15s ease;
	}

	.mdr-v2-footer-social a:hover img,
	.mdr-v2-footer-social a:focus img {
		transform: translateY(-2px);
		opacity: 0.8;
	}

.mdr-v2-footer-links .wpf-menu {
	width: 100%;
}

.mdr-v2-footer-links .wpf-menu-item > a,
.mdr-v2-footer-links .wpf-menu-text {
	text-align: right;
}

/* Menu.ascx output inside footer */

.mdr-v2-footer .wpf-menu,
.mdr-v2-footer .wpf-menu-list {
	margin: 0;
	padding: 0;
}

.mdr-v2-footer .wpf-menu-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mdr-v2-footer .wpf-menu-item {
	list-style: none;
	margin: 0 0 6px 0;
	padding: 0;
}

	.mdr-v2-footer .wpf-menu-item:last-child {
		margin-bottom: 0;
	}

	.mdr-v2-footer .wpf-menu-item > a {
		display: block;
		color: #17488c;
		text-decoration: none;
	}

		.mdr-v2-footer .wpf-menu-item > a:hover {
			color: #0d3164;
			text-decoration: underline;
		}

	/* Remove header-style pill behaviour if global menu CSS bleeds through */

	.mdr-v2-footer .wpf-menu-item > a {
		background: none;
		border-radius: 0;
		min-width: 0;
		text-transform: none;
		font-weight: 400;
		padding: 0;
	}

/* Mobile */

@media (max-width: 700px) {
	.mdr-v2-footer-inner {
		grid-template-columns: 1fr;
		grid-template-areas: "contact" "links" "social";
		row-gap: 28px;
	}

	.mdr-v2-footer-contact {
		grid-area: contact;
	}

	.mdr-v2-footer-links {
		grid-area: links;
		justify-self: stretch;
		min-width: 0;
	}

	.mdr-v2-footer-social {
		grid-area: social;
	}

	.mdr-v2-footer-contact,
	.mdr-v2-footer-links {
		font-size: 1.1em;
		text-align: center;
	}

		.mdr-v2-footer-contact .wpf-menu-item > a,
		.mdr-v2-footer-contact .wpf-menu-text,
		.mdr-v2-footer-links .wpf-menu-item > a,
		.mdr-v2-footer-links .wpf-menu-text {
			text-align: center;
		}

	.mdr-v2-footer-social img {
		width: 42px;
		height: 42px;
	}
}

/* MDR-08: footer menus remain visible on mobile.
   Generic menu.css hides .wpf-menu-list below 768px for hamburger navigation,
   but footer menus should always remain displayed. */
@media (max-width: 768px) {
	.mdr-v2-footer .wpf-menu-list {
		display: flex;
		flex-direction: column;
	}
}

/* Clear dog-bed basket icon and centred count badge */
.mdr-v2-basket-icon-wrap {
	position: relative;
	display: inline-block;
	width: 46px;
	height: 36px;
	flex: 0 0 46px;
}

.mdr-v2-basket-icon {
	display: block;
	width: 46px;
	height: 36px;
	object-fit: contain;
	opacity: 1;
	transition: opacity .15s ease, transform .15s ease;
}

	.mdr-v2-basket-icon.empty {
		opacity: .3;
		filter: grayscale(1);
	}

.mdr-v2-account-links .mdr-v2-basket-count {
	position: absolute;
	top: -5px;
	right: -7px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 26px;
	height: 26px;
	padding: 0 4px;
	box-sizing: border-box;
	border-radius: 50%;
	background: #805c70;
	color: #fff;
	border: 2px solid #fff;
	font-size: 0.8em;
	font-weight: 500;
	line-height: 1;
	text-align: center;
}
