/**
 * Screen Reader / Simple Order Mode
 *
 * Only loaded when the body has class "sa-screenr1-mode" (see functions.php,
 * sa_screenr1_is_active()). Every rule below is scoped under that class so it
 * can never affect the standard site.
 *
 * Goals, in priority order:
 *   1. One linear column everywhere, at every viewport width, so DOM
 *      (reading) order and visual order always match.
 *   2. Large, high-contrast text and generous spacing.
 *   3. Big, obvious controls (44px+ touch targets, WCAG 2.2 SC 2.5.8).
 *   4. Remove purely decorative elements (product image galleries, cart
 *      thumbnails) that add noise for a screen reader user without adding
 *      information — product name/description/price already say what the
 *      item is.
 *   5. Strong, visible keyboard focus outlines on every interactive element.
 *   6. Never override display/visibility on an element the site's
 *      Conditional Logic for WooCommerce Product Add-Ons plugin controls
 *      with JS (.wc-pao-addon-container) — this mode must reveal the same
 *      pick-device-first, dependent-fields-appear-after sequence the
 *      standard product page does, just laid out more simply. See the
 *      .wc-pao-addon-container rule below for the specifics.
 */

/* ---------- Base ---------- */

body.sa-screenr1-mode {
	font-size: 20px;
	line-height: 1.6;
}

body.sa-screenr1-mode .sa-screenr1-instructions {
	background: #F0F5FA;
	border-left: 6px solid #046bd2;
	padding: 16px 20px;
	margin: 0 0 24px;
	font-size: 18px;
}

/* ---------- Single product (order selections) ---------- */

body.sa-screenr1-mode .custom-single-product {
	display: block !important;
	max-width: 700px;
	margin: 0 auto;
}

/* Decorative gallery images: name/description/price already convey the
   item; removing images cuts noise and any risk of missing/bad alt text. */
body.sa-screenr1-mode .woocommerce-product-gallery {
	display: none !important;
}

body.sa-screenr1-mode .product_title {
	font-size: 32px !important;
	margin: 0 0 16px !important;
}

body.sa-screenr1-mode .woocommerce-product-details__short-description {
	font-size: 20px !important;
	margin-bottom: 24px;
}

/* Order-selections (Product Add-Ons) fields: one per line, clearly spaced,
   full-width so nothing is cramped next to something else.
   Deliberately NOT forcing display on .wc-pao-addon-container: the site's
   Conditional Logic for WooCommerce Product Add-Ons plugin hides/reveals
   these same containers with jQuery .hide()/.show() (an inline
   display:none) based on earlier answers -- e.g. "Device Requested" must
   be picked before the fields that depend on it (valid Performance Date
   range, Seat Level, etc.) appear. A `display: block !important` here
   would beat that inline style and force every field to show at once,
   breaking the intended pick-device-first flow. Only .form-row (an inner
   wrapper the conditional-logic plugin never hides directly) gets the
   forced block layout; .wc-pao-addon-container gets everything else
   (width/float/margin) so it still lays out correctly once the plugin's
   own JS shows it. */
body.sa-screenr1-mode .wc-pao-addon-container {
	width: 100% !important;
	float: none !important;
	margin: 0 0 28px !important;
}

body.sa-screenr1-mode .form-row {
	display: block !important;
	width: 100% !important;
	float: none !important;
	margin: 0 0 28px !important;
}

body.sa-screenr1-mode .wc-pao-addon-name,
body.sa-screenr1-mode label {
	display: block;
	font-size: 19px;
	font-weight: 700;
	margin-bottom: 6px;
}

body.sa-screenr1-mode input[type="text"],
body.sa-screenr1-mode input[type="number"],
body.sa-screenr1-mode input[type="date"],
body.sa-screenr1-mode input[type="email"],
body.sa-screenr1-mode input[type="tel"],
body.sa-screenr1-mode textarea,
body.sa-screenr1-mode select {
	font-size: 19px;
	min-height: 44px;
	padding: 8px 12px;
	width: 100%;
	max-width: 420px;
	box-sizing: border-box;
}

body.sa-screenr1-mode button,
body.sa-screenr1-mode input[type="submit"],
body.sa-screenr1-mode .button {
	font-size: 19px;
	min-height: 44px;
	min-width: 44px;
	padding: 12px 22px;
}

/* ---------- Cart ---------- */

body.sa-screenr1-mode .sa-screenr1-cart {
	max-width: 700px;
	margin: 0 auto;
}

body.sa-screenr1-mode .sa-screenr1-cart-item {
	border: 1px solid #D1D5DB;
	border-radius: 6px;
	padding: 20px;
	margin-bottom: 20px;
}

/* Each Product Add-Ons selection is one <li>, already formatted as
   "Label: Value" by woocommerce/cart/cart-item-data.php — no separate
   label/value elements to lay out, just a plain vertical list. */
body.sa-screenr1-mode .sa-screenr1-cart-item .sa-screenr1-item-data {
	list-style: none;
	margin: 0;
	padding: 0;
}

body.sa-screenr1-mode .sa-screenr1-cart-item .sa-screenr1-item-data li {
	margin: 0 0 8px;
}

body.sa-screenr1-mode .sa-screenr1-cart-totals {
	border: 2px solid #045cb4;
	border-radius: 6px;
	padding: 20px;
	margin: 24px 0;
	font-size: 20px;
}

body.sa-screenr1-mode .sa-screenr1-cart-totals .sa-screenr1-grand-total {
	font-size: 24px;
	font-weight: 700;
}

/* ---------- Checkout ---------- */

body.sa-screenr1-mode .woocommerce-checkout #customer_details,
body.sa-screenr1-mode .woocommerce-checkout .col2-set,
body.sa-screenr1-mode .woocommerce-checkout .col-1,
body.sa-screenr1-mode .woocommerce-checkout .col-2,
body.sa-screenr1-mode .woocommerce-checkout #order_review,
body.sa-screenr1-mode .woocommerce-checkout .woocommerce-checkout-review-order {
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	float: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

body.sa-screenr1-mode .sa-screenr1-step-heading {
	font-size: 24px;
	font-weight: 700;
	margin: 32px 0 16px;
	padding-top: 24px;
	border-top: 2px solid #D1D5DB;
	text-align: left;
}

body.sa-screenr1-mode .sa-screenr1-step-heading:first-of-type {
	border-top: none;
	padding-top: 0;
	margin-top: 0;
}

body.sa-screenr1-mode #order_review table.shop_table {
	font-size: 19px;
	width: 100%;
}

body.sa-screenr1-mode #place_order {
	display: block;
	width: 100%;
	max-width: 420px;
	font-size: 22px;
	padding: 16px;
	margin-top: 16px;
}

/* ---------- Focus visibility (all pages, this mode) ---------- */

body.sa-screenr1-mode a:focus,
body.sa-screenr1-mode button:focus,
body.sa-screenr1-mode input:focus,
body.sa-screenr1-mode select:focus,
body.sa-screenr1-mode textarea:focus {
	outline: 3px solid #045cb4 !important;
	outline-offset: 2px !important;
}
