@charset "UTF-8";

/*-----------------------------------------*/
/*--- T A B L E T   A N D   L A R G E R ---*/
/*-----------------------------------------*/

@media (max-width: 1407px) {
	#page-header-search {
		margin-top: 0;
	}
}

@media (min-width: 769px) {
	/*--- page nav ---*/
	#page-nav {
		display: block !important;
	}

	/*--- shop - appliance list ---*/
	#appliance-list #appliance .col4 {
		display: table-cell !important;
	}
}


/*-------------------*/
/*--- T A B L E T ---*/
/*-------------------*/

@media (min-width: 769px) and (max-width: 1023px) {
	/*--- mega button ---*/
	.mega-button {
		flex-direction: column;
		align-items: flex-start;
	}

	/*--- box grid ---*/
	.box-grid.-d5-t3-m2 > div,
	.box-grid.-d5-t3-m2 > a,
	.box-grid.-d4-t3-m2 > div,
	.box-grid.-d4-t3-m2 > a {
		flex-basis: calc((100% - 3rem) / 3);
	}

	/*--- collection points ---*/
	#city-jump-links ul li {
		width: calc((100% - 7.775rem) / 12);
	}

	#city-list ul {
		column-count: 3;
	}

	#collection-points .column.is-full {
		order: unset;
	}

	/*--- faqs ---*/
	#faq-jump-links ul li {
		flex: 0 1 calc((100% - 3.0rem) / 3);
	}

	/*--- basket ---*/
	#basket-totals {
		background-size: 40% auto;
	}

	#basket-totals ul {
		flex-basis: 40%;
	}

	#basket-totals ul li:last-child {
		padding-bottom: 0;
		border-bottom: none;
	}

	#collection-point-search-modal #ups-map {
		flex-basis: 70%;
	}
}


/*-------------------------------------------*/
/*--- T A B L E T   A N D   S M A L L E R ---*/
/*-------------------------------------------*/
@media (max-width: 1023px) {
	/*--- global ---*/
	#page-header, #breadcrumbs,
	main, #footer-top, #footer-bottom {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	/*
		.tab-block div[role=tabpanel],
		.mega-button,
		main .content-box {
			padding: 1rem;
		}
	*/
	/*--- blog ---*/
	#blog-list article {
		flex-direction: column;
	}

	#blog-list article a.image {
		margin: 0 0 1rem;
	}

	/*--- collection points ---*/
	#cities {
		flex-direction: column-reverse;
	}

	/*--- shop - product list ---*/
	#product-list #filters-toggle {
		margin-bottom: 1.5rem;
	}

	#product-list #filters-wrapper {
		display: none;
	}

	#product-list .filters-block {
		display: flex;
		flex-wrap: wrap;
		gap: 1.5rem;
	}

	#product-list .filters-block > div {
		flex-basis: calc((100% - 1.5rem) / 2);
	}

	#product-list .filters-block > div.mb-5 {
		margin-bottom: 0 !important;
	}

	#product-list #appliance-filters ul {
		max-height: 9.5rem;
	}

	#product-list .product .key-reference {
		left: -0.5rem;
		bottom: -0.5rem;
	}

	#product-list .box-list .product > a,
	#product-list .box-list .product > form,
	#product-details .box-list .product > a,
	#product-details .box-list .product > form {
		flex-basis: 22.5%;
	}

	#this-part-fits-modal {
		min-width: 50vw;
	}

	/*--- basket ---*/
	#basket-totals ul {
		flex-basis: 100%;
	}

	#basket .checkout-options ul {
		margin-top: 0;
		flex-basis: 100%;
	}

	#basket-delivery-options {
		position: relative;
		top: unset;
	}

	#basket-delivery-options li.collection-point div ul li {
		flex-wrap: nowrap;
	}

	#basket-delivery-options li.collection-point div ul li button {
		flex: none;
	}

	#collection-point-search-modal ul li {
		flex-direction: column-reverse;
		text-align: center;
	}

	#collection-point-search-modal ul li div:last-child {
		margin-bottom: 0.5rem;
		align-items: center;
		gap: 0.5rem;
	}

	/*--- spares finder ---*/
	#spares-finder ul {
		flex-wrap: wrap;
	}

	#spares-finder ul li {
		flex-basis: calc((100% - 1rem) / 2);
	}

	#spares-finder ul li label,
	#spares-finder ul li label select {
		width: 100%;
	}

	/*--- footer ---*/
	#footer-middle {
		padding: 1.5rem 1rem;
	}

	#footer-middle nav.column, #footer-middle ul.column {
		flex: 1;
	}
}


/*-------------------*/
/*--- M O B I L E ---*/
/*-------------------*/
@media (max-width: 768px) {
	/*--- address lookup ---*/
	.form .form-fields li .address-lookup {
		gap: 0.5rem;
	}

	.address-lookup #idpc_dropdown_1,
	.address-lookup #idpc_dropdown_2 {
		margin-top: 0;
	}

	/*--- dialog ---*/
	dialog header h2 {
		font-size: 1.1rem !important;
	}

	/*--- tab block ---*/
	.tab-block > button {
		display: flex;
		width: 100%;
		justify-content: space-between;
		border-top: 1px solid rgb(var(--white));
	}

	.tab-block > button:first-of-type {
		border: none;
	}

	.tab-block > button i {
		transition: transform ease-in-out 0.5s;
	}

	.tab-block > button[aria-expanded=true] i {
		transform: rotate(180deg);
	}

	/*--- box grid ---*/
	.grid { gap: 1rem; }

	/*--- page header ---*/
	#page-header { padding-top: 1rem; }

	/*--- page header logo ---*/
	#page-header-logo { margin-top: 0; }

	#page-header-logo a {
		height: 3.125rem;
		width: 100%;
	}

	/*--- page header search ---*/
	#page-header-nav + div {
		padding-bottom: 4.25rem;
	}

	#page-header-search {
		position: absolute;
		top: 4.875rem;
		left: -1rem;
		right: -1rem;
		display: flex;
		max-width: none;
		padding: 0.75rem 1rem;
		z-index: 1;
		background-color: rgb(var(--header-search-bg-mobile));
	}

	#page-header-search div {
		position: relative;
		flex: 1 1 auto;
	}

	#page-header-search div .button {
		background: transparent;
		border: none;
		box-shadow: none;
		min-height: 2em;
		right: 0;
		top: 0;
	}

	#page-header-search input {
		font-size: 1.25rem;
		height: 2em;
	}

	/*--- page header buttons ---*/
	#page-header-buttons {
		gap: 0.75rem;
	}

	#page-header-buttons .button,
	#page-header-search .button {
		padding: 0;
		font-size: 1.25rem;
		border: 1px solid rgb(var(--grey-125));
	}

	#page-header-buttons .button i,
	#page-header-search .button i {
		font-size: 1.375rem;
	}

	#basket-summary .button:first-of-type {
		border: 1px solid rgb(var(--grey-125));
		border-radius: 0.25rem;
	}

	#basket-summary .count {
		width: 1.625rem;
		height: 1.625rem;
		font-size: 0.8125rem;
		line-height: 1.375rem;
	}

	#page-header-buttons .button i {
		margin: 0;
	}

	/*--- vat toggle ---*/
	li .vat-toggle label {
		color: rgb(var(--black));
	}

	li .vat-toggle .slider {
		background-color: rgb(var(--vat-toggle-bg-off));
	}

	li .vat-toggle .slider:before {
		background-color: rgb(var(--vat-toggle));
	}

	li .vat-toggle input:checked + .slider {
		background-color: rgb(var(--vat-toggle-bg-on));
	}

	li .vat-toggle {
		margin: 0.5rem 0.75rem;
	}

	li .vat-toggle label {
		width: 100%;
		justify-content: space-between;
	}

	/*--- box grid ---*/
	.box-grid {
		gap: 1rem;
	}

	.box-grid.-d5-t3-m2 > div,
	.box-grid.-d5-t3-m2 > a,
	.box-grid.-d4-t3-m2 > div,
	.box-grid.-d4-t3-m2 > a,
	.box-grid.-d3-t3-m2 > div,
	.box-grid.-d3-t3-m2 > a {
		flex-basis: calc((100% - 1rem) / 2);
	}

	/*--- mobile menu button ---*/
	#button-mobile-menu[aria-expanded='true'] i:first-child {
		display: none;
	}

	#button-mobile-menu[aria-expanded='false'] i:last-child {
		display: none;
	}

	/*--- page navigation ---*/
	#page-nav {
		background-color: rgb(var(--white));
		border-bottom: 1px solid rgb(var(--grey-250));
		display: none;
	}

	#page-nav-links > li {
		border-top: 1px solid rgb(var(--grey-125));
	}

	#page-nav-links > li > a,
	#page-nav-links > li > strong,
	#page-nav-links > li > form > button {
		background-color: rgba(var(--grey-125), 0.25);
		color: rgb(var(--black));
		display: flex;
		justify-content: space-between;
		text-align: left;
	}

	#page-nav-links > li > strong {
		font-weight: 700;
		color: rgb(var(--black));
		text-transform: uppercase;
		background-color: rgb(var(--white));
	}

	#page-nav-links > li > a:hover {
		text-decoration: none;
	}

	#page-nav-links > li > a.is-hovered i {
		transform: rotate(180deg);
	}

	#page-nav-links .page-nav-menu {
		position: relative;
		padding: 0;
		flex-direction: column-reverse;
	}

	#page-nav-links .page-nav-menu ul {
		columns: unset;
	}

	#page-nav-links .page-nav-menu li {
		padding: 0;
	}

	#page-nav-links .page-nav-menu a,
	#page-nav-links .page-nav-menu > a {
		display: block;
		margin: 0;
		padding: 1rem 0.75rem;
		font-weight: 400;
		text-align: left;
		background-color: rgb(var(--white));
		border-top: 1px solid rgb(var(--grey-125));
	}

	/*--- usps ---*/
	#usps {
		height: 5rem;
		padding-top: 0.75rem;
		overflow: hidden;
	}

	#usps li {
		padding: 1rem 0;
	}

	#usps .level-item {
		width: 100%;
		margin: 0;
	}

	#usps .flickity-page-dots {
		bottom: 0;
	}

	#usps .flickity-page-dots .dot {
		padding: 0;
	}

	#usps .flickity-button:focus {
		box-shadow: 0 0 0 0.25rem rgb(var(--yellow));
	}

	/*--- home ---*/
	#spares-finder {
		padding: 2rem;
	}

	#spares-finder ul {
		flex-direction: column;
	}

	/*--- blog ---*/
	#blog-list article a.image {
		width: 100%;
	}

	/*--- boiler manuals ---*/
	#boiler-manuals .box-grid h2 {
		margin: 0.5rem 0;
	}

	/*--- collection points ---*/
	#city-list ul {
		column-count: 2;
	}

	/*--- customer account area ---*/
	#customer-orders .order,
	#customer-order .order,
	#invoice-list .invoice{
		gap: 1.5rem;
	}

	#customer-orders .order span,
	#customer-order .order span,
	#invoice-list .invoice span{
		align-items: center;
		flex-direction: row;
		width: 100%;
	}

	#customer-orders .order span ~ span,
	#customer-order .order span ~ span,
	#invoice-list .invoice span ~ span{
		margin: 1rem 0 0;
	}

	#customer-orders .order span i,
	#customer-order .order span i,
	#invoice-list .invoice span i{
		font-size: 1.25rem;
		margin: 0 1.5em 0 0;
		text-align: center;
		width: 1.5rem;
	}

	#customer-sidebar {
		position: static;
		width: 100%;
		padding: 1rem;
	}

	#customer-sidebar ul {
		display: flex;
		flex-wrap: wrap;
		justify-items: flex-end;
		gap: 1rem 0.5rem;
	}

	#customer-sidebar ul li {
		flex: 1;
	}

	#customer-sidebar ul li ~ li {
		margin: 0;
	}

	#customer-sidebar ul li .sidebar-item {
		flex-direction: column;
		font-size: 0.9rem;
		gap: 0.75rem;
		justify-content: center;
		text-align: center;
	}

	/*--- shop - brand list ---*/
	#brand-list div.image {
		aspect-ratio: 21/9;
	}

	/*--- shop - appliance list ---*/
	#appliance-list #list {
		padding: 1.5rem 1rem;
	}

	#appliance-list #list table {
		display: block;
	}

	#appliance-list #list thead,
	#appliance-list #list tbody {
		display: contents;
	}

	#appliance-list #list tr {
		display: flex;
		width: 100%;
		flex-wrap: wrap;
	}

	#appliance-list #list th,
	#appliance-list #list td {
		display: flex;
		flex: 0 1 calc(65% - 2em - 1rem);
		align-items: center;
	}

	#appliance-list #list .col1 {
		width: auto;
	}

	#appliance-list #list .col2 {
		flex-basis: 35%;
	}

	#appliance-list #list .col3 {
		width: calc(2em + 1rem);
		flex: none;
	}

	#appliance-list #list .col4 {
		display: none;
		padding-bottom: 1rem;
		flex-basis: 100%;
		border-top: none;
	}

	#appliance-list #list td[colspan='4'] {
		flex: auto;
	}

	#appliance-list #list .do-expand i {
		transition: transform ease-in-out 0.5s;
	}

	#appliance-list #list .expanded td .do-expand i {
		color: rgb(var(--red));
		transform: rotate(180deg);
	}

	#appliance-list #list .expanded .col1,
	#appliance-list #list .expanded .col2 {
		font-weight: 500;
		color: rgb(var(--red));
	}

	#appliance-list #list .col4 div {
		flex-direction: column;
	}

	/*--- shop - product list ---*/
	#product-list .filters-block > div {
		flex-basis: 100%;
	}

	#product-list .options {
		justify-content: center;
	}

	#product-list .options .sort-by {
		flex: unset;
	}

	#product-list .options .display-type,
	#product-list .options.top .pagination {
		display: none;
	}

	#product-list .box-grid .product > div > div,
	#product-details .box-grid .product > div > div {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
	}

	#this-part-fits-modal {
		min-width: 80vw;
	}

	/*--- shop - product details ---*/
	#product-info .add-to-basket {
		width: 100%;
	}

	/*--- shop - add to bsaket (modal) ---*/
	#add-to-basket-modal button,
	#add-to-basket-modal a {
		flex: 100%;
	}

	/*--- basket ---*/
	#basket-items ul li {
		flex-direction: column;
	}

	#basket-items ul li > a,
	#basket-items ul li .basket-options {
		width: 100%;
		flex-basis: unset;
	}

	#basket-items ul li .basket-options {
		justify-content: space-between;
	}

	#basket-totals ul {
		max-width: unset;
	}

	#basket-totals ul li:first-child {
		justify-content: unset;
	}

	#basket-totals ul li:first-child button {
		font-size: 1rem;
	}

	#collection-point-search-modal > div {
		flex-direction: column;
		overflow: scroll;
	}

	#collection-point-search-modal > div ul {
		overflow: visible;
	}

	#collection-point-search-modal #ups-map {
		flex: none;
	}

	/*--- footer ---*/
	#footer-middle > div {
		flex-direction: column-reverse;
	}

	#footer-bottom > div {
		flex-direction: column;
		align-items: center;
		gap: 1.5rem;
	}

	#footer-bottom p {
		font-size: 0.8125rem;
		text-align: center;
	}

	#footer-bottom p:last-child {
		margin-top: 1rem;
	}

	#footer-bottom p a {
		justify-content: center;
	}

	#footer-bottom p a img {
		height: 0.8125rem;
	}
}
