/* Schön — phone layer: chrome. Printed after responsive.css; see inc/enqueue.php.
 *
 * Rules here override responsive.css at equal specificity on source order.
 * Covers: off-canvas nav panel, header cart bottom sheet, footer accordions,
 * promo strip compact grid, and header row fit (360-767px).
 */

/* ==========================================================================
   1. Off-canvas mobile navigation panel
   ========================================================================== */

.schon-mpanel {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	width: min(85vw, 360px);
	height: 100%;
	background: var(--schon-white, #fff);
	transform: translateX(100%);
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	overflow: hidden;
}

.schon-mpanel[hidden] {
	display: none;
}

.schon-mpanel.is-open {
	transform: translateX(0);
}

.schon-mpanel__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex: none;
	height: 56px;
	padding: 0 var(--schon-gutter, 14px);
	background: var(--schon-brand-yellow, #fbd60f);
}

.schon-mpanel__brand {
	line-height: 0;
}

.schon-mpanel__brand .schon-logo-img {
	height: 22px;
	width: auto;
}

.schon-mpanel__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: none;
	background: none;
	color: var(--schon-black, #000);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.schon-mpanel__body {
	flex: 1 1 auto;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 8px 0 24px;
}

.schon-mpanel__section {
	border-bottom: 1px solid var(--schon-line, rgba(0,0,0,0.08));
	padding: 0 var(--schon-gutter, 14px);
}

.schon-mpanel__list {
	margin: 0;
	padding: 12px 0;
}

.schon-mpanel__list li {
	margin: 0;
}

.schon-mpanel__list a,
.schon-mpanel__accord-body a {
	display: block;
	padding: 12px 0;
	color: var(--schon-black, #000);
	font-family: var(--schon-font-body, 'Source Sans Pro', sans-serif);
	font-size: 15px;
	font-weight: 600;
	line-height: 20px;
	text-decoration: none;
}

.schon-mpanel__accord-body a {
	font-weight: 400;
	color: var(--schon-ink, #868686);
	padding: 10px 0 10px 8px;
	font-size: 14px;
}

.schon-mpanel__accord-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 14px 0;
	border: none;
	background: none;
	color: var(--schon-black, #000);
	font-family: var(--schon-font-body, 'Source Sans Pro', sans-serif);
	font-size: 15px;
	font-weight: 600;
	line-height: 20px;
	cursor: pointer;
	text-align: left;
}

.schon-mpanel__caret {
	transition: transform 0.25s ease;
	flex: none;
}

.schon-mpanel__accord-btn[aria-expanded="true"] .schon-mpanel__caret {
	transform: rotate(180deg);
}

.js .schon-mpanel__accord-body {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.js .schon-mpanel__accord-btn[aria-expanded="true"] + .schon-mpanel__accord-body {
	max-height: 600px;
}

.schon-mpanel__accord-body {
	margin: 0;
	padding: 0 0 0 4px;
}

.schon-mpanel__accord-body li {
	margin: 0;
}

@media (min-width: 1200px) {
	.schon-mpanel {
		display: none !important;
	}
}

/* ==========================================================================
   2. Cart bottom sheet on phones
   ========================================================================== */

@media (max-width: 767px) {
	.mt-sh-cart .mt-drop {
		position: fixed;
		top: auto;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 9998;
		width: 100%;
		max-height: 70vh;
		padding-top: 0;
		border-radius: 16px 16px 0 0;
		transform: translateY(100%);
		opacity: 0;
		visibility: hidden;
		transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
		            opacity 0.25s ease,
		            visibility 0.35s;
	}

	.mt-sh-cart:hover .mt-drop,
	.mt-sh-cart:focus-within .mt-drop,
	.mt-sh-cart.is-open .mt-drop {
		transform: translateY(0);
		opacity: 1;
		visibility: visible;
	}

	.mt-sh-cart .mt-drop-sub {
		border-radius: 16px 16px 0 0;
		overflow: hidden;
	}

	.mt-sh-cart .mt-side-widget {
		max-height: calc(70vh - 16px);
		padding: 20px var(--schon-gutter, 14px) 16px;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	.mt-sh-cart .cart-row .img {
		width: 56px;
	}

	.mt-sh-cart .cart-btn-row {
		display: flex;
		gap: 10px;
		padding-top: 12px;
	}

	.mt-sh-cart .cart-btn-row a {
		flex: 1;
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 48px;
		padding: 8px 12px;
		border-radius: var(--schon-radius-pill, 25px);
		font-family: var(--schon-font-head, 'Montserrat', sans-serif);
		font-size: 14px;
		font-weight: 700;
		line-height: 20px;
		text-decoration: none;
		text-transform: uppercase;
		white-space: nowrap;
	}

	.mt-sh-cart .cart-btn-row .btn-type2 {
		background: transparent;
		border: 2px solid var(--schon-black, #000);
		color: var(--schon-black, #000);
	}

	.mt-sh-cart .cart-btn-row .btn-type3 {
		background: var(--schon-black, #000);
		border: 2px solid var(--schon-black, #000);
		color: var(--schon-white, #fff);
	}
}

.schon-cart-backdrop {
	position: fixed;
	inset: 0;
	z-index: 9997;
	background: rgba(0, 0, 0, 0.45);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.schon-cart-backdrop.is-visible {
	opacity: 1;
}

/* ==========================================================================
   3. Footer accordions on phones
   ========================================================================== */

.schon-f-accord-btn {
	display: none;
}

@media (max-width: 767px) {
	.schon-f-accord-heading {
		display: none !important;
	}

	.schon-f-accord-btn {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		padding: 14px 0;
		border: none;
		border-bottom: 1px solid rgba(0, 0, 0, 0.08);
		background: none;
		color: var(--schon-black, #000);
		font-family: var(--schon-font-body, 'Source Sans Pro', sans-serif);
		font-size: 16px;
		font-weight: 600;
		line-height: 20px;
		cursor: pointer;
		text-align: left;
		margin: 0;
	}

	.schon-f-accord-btn::after {
		content: '+';
		font-size: 20px;
		font-weight: 400;
		color: var(--schon-ink, #868686);
	}

	.schon-f-accord-btn[aria-expanded="true"]::after {
		content: '\2212';
	}

	.js .schon-f-accord-body {
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.3s ease;
	}

	.js .schon-f-accord-btn[aria-expanded="true"] + .schon-f-accord-body {
		max-height: 500px;
	}

	.footer-col--nav {
		gap: 0;
	}

	.nav-widget-1 {
		margin-bottom: 0;
	}

	.footer-holder {
		padding: 20px 0 24px;
	}

	.f-widget-about .logo {
		margin-bottom: 12px;
	}

	.f-widget-about p {
		margin-bottom: 8px;
	}

	.f-widget-about .address-list {
		margin-bottom: 8px;
	}

	.f-widget-newsletter {
		margin-top: 8px;
	}

	.f-widget-heading.follow {
		margin: 16px 0 10px;
	}

	.social-network {
		display: flex;
		flex-wrap: wrap;
		gap: 12px;
	}
}

/* ==========================================================================
   4. Promo strip compact on phones (2x2 grid)
   ========================================================================== */

@media (max-width: 767px) {
	.f-promo-box {
		padding: 20px 0 0;
	}

	.f-promo-box .divider {
		padding-bottom: 20px;
	}

	.promo-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px 12px;
	}

	.f-widget-item {
		gap: 10px;
	}

	.f-widget-item .widget-icon .schon-icon {
		width: 22px;
		height: 22px;
	}

	.f-promo-box-heading {
		font-size: 11px;
		line-height: 14px;
	}

	.f-widget-item p {
		font-size: 12px;
		line-height: 16px;
	}
}

/* ==========================================================================
   5. Footer bottom bar
   ========================================================================== */

@media (max-width: 767px) {
	.footer-area-inner {
		text-align: center;
		gap: 8px;
	}

	.footer-area-inner p {
		font-size: 12px;
		line-height: 18px;
	}

	.bank-card {
		justify-content: center;
	}

	.pay-chip {
		font-size: 10px;
		padding: 3px 6px;
	}
}

/* ==========================================================================
   6. Header row consistency on phones
   ========================================================================== */

@media (max-width: 767px) {
	.mt-bottom-bar-inner {
		flex-wrap: wrap;
	}

	/*
	 * The wordmark takes whatever the icons leave over on its row (flex 1 1 0
	 * from responsive.css) and is capped by height, not by a fixed width.
	 * It used to be capped at 110px/90px here, which on a 441x54 logotype
	 * meant an 11px-tall wordmark at 390px while 180px of its cell sat empty.
	 * The 8px right padding keeps it off the Wishlist icon.
	 */
	.mt-logo {
		flex: 1 1 0%;
		min-width: 0;
		padding-right: 8px;
	}

	.mt-logo .schon-logo-img {
		width: auto;
		max-width: 100%;
		max-height: 28px;
		height: auto;
	}

	.mt-header-search {
		order: 10;
		width: 100%;
		margin-top: 8px;
	}
}

/* ==========================================================================
   7. Sticky header spacer
   ========================================================================== */

@media (max-width: 767px) {
	.schon-header-spacer {
		min-height: 0;
	}
}

/* ==========================================================================
   8. Nav overlay
   ========================================================================== */

.schon-nav-overlay {
	position: fixed;
	inset: 0;
	z-index: 9998;
	background: rgba(0, 0, 0, 0.45);
	opacity: 0;
	transition: opacity 0.35s ease;
}

.schon-nav-overlay[hidden] {
	display: none;
}

.schon-nav-overlay.is-open {
	opacity: 1;
}

body.schon-locked {
	overflow: hidden;
}
