a.logo {
	display: block;
	position: relative;
	top: 0;
	width: 278px;
	height: 168px;
	left: 30px;
	z-index: 2;
	background: url("/filestore/layout/wrs-logo-2016.png") no-repeat left top;
	background-size: contain;
	margin-bottom: -40px;
}

a.logo:before {
	content: " ";
	position: absolute;
	top: 50px;
	left: -150px;
	width: 150px;
	height: 95px;
	z-index: 2;
	background: url("/filestore/layout/vintage-leaves.png") no-repeat left top;
	background-size: contain;
}

#container {
	position: relative;
	width: 1000px;
	margin: 0 auto; /* this centres the container box */
}

/* Hide mobile menu toggle by default (desktop) */
#mobile-menu-toggle {
	display: none;
}

.beautiful-unique-art {
	width: 1000px;
	margin-top: 20px 0;
}

#top-menu {
	position: absolute;
	top: 79px;
	z-index: 3;
}

#top-menu a {
	position: absolute;
	display: block;
	width: 92px;
	height: 31px;
	background-size: 92px 62px;
	background-repeat: no-repeat;
}

#top-menu a:hover {
	background-color: rgb(255, 255, 255);
	background-position: 0 -31px;
}
#top-menu a span {
	display: none;
}

#products {
	left: 343px;
	background-image: url("/filestore/layout/products.gif");
}
#ideas {
	left: 477px;
	background-image: url("/filestore/layout/ideas.gif");
}
#how-to {
	left: 611px;
	background-image: url("/filestore/layout/how-to.gif");
}
#stockists {
	left: 746px;
	background-image: url("/filestore/layout/stockists.gif");
}

input[name="q"] {
	position: absolute;
	top: 79px;
	right: 0px;
	width: 120px;
	height: 27px;
	z-index: 3;
	/* had to base64 due to issues with YUI compressor */
	background-image: url("data:image/svg+xml;charset=utf-8;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMS4xNCAxMS4xNCI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNiYzg3NWE7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5tYWduaWZ5aW5nPC90aXRsZT48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0zNS4xNCw1Mi44NmEuODcuODcsMCwwLDEtLjg2Ljg2LjguOCwwLDAsMS0uNi0uMjVsLTIuMy0yLjI5YTQuNTksNC41OSwwLDAsMS0yLjY3LjgzLDQuNjUsNC42NSwwLDAsMS0xLjgzLS4zNyw0LjYyLDQuNjIsMCwwLDEtMi41MS0yLjUxLDQuNjksNC42OSwwLDAsMSwwLTMuNjYsNC42Miw0LjYyLDAsMCwxLDIuNTEtMi41MSw0LjcsNC43LDAsMCwxLDMuNjYsMCw0LjYyLDQuNjIsMCwwLDEsMi41MSwyLjUxQTQuNzEsNC43MSwwLDAsMSwzMi42LDUwbDIuMywyLjNBLjgyLjgyLDAsMCwxLDM1LjE0LDUyLjg2Wm0tNC4zMS0zLjQ1YTMsMywwLDEsMC0yLjEyLjg4QTIuODksMi44OSwwLDAsMCwzMC44Myw0OS40MVoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yNCAtNDIuNTcpIi8+PC9zdmc+");
	background-repeat: no-repeat;
	background-position: 95px;
	border: 2px solid #bc875b;
	background-color: #fadbca;
	background-size: 18px;
}

/* submit button over the magnifying glass area for click */
#site-search-button {
	position: absolute;
	top: 79px;
	right: 0;
	width: 28px;
	height: 27px;
	z-index: 4;
	background: transparent;
	border: none;
	cursor: pointer;
}

/* Header search overlay */
#header-search-results {
	position: absolute;
	top: 108px; /* below input (79px) + input height */
	right: 0;
	width: 320px;
	max-height: 360px;
	overflow: auto;
	background: #fffdfb;
	border: 1px solid #e7d8cd;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
	z-index: 50;
	display: none;
}

#header-search-results .search-result {
	display: block;
	padding: 8px 10px;
	border-bottom: 1px solid #f1e6de;
	color: #333;
	text-decoration: none;
}
#header-search-results .search-result:hover {
	background: #faf7f4;
}
#header-search-results .search-result .sr-grid {
	display: grid;
	grid-template-columns: 80px 1fr;
	gap: 8px;
	align-items: start;
}
#header-search-results .search-result .sr-thumb {
	width: 80px;
	height: 80px;
	object-fit: contain;
	background: #fff;
	border: 1px solid #eee;
}
#header-search-results .search-result .sr-text {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 4px;
}
#header-search-results .search-result .title {
	font-weight: 600;
}
#header-search-results .search-result .subtitle {
	color: #666;
	font-size: 12px;
}
#header-search-results .search-result .type {
	color: #b98961;
	font-size: 12px;
	align-self: center;
}
#header-search-results .search-result .desc {
	margin: 4px 0 0;
	color: #444;
	font-size: 12px;
	line-height: 1.3;
	grid-column: 1 / -1;
}

input[type="search"]::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

#top-bar {
	position: relative;
	width: 5000px;
	left: -2000px;
	height: 11px;
	background-color: #b38867;
	background-image: linear-gradient(
		to bottom,
		#b38867,
		#b38867 5px,
		white 5px,
		white 9px,
		#b38867 9px
	);
	margin-bottom: 30px;
}

#top-bar:before {
	content: " ";
	position: absolute;
	left: 2093px;
	width: 140px;
	height: 11px;
	background-color: white;
}

#side-bar {
	position: absolute;
	top: 263px;
	padding: 10px 0px;
	left: 65px;
	width: 123px;
	background-color: rgb(255, 251, 241);
	font-family: "thirsty_scriptlight", sans-serif;
	font-size: 20px;
	text-align: center;
	z-index: 3;
}

#side-bar a {
	display: block;
	padding: 0px 7px;
	margin: 15px 0px;
}

.side-bar-heading {
	display: inline-block;
	width: 100px;
	background-color: rgb(132, 85, 43);
	background-color: rgb(171, 115, 72);
	color: rgb(255, 255, 255);
	border-radius: 12px;
}

#page {
	position: relative;
	width: 742px;
	left: 207px;
	padding: 45px 45px 50px 40px;
	margin-bottom: 16px;
	background-image:
		url("/filestore/layout/frame-top.gif"), url("/filestore/layout/frame-bottom@2x.png"),
		url("/filestore/layout/border.gif");
	background-position:
		left top,
		left bottom,
		left top;
	background-repeat: no-repeat, no-repeat, repeat-y;
	background-size: 822px 74px;
	z-index: 3;
}

#footer {
	position: relative;
	left: 207px;
	width: 827px;
	height: 40px;
	font-size: 14px;
	text-align: center;
}

@media (min-resolution: 192dpi),
	(-webkit-min-device-pixel-ratio: 2),
	(min--moz-device-pixel-ratio: 2),
	(-o-min-device-pixel-ratio: 2/1),
	(min-device-pixel-ratio: 2),
	(min-resolution: 2dppx) {
	a.logo {
		background-image: url("/filestore/layout/wrs-logo-2016@2x.png");
	}
	a.logo:before {
		background-image: url("/filestore/layout/vintage-leaves@2x.png");
	}
	#products {
		background-image: url("/filestore/layout/products@2x.gif");
	}
	#how-to {
		background-image: url("/filestore/layout/how-to@2x.png");
	}
	#stockists {
		background-image: url("/filestore/layout/stockists@2x.png");
	}
	#ideas {
		background-image: url("/filestore/layout/ideas@2x.png");
	}
	#page {
		background-image:
			url("/filestore/layout/frame-top@2x.png"), url("/filestore/layout/frame-bottom@2x.png"),
			url("/filestore/layout/frame-left-right@2x.png");
	}
}

/* Mobile overrides for legacy layout file in case it's included separately */
@media (max-width: 768px) {
	#container {
		width: 100%;
		padding: 0 12px;
		box-sizing: border-box;
	}
	a.logo {
		width: 180px;
		height: 110px;
		left: 0;
		margin: 8px auto 16px;
	}
	a.logo:before {
		display: none;
	}
	#top-menu {
		position: static;
		display: flex;
		flex-wrap: wrap;
		gap: 6px;
		justify-content: center;
		margin: 6px 0;
	}
	#top-menu a {
		position: static;
		width: auto;
		height: auto;
		background: none !important;
		padding: 0;
		border: 0;
		border-radius: 0;
		display: inline-block;
		margin: 2px 4px;
	}
	#top-menu a span {
		display: none;
	}
	/* Icon-only buttons using existing sprites (show top half of 2-frame sprite) */
	#top-menu a::before {
		content: "";
		display: inline-block;
		width: 72px;
		height: 24px;
		background-repeat: no-repeat;
		background-size: 100% 200%;
		background-position: 0 0;
		transform: scale(1);
	}
	#products::before {
		background-image: url("/filestore/layout/products.gif");
	}
	#ideas::before {
		background-image: url("/filestore/layout/ideas.gif");
	}
	#how-to::before {
		background-image: url("/filestore/layout/how-to.gif");
	}
	#stockists::before {
		background-image: url("/filestore/layout/stockists.gif");
	}
	/* Active/hover state shifts sprite to lower frame */
	#top-menu a:active::before,
	#top-menu a:focus::before,
	#top-menu a:hover::before {
		background-position: 0 100%;
	}
	input[name="q"] {
		position: static;
		width: 100%;
		margin-top: 6px;
		background-position: right 10px center;
	}
	#site-search-button {
		display: none;
	}
	#header-search-results {
		position: static;
		width: 100%;
		max-height: 50vh;
	}
	#top-bar {
		display: none;
	}
	/* Sidebar becomes off-canvas */
	#side-bar {
		position: fixed;
		top: 0;
		left: 0;
		height: 100%;
		width: 72%;
		max-width: 300px;
		transform: translateX(-100%);
		transition: transform 0.25s ease;
		margin: 0;
		box-shadow: 2px 0 18px rgba(0, 0, 0, 0.2);
		overflow-y: auto;
		background: rgb(255, 251, 241);
		padding: 12px 10px;
		z-index: 200;
	}
	body.menu-open #side-bar {
		transform: translateX(0);
	}
	/* Dim background when menu open */
	body.menu-open::after {
		content: "";
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, 0.45);
		z-index: 150;
	}
	#mobile-menu-toggle {
		display: inline-block;
		position: absolute;
		top: 14px;
		right: 12px;
		width: 36px;
		height: 28px;
		background: none;
		border: 0;
		z-index: 250;
	}
	#mobile-menu-toggle::before,
	#mobile-menu-toggle::after {
		content: "";
		display: block;
		height: 3px;
		background: #7a583f;
		margin: 6px 0;
		box-shadow: 0 8px 0 #7a583f;
	}
	body.menu-open #mobile-menu-toggle::before {
		transform: rotate(45deg);
		box-shadow: none;
	}
	body.menu-open #mobile-menu-toggle::after {
		transform: rotate(-45deg);
		box-shadow: none;
		margin-top: -3px;
	}
	#page {
		position: static;
		width: auto;
		left: 0;
		padding: 16px;
		background: none;
	}
	#footer {
		left: 0;
		width: 100%;
		padding: 10px 0;
		height: auto;
	}
}

/* Hi-DPI icons for mobile */
@media (max-width: 768px) and (min-resolution: 192dpi),
	(max-width: 768px) and (-webkit-min-device-pixel-ratio: 2),
	(max-width: 768px) and (min--moz-device-pixel-ratio: 2),
	(max-width: 768px) and (-o-min-device-pixel-ratio: 2/1),
	(max-width: 768px) and (min-device-pixel-ratio: 2),
	(max-width: 768px) and (min-resolution: 2dppx) {
	#products::before {
		background-image: url("/filestore/layout/products@2x.gif");
	}
	#ideas::before {
		background-image: url("/filestore/layout/ideas@2x.png");
	}
	#how-to::before {
		background-image: url("/filestore/layout/how-to@2x.png");
	}
	#stockists::before {
		background-image: url("/filestore/layout/stockists@2x.png");
	}
	#top-menu a:active::before,
	#top-menu a:focus::before,
	#top-menu a:hover::before {
		background-position: 0 100%;
	}
}

.cookie-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 14px 16px;
	box-sizing: border-box;
	width: 100%;
	z-index: 99;
	background: #f0e7e0;
	color: #7a583f;
	display: flex;
	gap: 12px;
	align-items: center;
}
.cookie-banner[hidden] {
	display: none;
}
.cookie-banner > span {
	flex: 1;
	line-height: 1.3;
	font-size: 16px;
}
.cookie-actions {
	display: flex;
	gap: 8px;
}
.cookie-btn {
	font-family: "geosanslightregular", sans-serif;
	font-size: 14px;
	padding: 8px 12px;
	border: 1px solid #d4c4b9;
	background: #fff;
	color: #7a583f;
	cursor: pointer;
}
.cookie-btn.accept {
	background: #fff;
	color: #7a583f;
	border-color: #d4c4b9;
}
.cookie-btn.reject {
	background: #fff;
	color: #7a583f;
	border-color: #d4c4b9;
}
.cookie-btn.settings {
	background: #fff;
	color: #7a583f;
	border-color: #d4c4b9;
}
.cookie-btn:hover {
	opacity: 0.9;
}

.cookie-modal[hidden] {
	display: none;
}
.cookie-modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
}
.cookie-modal-inner {
	background: #fffdfb;
	max-width: 520px;
	width: 92%;
	padding: 16px;
	border: 1px solid #e7d8cd;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.cookie-modal-inner h2 {
	margin-top: 0;
	font-size: 22px;
}
.cookie-category {
	border-top: 1px solid #eee;
	padding: 10px 0;
}
.cookie-cat-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.cookie-cat-status {
	color: #999;
	font-size: 12px;
}
.cookie-modal-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 12px;
}
