/*
 * MTS Wish List & Quotes
 * Styled for the Michael Turner Studios theme: black site background, grey (#ABAFAF)
 * WooCommerce panels with black text, #DFDCDE inputs, Mulish / Cormorant Garamond.
 */

/* =========================================================================
   Product page button – matches the grey outline "Add to basket" button
   ========================================================================= */
.mwq-button-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 20px;
	margin: 0 0 30px;
	font-family: Mulish, sans-serif;
}

.mwq-button-wrap--single .mwq-toggle,
.mwq-button-wrap--shortcode .mwq-toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 15px;
	border: 1px solid #abafaf;
	background: transparent;
	color: #abafaf !important;
	font-family: Mulish, sans-serif;
	font-size: 20px;
	font-weight: 100;
	line-height: 20px;
	text-decoration: none !important;
	cursor: pointer;
	transition: color .25s ease-in-out, border-color .25s ease-in-out;
}
.mwq-button-wrap--single .mwq-toggle:hover,
.mwq-button-wrap--single .mwq-toggle:focus-visible,
.mwq-button-wrap--shortcode .mwq-toggle:hover,
.mwq-button-wrap--shortcode .mwq-toggle:focus-visible {
	color: #fff !important;
	border-color: #fff;
}
.mwq-button-wrap--single .mwq-heart,
.mwq-button-wrap--shortcode .mwq-heart { width: 16px; height: 16px; }

.mwq-toggle .mwq-heart { flex: none; }
.mwq-toggle .mwq-heart path { transition: fill .25s ease-in-out; }
.mwq-toggle.is-active .mwq-heart path { fill: currentColor; }
.mwq-toggle.is-loading { opacity: .6; pointer-events: none; }

.mwq-view {
	font-family: Mulish, sans-serif;
	font-size: 14px;
	color: #abafaf !important;
	text-decoration: underline;
}
.mwq-view:hover { color: #fff !important; }
.mwq-view[hidden] { display: none !important; }

/* =========================================================================
   Shop listings – a heart in the top-right corner of each product image
   ========================================================================= */
ul.products li.product { position: relative; }

.mwq-button-wrap--loop {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 20;
	margin: 0;
	display: block;
}
.mwq-button-wrap--loop .mwq-view { display: none !important; }
.mwq-button-wrap--loop .mwq-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .55);
	color: #fff !important;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color .25s ease-in-out, transform .25s ease-in-out;
}
.mwq-button-wrap--loop .mwq-toggle:hover,
.mwq-button-wrap--loop .mwq-toggle:focus-visible { background: rgba(0, 0, 0, .85); transform: scale(1.06); }
.mwq-button-wrap--loop .mwq-heart { width: 20px; height: 20px; }
.mwq-button-wrap--loop .mwq-toggle__label {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* =========================================================================
   Header count link – [mwq_wishlist_count]
   ========================================================================= */
.mwq-count-link { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.mwq-count {
	display: inline-block;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: #abafaf;
	color: #000;
	font-family: Mulish, sans-serif;
	font-size: 11px;
	line-height: 18px;
	text-align: center;
}
.mwq-count[hidden] { display: none; }

/* =========================================================================
   Wish list page – grey panel like the account and basket pages
   ========================================================================= */
.mwq-page {
	background: #abafaf;
	padding: 25px 100px 50px;
	margin: 0 0 40px;
	box-sizing: border-box;
}
.mwq-page__title {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 20px;
	font-family: "Cormorant Garamond", serif;
	font-size: 60px;
	font-weight: 400;
	line-height: 90px;
	color: #000;
}
.mwq-page__title img { height: 46px; width: auto; }

.mwq,
.mwq p,
.mwq label,
.mwq td,
.mwq th { color: #000; }
.mwq {
	font-family: Mulish, sans-serif;
	font-size: 18px;
	line-height: 1.5;
}
.mwq a { color: #000; }

.mwq-intro { margin: 0 0 30px; max-width: 900px; }

/* Items */
.mwq-items { width: 100%; border-collapse: collapse; margin: 0 0 10px; background: transparent; }
.mwq-items th {
	text-align: left;
	font-size: 16px;
	font-weight: 400;
	padding: 0 10px 12px;
	border-bottom: 1px solid #000;
}
.mwq-items td { padding: 16px 10px; border-bottom: 1px solid rgba(0, 0, 0, .25); vertical-align: middle; }
.mwq-items__thumb { width: 110px; }
.mwq-items__thumb img { display: block; width: 100px; height: 100px; object-fit: cover; }
.mwq-items__name a {
	font-family: "Cormorant Garamond", serif;
	font-size: 28px;
	line-height: 1.15;
	text-decoration: none;
}
.mwq-items__name a:hover { text-decoration: underline; }
.mwq-items__note { display: block; margin-top: 4px; font-size: 14px; }
.mwq-items__price { white-space: nowrap; }
.mwq-items__qty input {
	width: 80px;
	height: 45px;
	padding: 0 12px;
	border: 0;
	border-radius: 0;
	background: #dfdcde;
	color: #000;
	font-family: Mulish, sans-serif;
	font-size: 20px;
	font-weight: 100;
}
.mwq-items__remove { width: 40px; text-align: center; }
.mwq-remove { font-size: 30px; line-height: 1; text-decoration: none; }
.mwq-remove:hover { opacity: .6; }

.mwq-update { text-align: right; margin: 0 0 40px; }
.mwq-link-button {
	background: none;
	border: 0;
	padding: 0;
	color: #000;
	font-family: Mulish, sans-serif;
	font-size: 16px;
	text-decoration: underline;
	cursor: pointer;
}

/* Headings */
.mwq-heading,
.mwq-confirm__title {
	font-family: "Cormorant Garamond", serif;
	font-size: 38px;
	font-weight: 400;
	line-height: 1.2;
	margin: 0 0 10px;
	color: #000;
}
.mwq-subhead { margin: 0 0 24px; }

/* Delivery form – matches the account page fields */
.mwq-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 40px;
}
.mwq-field { margin: 0; }
.mwq-field--wide { grid-column: 1 / -1; }
.mwq-field label { display: block; margin: 0 0 6px; font-size: 18px; font-weight: 400; }
.mwq-field abbr.required { color: #000; text-decoration: none; border: 0; }
.mwq-field input,
.mwq-field select,
.mwq-field textarea {
	width: 100%;
	box-sizing: border-box;
	height: 45px;
	padding: 0 18px;
	border: 0;
	border-radius: 0;
	background: #dfdcde;
	color: #000;
	font-family: Mulish, sans-serif;
	font-size: 20px;
	font-weight: 100;
	line-height: 1.3;
}
.mwq-field textarea { height: auto; min-height: 120px; padding: 12px 18px; }
.mwq-field input:focus,
.mwq-field select:focus,
.mwq-field textarea:focus { outline: 1px solid #000; outline-offset: 0; }

/* Honeypot */
.mwq-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.mwq-account-note { margin: 24px 0 0; font-size: 16px; }
.mwq-submit { margin: 30px 0 0; }

/* Buttons – matches "Log in" / "Proceed to checkout" */
.mwq-btn {
	display: inline-block;
	padding: 15px 20px;
	border: 1px solid #000;
	background: transparent;
	color: #000 !important;
	font-family: Mulish, sans-serif;
	font-size: 22px;
	font-weight: 100;
	line-height: 22px;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color .25s ease-in-out, color .25s ease-in-out;
}
.mwq-btn:hover,
.mwq-btn:focus-visible { background: #000; color: #fff !important; }

.mwq-confirm { margin: 0 0 30px; }
.mwq-empty { padding: 0 0 10px; }

/* Inside My Account the theme already provides the grey panel. */
.woocommerce-MyAccount-content .mwq-page { padding: 0; background: none; }

/* =========================================================================
   Mobile
   ========================================================================= */
@media (max-width: 1023px) {
	.mwq-page { padding: 25px 40px 40px; }
}
@media (max-width: 767px) {
	.mwq-page { padding: 20px 20px 30px; }
	.mwq-page__title { font-size: 40px; line-height: 1.3; }
	.mwq-page__title img { height: 32px; }
	.mwq-fields { grid-template-columns: 1fr; }
	.mwq-items thead { display: none; }
	.mwq-items tr {
		display: grid;
		grid-template-columns: 80px 1fr 32px;
		gap: 4px 14px;
		padding: 16px 0;
		border-bottom: 1px solid rgba(0, 0, 0, .25);
	}
	.mwq-items td { padding: 0; border: 0; }
	.mwq-items__thumb { grid-row: 1 / span 3; width: auto; }
	.mwq-items__thumb img { width: 80px; height: 80px; }
	.mwq-items__name,
	.mwq-items__price,
	.mwq-items__qty { grid-column: 2; }
	.mwq-items__name a { font-size: 22px; }
	.mwq-items__price::before,
	.mwq-items__qty::before { content: attr(data-title) ": "; font-size: 15px; }
	.mwq-items__remove { grid-column: 3; grid-row: 1; width: auto; }
	.mwq-heading, .mwq-confirm__title { font-size: 30px; }
	.mwq-button-wrap--loop { top: 8px; right: 8px; }
	.mwq-button-wrap--loop .mwq-toggle { width: 38px; height: 38px; }
}
