/* Schön — phone layer: store. Printed after responsive.css; see inc/enqueue.php.
 *
 * Every rule here is wrapped in @media (max-width: 767px) so it only fires on
 * phones. Specificity matches or exceeds the desktop rules in woocommerce.css
 * and responsive.css to win by source order without !important.
 *
 * Tokens: see mobile-brief.md / README — --schon-brand-yellow, --schon-ink,
 * --schon-surface, --schon-line, --schon-radius-pill, --schon-gutter (14px),
 * --schon-font-head, --schon-font-body.
 */

/* ==========================================================================
   A. My Account — navigation as horizontal chip strip
   --------------------------------------------------------------------------
   Desktop: 24% sidebar + 72% content (woocommerce.css :1005-1044).
   Phone: full-width horizontal scroll-snap chip strip above the content.
   ========================================================================== */

@media (max-width: 767px) {

	/* Break the side-by-side flex into a stack. */
	.woocommerce-account .woocommerce-MyAccount-navigation,
	.woocommerce-account .woocommerce-MyAccount-content {
		width: 100%;
	}

	/* Strip → horizontal scroll-snap chip row. */
	.woocommerce-account .woocommerce-MyAccount-navigation ul {
		display: flex;
		flex-wrap: nowrap;
		gap: 8px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x mandatory;
		padding: 0 var(--schon-gutter, 14px) 8px;
		margin: 0 calc(-1 * var(--schon-gutter, 14px)) 20px;
		border: 0;
		/* Hide scrollbar but keep function. */
		scrollbar-width: none;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation ul::-webkit-scrollbar {
		display: none;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation li {
		flex: 0 0 auto;
		scroll-snap-align: start;
		margin: 0;
		border-bottom: 0;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation li a {
		display: flex;
		align-items: center;
		height: 44px;
		padding: 0 16px;
		background: var(--schon-surface);
		border: 1px solid var(--schon-line);
		border-radius: var(--schon-radius-pill, 25px);
		color: var(--schon-ink);
		font-family: var(--schon-font-head);
		font-size: 11px;
		font-weight: 700;
		letter-spacing: 1px;
		text-transform: uppercase;
		white-space: nowrap;
		text-decoration: none;
	}

	/* Active / current chip: black fill, white text. */
	.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
	.woocommerce-account .woocommerce-MyAccount-navigation li a[aria-current="page"] {
		background: var(--schon-ink);
		border-color: var(--schon-ink);
		color: var(--schon-white, #fff);
	}

	.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
		background: var(--schon-ink);
		border-color: var(--schon-ink);
		color: var(--schon-white, #fff);
	}
}

/* ==========================================================================
   B. View-order page — compact header card + stacked table
   ========================================================================== */

/* Desktop: hide the mobile-only header card. */
.schon-order-header {
	display: none;
}

@media (max-width: 767px) {

	/* Show the phone header card. */
	.schon-order-header {
		display: block;
		margin-bottom: 20px;
		padding: 16px;
		background: var(--schon-surface);
		border-top: 2px solid var(--schon-ink);
	}

	.schon-order-header__status {
		margin: 0 0 12px;
		color: var(--schon-ink);
		font-family: var(--schon-font-body);
		font-size: 14px;
		line-height: 22px;
	}

	.schon-order-header__status .order-status {
		background: none;
		color: var(--schon-accent, #ec1e24);
		font-weight: 600;
	}

	.schon-order-header__actions {
		display: flex;
		flex-direction: column;
		gap: 10px;
	}

	/* Primary pay button: full-width black pill. */
	.schon-btn--pay {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		min-height: 48px;
		padding: 12px 24px;
		background: var(--schon-ink);
		border-radius: var(--schon-radius-pill, 25px);
		color: var(--schon-white, #fff);
		font-family: var(--schon-font-head);
		font-size: 14px;
		font-weight: 700;
		letter-spacing: 0;
		text-transform: uppercase;
		text-decoration: none;
		text-align: center;
	}

	.schon-btn--pay:hover,
	.schon-btn--pay:focus {
		background: var(--schon-accent, #ec1e24);
		color: var(--schon-white, #fff);
	}

	.schon-order-header__cancel {
		display: block;
		color: var(--schon-muted-2, #999);
		font-family: var(--schon-font-body);
		font-size: 13px;
		text-align: center;
		text-decoration: underline;
	}

	/* Hide the default status paragraph on phones (header card replaces it). */
	.woocommerce-account.woocommerce-view-order .woocommerce-MyAccount-content > p:first-child {
		display: none;
	}

	/* Order-details table → stacked rows. Overrides woocommerce.css :815-840. */
	.woocommerce table.woocommerce-table--order-details,
	.woocommerce table.order_details {
		display: block;
		border: 0;
	}

	.woocommerce table.woocommerce-table--order-details thead,
	.woocommerce table.order_details thead {
		display: none;
	}

	.woocommerce table.woocommerce-table--order-details tbody,
	.woocommerce table.woocommerce-table--order-details tfoot,
	.woocommerce table.order_details tbody,
	.woocommerce table.order_details tfoot {
		display: block;
	}

	.woocommerce table.woocommerce-table--order-details tbody tr,
	.woocommerce table.order_details tbody tr {
		display: flex;
		justify-content: space-between;
		align-items: baseline;
		padding: 10px 0;
		border-bottom: 1px solid var(--schon-line);
	}

	.woocommerce table.woocommerce-table--order-details tbody td,
	.woocommerce table.order_details tbody td {
		display: block;
		padding: 0;
		border: 0;
		font-size: 14px;
	}

	.woocommerce table.woocommerce-table--order-details tbody .product-name,
	.woocommerce table.order_details tbody .product-name {
		flex: 1 1 auto;
		min-width: 0;
	}

	.woocommerce table.woocommerce-table--order-details tbody .product-total,
	.woocommerce table.order_details tbody .product-total {
		flex: 0 0 auto;
		text-align: right;
		font-weight: 600;
	}

	/* Tfoot: total line emphasised. */
	.woocommerce table.woocommerce-table--order-details tfoot tr,
	.woocommerce table.order_details tfoot tr {
		display: flex;
		justify-content: space-between;
		padding: 8px 0;
		border-bottom: 1px solid var(--schon-line);
	}

	.woocommerce table.woocommerce-table--order-details tfoot th,
	.woocommerce table.woocommerce-table--order-details tfoot td,
	.woocommerce table.order_details tfoot th,
	.woocommerce table.order_details tfoot td {
		display: block;
		padding: 0;
		border: 0;
		background: none;
		font-size: 14px;
	}

	/*
	 * Actions row: hidden on phones. The header card above the table already
	 * carries the same Pay / Cancel links as a full-width pill and a text link
	 * (schon_view_order_header_card), so the table's row would be a third
	 * copy of the same two actions — the client's screenshot circled exactly
	 * these two overlapping pills inside a table cell.
	 */
	.woocommerce table.order_details tfoot tr:has(> th.order-actions--heading) {
		display: none;
	}

	/* Addresses → compact cards. Overrides col2-set from WC. */
	.woocommerce-columns--addresses.col2-set {
		display: grid;
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.woocommerce-columns--addresses .woocommerce-column {
		width: 100%;
		padding: 14px;
		background: var(--schon-surface);
	}

	.woocommerce-columns--addresses .woocommerce-column h2 {
		margin: 0 0 6px;
		font-size: 11px;
	}

	.woocommerce-columns--addresses address {
		font-size: 13px;
		line-height: 20px;
	}

	/* Single-address (no shipping) card. */
	.woocommerce-customer-details > h2 {
		font-size: 11px;
	}

	.woocommerce-customer-details > address {
		padding: 14px;
		background: var(--schon-surface);
		font-size: 13px;
		line-height: 20px;
	}
}

/* ==========================================================================
   C. Payment-failure notice (Zoho zpay bounce)
   --------------------------------------------------------------------------
   Styled as a woocommerce-info notice per the theme's notice rules
   (woocommerce.css :1050-1090). The button inside inherits the theme's pill
   button pattern at a compact size.
   ========================================================================== */

.schon-zpay-notice {
	/* Inherits .woocommerce-info from woocommerce.css */
	border-top-color: var(--schon-accent, #ec1e24);
}

.schon-zpay-notice .schon-btn-pay-retry {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	margin: 4px 6px;
	padding: 6px 18px;
	background: var(--schon-ink);
	border: 1px solid var(--schon-ink);
	border-radius: var(--schon-radius-pill, 25px);
	color: var(--schon-white, #fff);
	font-family: var(--schon-font-head);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: uppercase;
	text-decoration: none;
}

.schon-zpay-notice .schon-btn-pay-retry:hover {
	background: var(--schon-accent, #ec1e24);
	border-color: var(--schon-accent, #ec1e24);
	color: var(--schon-white, #fff);
}

/* ==========================================================================
   D. Order-pay page — collapsible summary + sticky pay bar
   --------------------------------------------------------------------------
   form-pay.php renders: table.shop_table → #payment(gateway list + submit).
   On phones we hide the full table and show schon-pay-summary (injected by
   woocommerce_pay_order_before_payment hook) which is a <details> toggle.
   The submit button's wrapper (.form-row inside #payment) gets sticky bottom.
   ========================================================================== */

/* Desktop: hide the mobile summary. */
.schon-pay-summary {
	display: none;
}

@media (max-width: 767px) {

	/* Hide the full table on phones; the details/summary replaces it. */
	.woocommerce-checkout.woocommerce-order-pay #order_review > .shop_table {
		display: none;
	}

	/* Show the compact summary. */
	.schon-pay-summary {
		display: block;
		margin-bottom: 16px;
		background: var(--schon-surface);
		border: 1px solid var(--schon-line);
	}

	.schon-pay-summary__toggle {
		display: flex;
		align-items: center;
		min-height: 48px;
		padding: 12px 16px;
		cursor: pointer;
		color: var(--schon-ink);
		font-family: var(--schon-font-head);
		font-size: 13px;
		font-weight: 700;
		letter-spacing: 0;
		line-height: 20px;
		list-style: none;
	}

	.schon-pay-summary__toggle::-webkit-details-marker {
		display: none;
	}

	.schon-pay-summary__toggle::after {
		content: "▸";
		margin-left: auto;
		font-size: 12px;
		transition: transform 0.2s ease;
	}

	.schon-pay-summary[open] .schon-pay-summary__toggle::after {
		transform: rotate(90deg);
	}

	.schon-pay-summary__items {
		padding: 0 16px 12px;
	}

	.schon-pay-summary__row {
		display: flex;
		justify-content: space-between;
		align-items: baseline;
		padding: 6px 0;
		border-top: 1px solid var(--schon-line);
		font-size: 13px;
		line-height: 20px;
		color: var(--schon-body, #666);
	}

	.schon-pay-summary__name {
		flex: 1 1 auto;
		min-width: 0;
	}

	.schon-pay-summary__qty {
		color: var(--schon-muted-2, #999);
	}

	.schon-pay-summary__price {
		flex: 0 0 auto;
		font-weight: 600;
		color: var(--schon-ink);
		padding-left: 12px;
	}

	/* Gateway list: tighter on phones. */
	.woocommerce-checkout.woocommerce-order-pay #payment {
		background: var(--schon-surface);
	}

	.woocommerce-checkout.woocommerce-order-pay #payment ul.payment_methods {
		padding: 12px;
	}

	/* Sticky pay button bar → fixed for same #wrapper overflow-x:clip reason. */
	.woocommerce-checkout.woocommerce-order-pay #payment .form-row {
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		z-index: 10;
		padding: 12px 16px;
		margin: 0;
		background: var(--schon-white, #fff);
		border-top: 1px solid var(--schon-line);
		box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
	}

	.woocommerce-checkout.woocommerce-order-pay #place_order {
		width: 100%;
		min-height: 48px;
		font-size: 14px;
	}

	/* Reduce the page padding so content starts earlier. */
	.woocommerce-checkout.woocommerce-order-pay .schon-woo-page {
		padding-top: 20px;
		padding-bottom: 80px; /* Room for the sticky bar. */
	}
}

/* ==========================================================================
   E. Block cart — compact line items + sticky checkout bar
   --------------------------------------------------------------------------
   The live site uses the WooCommerce block cart (.wp-block-woocommerce-cart).
   Cart blocks render React markup — CSS only, no template hooks.
   ========================================================================== */

@media (max-width: 767px) {

	.wp-block-woocommerce-cart .schon-woo-page,
	.woocommerce-cart .schon-woo-page {
		padding-top: 16px;
		padding-bottom: 80px;
	}

	/* Line items: smaller thumbnails, tighter spacing. */
	.wc-block-cart-items .wc-block-cart-items__row {
		padding: 12px 0;
	}

	.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-image {
		width: 64px;
		min-width: 64px;
	}

	.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-image img {
		width: 64px;
		height: 64px;
		object-fit: cover;
	}

	/* Product name smaller. */
	.wp-block-woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name {
		font-size: 14px;
		line-height: 20px;
	}

	/* Metadata (variations, etc). */
	.wc-block-cart-items .wc-block-components-product-metadata {
		font-size: 12px;
	}

	/* Qty stepper and remove on one row. */
	.wc-block-cart-items .wc-block-cart-item__quantity {
		display: flex;
		align-items: center;
		gap: 8px;
		flex-wrap: nowrap;
	}

	/* Cart sidebar / totals. */
	.wc-block-cart__sidebar {
		padding-top: 0;
	}

	/* Collapse the shipping calculator by default on phones.
	   WC blocks uses a panel toggle; just make sure it starts closed. */
	.wc-block-components-shipping-calculator {
		font-size: 13px;
	}

	/* Sticky bottom bar for Checkout CTA.
	   The blocks cart sidebar already has a "Proceed to Checkout" button at the
	   bottom of the sidebar. On phones the sidebar is below the items, so we
	   make the submit area fixed (sticky blocked by #wrapper overflow-x:clip). */
	.schon-flow-cart .wc-block-cart__submit-container {
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		z-index: 10;
		padding: 12px var(--schon-gutter, 14px);
		margin: 0;
		background: var(--schon-white, #fff);
		border-top: 1px solid var(--schon-line);
		box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
	}

	.wc-block-cart__submit-button {
		width: 100%;
		min-height: 48px;
	}

	/* Coupon panel: keep reachable but compact. */
	.wc-block-components-totals-coupon {
		font-size: 13px;
	}

	/* Classic cart fallback (if ever switched). */
	.woocommerce-cart-form table.shop_table {
		border: 0;
	}

	.woocommerce-cart-form table.shop_table img {
		width: 64px;
	}

	/* Classic cart totals sticky bar. */
	.woocommerce-cart .cart-collaterals,
	.woocommerce-page .cart-collaterals {
		display: block;
	}

	.woocommerce-cart .cart_totals .wc-proceed-to-checkout {
		position: sticky;
		bottom: 0;
		z-index: 10;
		padding: 12px 0;
		background: var(--schon-white, #fff);
		border-top: 1px solid var(--schon-line);
	}

	.woocommerce-cart .cart_totals .wc-proceed-to-checkout .button.checkout-button {
		width: 100%;
		min-height: 48px;
	}
}

/* ==========================================================================
   F. Block checkout — compact, sticky place-order
   --------------------------------------------------------------------------
   CSS-only changes on the WooCommerce block checkout. The order summary is
   already a collapsible panel on mobile (WC blocks JS handles it); we just
   refine the spacing and make the place-order area sticky.
   ========================================================================== */

@media (max-width: 767px) {

	.wp-block-woocommerce-checkout .schon-woo-page,
	.woocommerce-checkout:not(.woocommerce-order-pay) .schon-woo-page {
		padding-top: 16px;
		padding-bottom: 80px;
	}

	/* Tighter field spacing. WC blocks default is generous. */
	.wc-block-components-checkout-step {
		padding-bottom: 12px;
	}

	.wc-block-components-checkout-step__content {
		padding-bottom: 0;
	}

	/* The order-summary panel on mobile is already a toggle in WC blocks.
	   Make sure it starts collapsed by overriding any forced open state. */
	.wc-block-checkout__sidebar .wc-block-components-panel {
		border-color: var(--schon-line);
	}

	/* Sticky place-order bar. The checkout sidebar on mobile renders below
	   the fields; the place-order button is at the very bottom.
	   Note: #wrapper has overflow-x:clip (schon.css :316) which blocks
	   position:sticky. Use fixed positioning on flow pages instead. */
	.schon-flow-checkout .wc-block-checkout__actions_row {
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		z-index: 10;
		padding: 12px var(--schon-gutter, 14px);
		margin: 0;
		background: var(--schon-white, #fff);
		border-top: 1px solid var(--schon-line);
		box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
	}

	.wc-block-components-checkout-place-order-button {
		width: 100%;
		min-height: 48px;
	}

	/* Total badge beside the button (if the markup permits).
	   WC blocks renders the total in the sidebar; on mobile the sidebar is
	   above the button, so repeating it is not needed — just ensure the
	   existing total row is visible and emphasised. */
	.wc-block-components-totals-footer-item .wc-block-formatted-money-amount {
		font-size: 18px;
	}

	/* Checkout grid: single column. Override woocommerce.css :997. */
	.schon-checkout-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}

/* ==========================================================================
   General store pages — shared phone tweaks
   ========================================================================== */

@media (max-width: 767px) {

	/* Reduce the overall page padding on store pages for more content room. */
	.schon-woo-page {
		padding: 20px 0 40px;
	}

	/* Notices on phones: full-width toast card, same icon badge as desktop
	   (used to be hidden here pre-redesign — now load-bearing, keep it).
	   The action pill drops to its own full-width row when the message
	   wraps, instead of being squeezed onto the text's line. */
	.woocommerce-message,
	.woocommerce-info,
	.woocommerce-noreviews,
	p.no-comments,
	.woocommerce-error li {
		padding: 14px 16px;
		font-size: 13px;
	}

	.woocommerce-message::before,
	.woocommerce-info::before,
	.woocommerce-noreviews::before,
	p.no-comments::before,
	.woocommerce-error li::before {
		width: 22px;
		height: 22px;
	}

	.woocommerce-message .button,
	.woocommerce-info .button,
	.woocommerce-error li .button {
		width: 100%;
		margin-left: 0;
		justify-content: center;
	}

	/* Order notes on view-order: compact. */
	.woocommerce-OrderUpdates {
		padding-left: 0;
		list-style: none;
	}

	.woocommerce-OrderUpdate-text {
		margin-left: 0;
		padding: 12px;
		border: 1px solid var(--schon-line);
	}

	/* Orders list table on /my-account/orders/ — keep it readable. */
	.woocommerce-MyAccount-orders.shop_table_responsive td::before {
		font-family: var(--schon-font-head);
		font-size: 11px;
		letter-spacing: 1px;
		text-transform: uppercase;
	}

	/* Order actions buttons in the orders list. */
	.woocommerce-MyAccount-orders .order-actions-button {
		min-height: 40px;
		padding: 8px 14px;
		font-size: 11px;
	}
}

/* ==========================================================================
   G. Flow-page chrome reduction (≤767px)
   --------------------------------------------------------------------------
   On purchase-flow pages (body.schon-flow) the search bar and full page-hero
   are replaced by a single 48px title bar so the CTA appears in the first
   viewport. Desktop is untouched — only phone media queries are used.
   ========================================================================== */

/* Desktop: hide the phone-only flow bar. */
.schon-flow-bar {
	display: none;
}

@media (max-width: 767px) {

	/* Hide the full-width search bar row on flow pages. */
	.schon-flow .mt-header-search {
		display: none;
	}

	/* Hide the grey page-hero (title + breadcrumb) on flow pages. */
	.schon-flow .schon-page-head {
		display: none;
	}

	/* Show the slim title bar. */
	.schon-flow .schon-flow-bar {
		display: flex;
		align-items: center;
		justify-content: space-between;
		height: 44px;
		padding: 0 var(--schon-gutter, 14px);
		background: var(--schon-surface);
		border-bottom: 1px solid var(--schon-line);
	}

	.schon-flow-bar__title {
		color: var(--schon-ink);
		font-family: var(--schon-font-head);
		font-size: 14px;
		font-weight: 700;
		letter-spacing: 0.5px;
		text-transform: uppercase;
		line-height: 44px;
	}

	.schon-flow-bar__step {
		color: var(--schon-muted-2, #999);
		font-family: var(--schon-font-body);
		font-size: 12px;
		font-weight: 400;
		line-height: 44px;
	}
}

/* ==========================================================================
   G2. Enhanced cart compactness
   --------------------------------------------------------------------------
   Further tighten cart rows: hide description, clamp title to 2 lines,
   put price × qty on one line. Target: ≤120px per line row.
   ========================================================================== */

@media (max-width: 767px) {

	/* Hide product description / metadata in cart rows. */
	.wc-block-cart-items .wc-block-components-product-metadata__description,
	.wc-block-cart-items .wc-block-components-product-metadata {
		display: none;
	}

	/* Clamp product name to 2 lines. */
	.wp-block-woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name {
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
		font-size: 13px;
		line-height: 18px;
	}

	/* Save badge: hide to keep rows tight. */
	.wc-block-cart-items .wc-block-components-sale-badge {
		display: none;
	}

	/* Price line: compact. */
	.wc-block-cart-items .wc-block-components-product-price {
		font-size: 13px;
		line-height: 18px;
	}

	/* Tighten the overall row — image + text side by side, max ~110px. */
	.wc-block-cart-items .wc-block-cart-items__row {
		padding: 10px 0;
		gap: 10px;
	}

	/* Qty stepper: smaller. */
	.wc-block-cart-items .wc-block-components-quantity-selector {
		transform: scale(0.9);
		transform-origin: left center;
	}
}

/* ==========================================================================
   G3. Enhanced checkout compactness
   --------------------------------------------------------------------------
   Tighter fields, compact payment radios, hide added-to-cart notice.
   ========================================================================== */

@media (max-width: 767px) {

	/* Field height. WC block fields have their own sizing; override generously. */
	.wc-block-components-text-input input,
	.wc-block-components-text-input select,
	.wc-block-components-combobox .components-combobox-control input {
		height: 48px;
		min-height: 48px;
		font-size: 14px;
	}

	/* Section headings: compact. */
	.wc-block-components-checkout-step__heading {
		font-size: 14px;
		line-height: 20px;
		margin-bottom: 8px;
	}

	/* Step spacing: tighter gaps. */
	.wc-block-components-checkout-step {
		padding-bottom: 8px;
		margin-bottom: 0;
	}

	/* Step description: compact. */
	.wc-block-components-checkout-step__description {
		font-size: 12px;
		line-height: 16px;
		margin-bottom: 8px;
	}

	/* Payment method options: compact radio rows. */
	.wc-block-components-radio-control .wc-block-components-radio-control__option {
		padding: 10px 12px;
		min-height: 44px;
	}

	.wc-block-components-radio-control__label {
		font-size: 14px;
	}

	.wc-block-components-radio-control__description {
		font-size: 12px;
		line-height: 16px;
	}

	/* Privacy paragraph: small and muted. */
	.wc-block-checkout__actions .wc-block-components-checkout-policies,
	.woocommerce-terms-and-conditions-wrapper {
		font-size: 11px;
		line-height: 16px;
		color: var(--schon-muted-2, #999);
	}

	/* Hide added-to-cart notice on checkout pages. */
	.schon-flow-checkout .woocommerce-message,
	.schon-flow-checkout .wc-block-components-notice-banner.is-success {
		display: none;
	}
}

/* ==========================================================================
   G4. Enhanced view-order
   --------------------------------------------------------------------------
   COD link, addresses collapsible feel, zpay notice compact.
   ========================================================================== */

/* Desktop: hide the COD link (it's for phone flow). */
.schon-order-header__cod {
	display: none;
}

@media (max-width: 767px) {

	/* COD link: muted text link below the header card actions. */
	.schon-order-header__cod {
		display: block;
		margin-top: 4px;
		color: var(--schon-accent, #ec1e24);
		font-family: var(--schon-font-body);
		font-size: 13px;
		text-align: center;
		text-decoration: underline;
	}

	/* Move zpay notice closer to header card. */
	.schon-flow-view-order .schon-zpay-notice {
		margin-top: -10px;
		margin-bottom: 16px;
		padding: 10px 14px;
		font-size: 13px;
	}

	/* Addresses: visual separation but collapsed-feel. */
	.schon-flow-view-order .woocommerce-columns--addresses {
		margin-top: 16px;
	}

	.schon-flow-view-order .woocommerce-columns--addresses .woocommerce-column h2 {
		margin: 0 0 4px;
		font-size: 10px;
		letter-spacing: 1px;
		text-transform: uppercase;
	}

	/* Order notes: tighter on view-order. */
	.schon-flow-view-order .woocommerce-OrderUpdates {
		margin-top: 16px;
	}

	.schon-flow-view-order .woocommerce-OrderUpdate {
		margin-bottom: 8px;
	}

	/* Hide the chip strip on view-order — header card has all info. */
	.schon-flow-view-order .woocommerce-MyAccount-navigation {
		display: none;
	}

	/* Hide stray added-to-cart notices on view-order. */
	.schon-flow-view-order .woocommerce-message {
		display: none;
	}

	/* Reduce content padding on view-order. */
	.schon-flow-view-order .schon-woo-page {
		padding-top: 8px;
	}
}

/* ==========================================================================
   G5. Enhanced order-pay
   --------------------------------------------------------------------------
   Zoho description one line, launch_widget notice, compact payment methods.
   ========================================================================== */

@media (max-width: 767px) {

	/* Payment method descriptions: clamp to one line. */
	.schon-flow-order-pay #payment .payment_method_zpay .payment_box,
	.schon-flow-order-pay #payment .payment_method_zpay .payment_box p {
		display: -webkit-box;
		-webkit-line-clamp: 1;
		-webkit-box-orient: vertical;
		overflow: hidden;
		font-size: 12px;
		line-height: 18px;
	}

	/* Payment method rows: compact. */
	.schon-flow-order-pay #payment ul.payment_methods li {
		padding: 8px 12px;
		border-bottom: 1px solid var(--schon-line);
	}

	.schon-flow-order-pay #payment ul.payment_methods li:last-child {
		border-bottom: 0;
	}

	.schon-flow-order-pay #payment ul.payment_methods li label {
		font-size: 14px;
		min-height: 44px;
		display: flex;
		align-items: center;
		gap: 8px;
		cursor: pointer;
	}

	.schon-flow-order-pay #payment ul.payment_methods li input[type="radio"] {
		width: 20px;
		height: 20px;
		flex: 0 0 auto;
	}

	/* Reduce page padding on order-pay. */
	.schon-flow-order-pay .schon-woo-page {
		padding-top: 8px;
		padding-bottom: 80px;
	}
}

/* Zoho launch notice. */
.schon-zpay-launching {
	padding: 10px 14px;
	margin-bottom: 12px;
	background: #fff8e1;
	border-left: 3px solid #fbc02d;
	font-family: var(--schon-font-body);
	font-size: 13px;
	line-height: 20px;
	color: var(--schon-ink);
}

/* ==========================================================================
   H. Flow-page footer collapse (≤767px)
   --------------------------------------------------------------------------
   On cart / checkout / order-pay / view-order phone screens, the footer
   collapses to just payment badges + copyright. The promo strip, nav
   accordions, newsletter, logo and social links are all hidden.
   ========================================================================== */

@media (max-width: 767px) {

	/* Hide the promo strip. */
	.schon-flow-cart .f-promo-box,
	.schon-flow-checkout .f-promo-box,
	.schon-flow-order-pay .f-promo-box,
	.schon-flow-view-order .f-promo-box,
	.schon-flow-order-received .f-promo-box {
		display: none;
	}

	/* Hide the footer main section (logo, accordions, newsletter, social). */
	.schon-flow-cart .footer-holder,
	.schon-flow-checkout .footer-holder,
	.schon-flow-order-pay .footer-holder,
	.schon-flow-view-order .footer-holder,
	.schon-flow-order-received .footer-holder {
		display: none;
	}

	/* Keep just the footer-area (copyright + payment badges). */
	.schon-flow-cart .footer-area,
	.schon-flow-checkout .footer-area,
	.schon-flow-order-pay .footer-area,
	.schon-flow-view-order .footer-area,
	.schon-flow-order-received .footer-area {
		padding: 12px 0;
	}
}

/* ==========================================================================
   I. Respect prefers-reduced-motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	.schon-pay-summary__toggle::after,
	.schon-pay-summary[open] .schon-pay-summary__toggle::after {
		transition: none;
	}
}
