/*
Theme Name:     RTO Works Demo (Astra Child)
Theme URI:
Description:    Astra child theme — RTO Works (Demo) branding. Internal demo only (noindex).
Author:         RTO Works Demo
Author URI:
Template:       astra
Version:        0.12.2
*/

/* =========================================================================
   Brand tokens (exact RTO Works palette)
   - Heading / primary font / table headers: #01556F  (--rto-teal-dark)
   - Secondary teal / accent / links:        #0B95AA  (--rto-teal)
   - Buttons (primary):                       #61BC97  (--rto-green)
   ========================================================================= */
:root {
	--rto-teal: #0B95AA;       /* accent: links, icons, username, "View" links */
	--rto-teal-dark: #01556F;  /* headings + all table header rows */
	--rto-green: #61BC97;      /* primary buttons */
	--rto-green-dark: #4fa885; /* button hover */
	--rto-ink: #2c3e50;        /* primary nav text */
	--rto-bg: #f1f8f6;
	--rto-border: #e4e9ee;
	--rto-field: #f7f9fb;
	--rto-footer-bg: #005570;  /* footer background */
}

/* =========================================================================
   Global typography & colours
   ========================================================================= */
body,
button,
input,
select,
textarea,
.ast-container {
	font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
	color: #3a3a3a;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.woocommerce-account .woocommerce h1,
.woocommerce-account .woocommerce h2,
.woocommerce-account .woocommerce h3 {
	font-family: "Open Sans", sans-serif;
	color: var(--rto-teal-dark);
	font-weight: 700;
}

a {
	color: var(--rto-teal);
}
a:hover {
	color: var(--rto-teal-dark);
}

/* =========================================================================
   Buttons — green, rounded
   ========================================================================= */
.button,
button,
input[type="submit"],
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.ast-button,
.wp-block-button__link {
	background-color: var(--rto-green);
	border: none;
	color: #fff;
	border-radius: 26px;
	padding: 0.7em 1.8em;
	font-weight: 600;
	font-family: "Open Sans", sans-serif;
	transition: background-color 0.15s ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
	background-color: var(--rto-green-dark);
	color: #fff;
}

/* =========================================================================
   Header / brand — RTO Works logo image (assets/logo.png)
   ========================================================================= */
.site-title a {
	display: inline-block;
	width: 215px;
	height: 52px;
	background-image: url("assets/logo.png");
	background-repeat: no-repeat;
	background-position: left center;
	background-size: contain;
	font-size: 0 !important;
	line-height: 0 !important;
	text-indent: -9999px;
	overflow: hidden;
}

/* Primary navigation */
.main-header-menu .menu-link,
.ast-builder-menu .menu-link,
.main-navigation a {
	color: var(--rto-ink);
	font-weight: 500;
	font-family: "Open Sans", sans-serif;
}
.main-header-menu .menu-link:hover,
.main-header-menu .current-menu-item > .menu-link,
.ast-builder-menu .menu-link:hover {
	color: var(--rto-teal);
}

/* =========================================================================
   Form fields (login, account details, etc.)
   ========================================================================= */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-account input[type="text"],
.woocommerce-account input[type="email"],
.woocommerce-account input[type="password"],
.woocommerce-account input[type="tel"],
.woocommerce-account select {
	background: var(--rto-field);
	border: 1px solid var(--rto-border);
	border-radius: 6px;
	padding: 12px 14px;
	box-shadow: none;
	color: #444;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce-account input:focus,
.woocommerce-account select:focus {
	border-color: var(--rto-teal);
	outline: none;
}
.woocommerce form .form-row label,
.woocommerce-account label {
	color: #555;
	font-weight: 500;
}
.required,
.woocommerce .required {
	color: #e02b4d;
	border: 0;
}

/* =========================================================================
   LOGIN PAGE  (My Account, logged out)
   Centered white card on a light background.
   ========================================================================= */
body.woocommerce-account:not(.logged-in) {
	background: var(--rto-bg);
}

body.woocommerce-account:not(.logged-in) .woocommerce {
	max-width: 760px;
	margin: 40px auto;
	background: #fff;
	border: 1px solid var(--rto-border);
	border-radius: 10px;
	box-shadow: 0 6px 24px rgba(14, 124, 157, 0.06);
	padding: 48px 56px;
}

/* Hide WooCommerce's default "Login" <h2>; we render our own heading. */
body.woocommerce-account:not(.logged-in) .woocommerce > h2,
body.woocommerce-account:not(.logged-in) .u-column1 > h2 {
	display: none;
}

/* Our injected heading + subtext — tuned to match preview login page.webp:
   deeper teal, ~30px, semibold (not 34px/700). */
.rto-login-heading {
	text-align: center;
	margin-bottom: 34px;
}
.rto-login-heading h2 {
	font-size: 30px;
	font-weight: 600;
	color: var(--rto-teal-dark);
	letter-spacing: -0.2px;
	margin: 0 0 12px;
}
.rto-login-heading p {
	color: #4a4a4a;
	margin: 0;
	font-size: 16px;
	font-weight: 400;
}
.rto-login-heading a {
	color: var(--rto-teal);
	text-decoration: underline;
}

/* Login card field labels — regular weight, neutral grey, 16px (per reference). */
body.woocommerce-account:not(.logged-in) .woocommerce form .form-row label {
	font-weight: 400;
	color: #4a4a4a;
	font-size: 16px;
}
body.woocommerce-account:not(.logged-in) .woocommerce-form-login__rememberme {
	font-size: 16px;
	color: #4a4a4a;
}

/* The login form column = full width inside the card */
body.woocommerce-account:not(.logged-in) .col2-set,
body.woocommerce-account:not(.logged-in) .u-columns {
	display: block;
	width: 100%;
}
body.woocommerce-account:not(.logged-in) .col2-set .col-1,
body.woocommerce-account:not(.logged-in) .u-column1 {
	width: 100%;
	float: none;
	max-width: 100%;
	padding: 0;
}
body.woocommerce-account:not(.logged-in) form.woocommerce-form-login {
	border: none;
	padding: 0;
	margin: 0;
}

/* Green pill "Log in" button, centered */
.woocommerce-form-login__submit {
	display: block;
	min-width: 150px;
	margin: 18px auto 0;
	background: var(--rto-green) !important;
	border-radius: 26px !important;
}
.woocommerce-form-login__rememberme {
	font-weight: 400;
	color: #555;
}
.woocommerce-LostPassword a {
	color: var(--rto-teal);
}

/* =========================================================================
   MY ACCOUNT  (logged in) — sidebar + content layout
   ========================================================================= */
body.woocommerce-account.logged-in {
	background: var(--rto-bg);
}

.woocommerce-account.logged-in .woocommerce {
	display: flex;
	gap: 28px;
	align-items: flex-start;
}

/* Sidebar navigation */
.woocommerce-account .woocommerce-MyAccount-navigation {
	width: 230px;
	flex: 0 0 230px;
	float: none;
	margin: 0;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.woocommerce-account .woocommerce-MyAccount-navigation li {
	margin: 2px 0;
	border: none;
}
.woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 16px;
	border-radius: 8px;
	color: #6a7884;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.12s ease, color 0.12s ease;
}
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
	background: rgba(14, 124, 157, 0.06);
	color: var(--rto-teal);
}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
	background: #cfe7ee;
	color: var(--rto-teal);
	font-weight: 600;
}
/* Sidebar icons — provided PNG files in /icons.
   mix-blend-mode hides each PNG's baked light background against both the sidebar
   and the active light-teal pill, leaving just the navy glyph. */
.woocommerce-account .woocommerce-MyAccount-navigation li a::before {
	content: "";
	display: inline-block;
	width: 22px;
	height: 20px;
	flex: 0 0 22px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	mix-blend-mode: multiply;
}
.woocommerce-MyAccount-navigation-link--dashboard a::before { background-image: url("icons/dashboard.png"); }
.woocommerce-MyAccount-navigation-link--downloads a::before { background-image: url("icons/downloads.png"); }
.woocommerce-MyAccount-navigation-link--membership a::before { background-image: url("icons/membership.png"); }
.woocommerce-MyAccount-navigation-link--orders a::before { background-image: url("icons/orders.png"); }
.woocommerce-MyAccount-navigation-link--edit-account a::before { background-image: url("icons/account-details.png"); }
.woocommerce-MyAccount-navigation-link--payment-methods a::before { background-image: url("icons/payment-methods.png"); }
.woocommerce-MyAccount-navigation-link--customer-logout a::before { background-image: url("icons/logout.png"); }

/* =========================================================================
   Content card
   ========================================================================= */
.woocommerce-account .woocommerce-MyAccount-content {
	flex: 1 1 auto;
	width: auto;
	float: none;
	background: #fff;
	border: 1px solid var(--rto-border);
	border-radius: 10px;
	box-shadow: 0 6px 24px rgba(14, 124, 157, 0.05);
	padding: 36px 40px;
	min-height: 520px;
}
.woocommerce-account .woocommerce-MyAccount-content > h1,
.woocommerce-account .woocommerce-MyAccount-content h2 {
	color: var(--rto-teal-dark);
	margin-top: 0;
}

/* The My Account page has a default page H1 ("My account") above the columns. */
.woocommerce-account .entry-title {
	display: none;
}

/* Per-endpoint headings (Dashboard / Orders / …) */
.rto-endpoint-title {
	font-size: 30px;
	font-weight: 700;
	color: var(--rto-teal-dark);
	margin: 0 0 6px;
}
.rto-endpoint-sub {
	color: #5a6b73;
	margin: 0 0 26px;
	font-size: 15px;
}
/* "← Back" link on the single-order view */
.rto-back-link {
	margin: 0 0 10px;
}
.rto-back-link a {
	color: var(--rto-teal);
	font-weight: 500;
	text-decoration: none;
}
.rto-back-link a:hover {
	text-decoration: underline;
}

/* =========================================================================
   ORDERS TABLE  (dark teal header row)
   ========================================================================= */
/* Orders table: outer #d4d4d4 border only (no internal lines), compact rows,
   zebra striping (1st row grey), navy header. Matches "Orders main page.jpg". */
.woocommerce-account .woocommerce-orders-table,
.woocommerce-account .woocommerce-orders-table.shop_table {
	width: 100%;
	border: 1px solid #d4d4d4; /* outer border only */
	border-radius: 0;
	border-collapse: collapse;
	border-spacing: 0;
	overflow: hidden;
}
.woocommerce-account .woocommerce-orders-table thead th {
	background: var(--rto-teal-dark);
	color: #fff;
	font-weight: 600;
	padding: 12px 18px;
	border: none;
	text-align: left;
}
.woocommerce-account .woocommerce-orders-table tbody td,
.woocommerce-account .woocommerce-orders-table tbody th {
	padding: 9px 18px;
	color: #54616b;
	font-weight: 400;
}
/* No internal borders anywhere in the orders table (outer border only). */
.woocommerce-account .woocommerce-orders-table th,
.woocommerce-account .woocommerce-orders-table td {
	border: none !important;
}
/* Zebra striping — 1st row #f6f6f6, 2nd #fff, alternating */
.woocommerce-account .woocommerce-orders-table tbody tr:nth-child(odd) {
	background: #f6f6f6;
}
.woocommerce-account .woocommerce-orders-table tbody tr:nth-child(even) {
	background: #ffffff;
}
.woocommerce-orders-table__cell-order-number a {
	color: var(--rto-teal);
	font-weight: 600;
}

/* "View" action as a plain teal link, not a button */
.woocommerce-orders-table__cell-order-actions .button,
.woocommerce-orders-table__cell-order-actions a.button {
	background: none !important;
	color: var(--rto-teal) !important;
	padding: 0 !important;
	border-radius: 0 !important;
	font-weight: 500;
	box-shadow: none;
}
.woocommerce-orders-table__cell-order-actions .button:hover {
	text-decoration: underline;
	background: none !important;
}

/* =========================================================================
   SINGLE ORDER VIEW — matches "Order details example".
   Same table styling as the orders list: outer #d4d4d4 border, no internal
   borders, compact, navy header, zebra product rows.
   ========================================================================= */

/* Section titles ("Order details", "Billing address") — charcoal, per reference.
   (Higher specificity to beat the global teal heading rule.) */
.woocommerce-account .woocommerce .woocommerce-order-details__title,
.woocommerce-account .woocommerce .woocommerce-column__title,
.woocommerce-account .woocommerce .woocommerce-customer-details h2,
.woocommerce-order-details__title,
.woocommerce-customer-details h2 {
	color: #3a4a52;
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 16px;
}

/* The "Billing address" heading must be PLAIN bold text — Astra puts a
   border/background on it; clear every side + the fill. Only the address
   card below it is bordered. */
.woocommerce-account .woocommerce .woocommerce-customer-details h2.woocommerce-column__title,
.woocommerce-customer-details .woocommerce-column__title,
.woocommerce-customer-details h2 {
	border: 0 none !important;
	border-top: 0 none !important;
	border-bottom: 0 none !important;
	border-left: 0 none !important;
	border-right: 0 none !important;
	background: none !important;
	box-shadow: none !important;
	padding: 0 !important;
}

/* Subtext: bold date + status (strip the default <mark> highlight) */
.woocommerce-MyAccount-content mark,
.woocommerce-order mark,
.woocommerce mark.order-date,
.woocommerce mark.order-status {
	background: transparent;
	color: inherit;
	font-weight: 700;
}

/* Order details table frame */
.woocommerce table.shop_table.woocommerce-table--order-details {
	width: 100%;
	border: 1px solid #d4d4d4;
	border-radius: 0;
	border-collapse: collapse;
	border-spacing: 0;
	overflow: hidden;
	margin: 0 0 26px;
}
.woocommerce table.woocommerce-table--order-details th,
.woocommerce table.woocommerce-table--order-details td {
	border: none !important;
}
.woocommerce table.woocommerce-table--order-details thead th {
	background: var(--rto-teal-dark);
	color: #fff;
	font-weight: 700;
	padding: 13px 20px;
	text-align: left;
}
.woocommerce table.woocommerce-table--order-details thead th.product-total {
	text-align: right;
}

/* Product rows */
.woocommerce-table--order-details tbody td {
	padding: 14px 20px;
	vertical-align: top;
	color: #54616b;
	font-size: 15px;
}
.woocommerce-table--order-details tbody tr.order_item:nth-of-type(odd) {
	background: #f6f6f6;
}
.woocommerce-table--order-details tbody tr.order_item:nth-of-type(even) {
	background: #ffffff;
}
.woocommerce-table--order-details td.product-total {
	text-align: right;
	vertical-align: bottom;
	white-space: nowrap;
}

/* Line-item structure: code (bold) / name / muted sub-line */
.rto-product-code {
	display: block;
	color: #3a4a52;
	font-weight: 700;
	font-size: 16px;
}
.rto-product-name {
	display: block;
	color: #54616b;
	margin: 2px 0 0;
}
.rto-product-name--solo {
	color: #3a4a52;
	font-weight: 700;
	font-size: 16px;
}
.woocommerce-table--order-details .product-quantity {
	color: #8a96a0;
	font-weight: 600;
}
.rto-product-subline {
	display: block;
	color: var(--rto-teal);
	font-size: 13.5px;
	margin: 9px 0 0;
}

/* Totals (tfoot): labels left bold, values right teal/bold; GST sub-line */
.woocommerce-table--order-details tfoot th,
.woocommerce-table--order-details tfoot td {
	padding: 12px 20px;
	font-size: 15px;
}
.woocommerce-table--order-details tfoot th {
	text-align: left;
	color: #3a4a52;
	font-weight: 700;
}
.woocommerce-table--order-details tfoot td {
	text-align: right;
	color: var(--rto-teal-dark);
	font-weight: 700;
}
.woocommerce-table--order-details tfoot tr:first-child th,
.woocommerce-table--order-details tfoot tr:first-child td {
	border-top: 1px solid #e6e9ec !important;
}
.woocommerce-table--order-details tfoot small,
.woocommerce-table--order-details tfoot .tax_label,
.woocommerce-table--order-details tfoot .includes_tax {
	display: block;
	color: var(--rto-teal);
	font-weight: 400;
	font-size: 13px;
}

/* "Order again" — transparent/outlined green, rectangular */
.woocommerce-MyAccount-content .order-again .button,
.woocommerce .order-again .button {
	background: transparent !important;
	color: var(--rto-green) !important;
	border: 1px solid var(--rto-green) !important;
	border-radius: 4px !important;
	font-weight: 600;
	box-shadow: none;
}
.woocommerce-MyAccount-content .order-again .button:hover,
.woocommerce .order-again .button:hover {
	background: var(--rto-green) !important;
	color: #fff !important;
}

/* Billing address box */
.woocommerce-customer-details address,
.woocommerce-Address address {
	border: 1px solid #d4d4d4;
	border-radius: 4px;
	background: #fafbfc;
	padding: 20px 22px;
	font-style: normal;
	color: var(--rto-teal-dark);
	line-height: 1.85;
}
.woocommerce-customer-details address a {
	color: var(--rto-teal-dark);
}
/* Phone + email icons = ONLY the provided PNGs, rendered as a background on the
   line itself (with left padding). ALL pseudo-element icons are disabled so
   Astra's WooCommerce icon-font glyph never draws — exactly one icon per line. */
.woocommerce-customer-details--phone,
.woocommerce-customer-details--email {
	margin: 6px 0 0;
	color: var(--rto-teal-dark);
	display: block;
	padding-left: 28px;
	min-height: 19px;
	line-height: 19px;
	background-repeat: no-repeat;
	background-position: 0 50%;
	background-size: 18px 18px;
}
.woocommerce-customer-details--phone { background-image: url("icons/phone.png"); }
.woocommerce-customer-details--email { background-image: url("icons/email.png"); }
.woocommerce-customer-details--phone::before,
.woocommerce-customer-details--email::before,
.woocommerce-customer-details--phone::after,
.woocommerce-customer-details--email::after {
	content: none !important;
	display: none !important;
	background: none !important;
}

/* "Billing address" heading is plain bold text — no border/box (only the
   address block below is bordered). */
.woocommerce-customer-details {
	border: none;
	background: none;
	padding: 0;
	margin-top: 8px;
}

/* =========================================================================
   ACCOUNT DETAILS FORM
   ========================================================================= */
.woocommerce-EditAccountForm fieldset {
	border: none;
	border-top: 1px solid var(--rto-border);
	margin: 24px 0 0;
	padding: 20px 0 0;
}
.woocommerce-EditAccountForm legend,
.woocommerce-EditAccountForm .rto-account-fieldset legend {
	color: #3a4a52;
	font-weight: 700;
	font-size: 18px;
	font-family: "Open Sans", sans-serif;
}
.woocommerce-EditAccountForm .rto-account-fieldset {
	border: none;
	border-top: 1px solid var(--rto-border);
	margin: 24px 0 0;
	padding: 20px 0 0;
}
/* Two-column rows on the account form */
.woocommerce-EditAccountForm .form-row-first {
	float: left;
	width: 48%;
	clear: left;
}
.woocommerce-EditAccountForm .form-row-last {
	float: right;
	width: 48%;
}
.woocommerce-EditAccountForm .form-row-wide {
	clear: both;
	width: 100%;
}
.woocommerce-EditAccountForm::after {
	content: "";
	display: table;
	clear: both;
}

/* =========================================================================
   CUSTOM FOOTER (RTO Works)
   Astra's default footer is hidden; ours is emitted via wp_footer.
   ========================================================================= */
.site-footer,
footer.site-footer {
	display: none !important;
}

.rto-site-footer {
	background: var(--rto-footer-bg);
	color: #fff;
	font-family: "Open Sans", sans-serif;
	font-size: 15px;
}
.rto-footer-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 30px;
}

/* Newsletter band */
.rto-footer-newsletter {
	padding: 38px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
/* nowrap + shrinkable inputs keep the Email/Name/Subscribe fields on one stable
   line so they don't reflow/move when the page is zoomed. */
.rto-footer-newsletter-grid {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	flex-wrap: nowrap;
}
.rto-newsletter-copy {
	flex: 1 1 auto;
	min-width: 0;
}
.rto-newsletter-copy h3 {
	color: #fff;
	font-size: 28px;
	font-weight: 700;
	margin: 0 0 8px;
}
.rto-newsletter-copy p {
	color: rgba(255, 255, 255, 0.82);
	margin: 0;
	font-size: 14px;
}
.rto-newsletter-form {
	display: flex;
	gap: 12px;
	align-items: stretch;
	flex: 0 0 auto;
	flex-wrap: nowrap;
}
.rto-newsletter-form input {
	border: none;
	border-radius: 6px;
	padding: 12px 16px;
	width: 200px;
	min-width: 0;
	font-size: 14px;
	color: #444;
	background: #fff;
}
.rto-newsletter-form button {
	background: var(--rto-green);
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 12px 26px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	flex: 0 0 auto;
	font-family: "Open Sans", sans-serif;
}
.rto-newsletter-form button:hover {
	background: var(--rto-green-dark);
}

/* Main band */
.rto-footer-main {
	padding: 50px 0;
}
.rto-footer-main-grid {
	display: flex;
	gap: 50px;
	align-items: flex-start;
}
.rto-footer-brand {
	flex: 0 0 240px;
}
/* Logo.png rendered white for the dark footer */
.rto-footer-logo {
	width: 200px;
	height: auto;
	filter: brightness(0) invert(1);
}
.rto-footer-social {
	margin-top: 60px;
	display: flex;
	gap: 14px;
}
.rto-social {
	width: 38px;
	height: 38px;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
}
.rto-social:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}
.rto-social .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.rto-footer-links {
	flex: 0 0 230px;
}
.rto-footer-shop {
	flex: 1 1 auto;
}
.rto-site-footer h4 {
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	margin: 0 0 16px;
}
.rto-footer-col {
	margin-bottom: 34px;
}
.rto-site-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.rto-site-footer li {
	margin: 0 0 12px;
}
.rto-site-footer a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	font-size: 14px;
}
.rto-site-footer a:hover {
	color: #fff;
	text-decoration: underline;
}
.rto-footer-shop-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 40px;
}

/* Bottom bar */
.rto-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding: 22px 0;
}
.rto-footer-bottom-grid {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.85);
}
.rto-footer-policies {
	display: flex;
	gap: 26px;
}
.rto-footer-policies a {
	color: rgba(255, 255, 255, 0.85);
}

/* =========================================================================
   WooCommerce info panels — empty cart, "No saved methods found", etc.
   Teal left-accent border + light panel + leading icon (per reference).
   ========================================================================= */
.woocommerce-info,
.woocommerce .cart-empty,
.woocommerce-account .woocommerce-info {
	display: flex;
	align-items: center;
	gap: 16px;
	background: #f1f9fc;
	border: 1px solid #dcebf1;
	border-left: 5px solid var(--rto-teal);
	border-radius: 6px;
	color: #5a6b73;
	font-size: 16px;
	padding: 22px 26px;
	margin: 0 0 24px;
	list-style: none;
}
.woocommerce-info::before,
.woocommerce .cart-empty::before {
	content: "";
	position: static;
	top: auto;
	left: auto;
	width: 30px;
	height: 30px;
	flex: 0 0 30px;
	background-image: url("icons/not-found.png");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}
.woocommerce-info a {
	color: var(--rto-teal);
}

/* =========================================================================
   CUSTOM HEADER (logo left | centered menu | right actions)
   Astra's own masthead is hidden; ours renders at the top of <body>.
   ========================================================================= */
#masthead,
.site-header {
	display: none !important;
}

.rto-header {
	background: #fff;
	border-bottom: 1px solid #eef1f4;
	font-family: "Open Sans", sans-serif;
	position: relative;
	z-index: 100;
}
.rto-header-inner {
	max-width: 1460px;
	margin: 0 auto;
	padding: 0 20px;
	min-height: 100px;
	display: flex;
	align-items: center;
	gap: 24px;
}
.rto-header-left {
	flex: 1 1 0;
	display: flex;
	align-items: center;
}
.rto-logo img {
	width: 240px;
	height: auto;
	display: block;
}
.rto-header-right {
	flex: 1 1 0;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 30px;
}

/* Centered primary nav */
.rto-header-nav {
	flex: 0 0 auto;
}
.rto-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 6px;
}
.rto-menu > li {
	position: relative;
}
.rto-menu > li > a {
	display: block;
	padding: 14px 20px;
	color: var(--rto-ink);
	font-weight: 500;
	font-size: 17px;
	text-decoration: none;
	white-space: nowrap;
}
/* Parent tabs (Shop/Services/About) open a dropdown only — not navigable. */
.rto-menu > li.menu-item-has-children > a {
	cursor: default;
}
.rto-menu > li:hover > a,
.rto-menu > li.current-menu-item > a {
	color: var(--rto-teal);
}
/* Caret on parent items */
.rto-menu > li.menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-left: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	opacity: 0.8;
}
/* Highlight the hovered parent (light grey tab, like the reference) */
.rto-menu > li.menu-item-has-children:hover > a {
	background: #f3f5f6;
}

/* Dropdowns */
.rto-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 14px 0;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 210px;
	background: #fff;
	border: 1px solid #eef1f4;
	box-shadow: 0 16px 36px rgba(20, 50, 70, 0.12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.15s ease, transform 0.15s ease;
	z-index: 200;
}
.rto-menu > li:hover > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.rto-menu .sub-menu li a {
	display: block;
	padding: 10px 26px;
	color: #54616b;
	font-size: 15px;
	text-decoration: none;
	white-space: nowrap;
}
.rto-menu .sub-menu li a:hover {
	color: var(--rto-teal);
	background: #f5f8f9;
}

/* Shop mega-menu: wide, 3-column grid (row-major to match the reference) */
.rto-menu .rto-mega > .sub-menu {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	column-gap: 24px;
	row-gap: 2px;
	width: 900px;
	padding: 24px 28px;
}
.rto-menu .rto-mega > .sub-menu li a {
	white-space: nowrap;
	padding-left: 0;
	padding-right: 0;
}

/* Right-side action icons */
.rto-icon-btn {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	color: var(--rto-teal);
	display: inline-flex;
	align-items: center;
}
/* Header action icons — provided PNG files (Search, Shopping Cart). */
.rto-header-icon {
	display: block;
	width: 28px;
	height: 28px;
	object-fit: contain;
}
.rto-cart-icon {
	width: 38px;
	height: 38px;
}
.rto-signin {
	color: #00667a;
	font-weight: 600;
	font-size: 17px;
	text-decoration: none;
}
.rto-signin:hover {
	color: var(--rto-teal-dark);
}

/* Account dropdown (logged in) */
.rto-account {
	position: relative;
}
.rto-account-toggle {
	color: #00667a;
	font-weight: 600;
	font-size: 17px;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
}
.rto-caret {
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-left: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
}
.rto-account-menu {
	list-style: none;
	margin: 0;
	padding: 10px 0;
	position: absolute;
	top: 100%;
	right: 0;
	min-width: 210px;
	white-space: nowrap;
	background: #fff;
	border: 1px solid #eef1f4;
	box-shadow: 0 16px 36px rgba(20, 50, 70, 0.12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.15s ease, transform 0.15s ease;
	z-index: 200;
}
.rto-account:hover .rto-account-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.rto-account-menu li a {
	display: block;
	padding: 9px 22px;
	color: #54616b;
	font-size: 15px;
	text-decoration: none;
}
.rto-account-menu li a:hover {
	color: var(--rto-teal);
	background: #f5f8f9;
}

/* Cart (the provided PNG already includes the count badge) */
.rto-cart {
	position: relative;
	color: var(--rto-teal);
	display: inline-flex;
	align-items: center;
}

/* Keep the admin bar from overlapping our header */
.admin-bar .rto-header {
	margin-top: 0;
}

/* =========================================================================
   DOWNLOADS PAGE — three category cards
   ========================================================================= */
.rto-downloads {
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.rto-download-card {
	display: flex;
	align-items: center;
	gap: 24px;
	background: #f6f7f8;
	border: 1px solid #e6e9ec;
	border-radius: 8px;
	padding: 22px 28px;
}
.rto-download-icon {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	color: var(--rto-teal-dark);
}
.rto-download-icon svg {
	width: 44px;
	height: 44px;
	display: block;
}
.rto-download-text h3 {
	color: var(--rto-teal);
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 6px;
}
.rto-download-text p {
	color: #6a6a6a;
	font-size: 15px;
	margin: 0;
}

/* =========================================================================
   MEMBERSHIP PAGE
   ========================================================================= */
.rto-membership-box {
	background: #f6f7f8;
	border: 1px solid #e6e9ec;
	border-radius: 6px;
	padding: 26px 30px;
	max-width: 540px;
	margin: 0 0 44px;
}
.rto-membership-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 22px;
}
.rto-membership-table th,
.rto-membership-table td {
	text-align: left;
	padding: 7px 0;
	border: none;
	font-size: 15px;
	vertical-align: middle;
}
.rto-membership-table th {
	color: #3a4a52;
	font-weight: 700;
	width: 46%;
}
.rto-membership-table td {
	color: #54616b;
}
/* Auto-renew toggle (off) */
.rto-toggle {
	display: inline-block;
	width: 38px;
	height: 20px;
	border-radius: 10px;
	background: #c7ccd1;
	position: relative;
}
.rto-toggle::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
}
.rto-membership-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}
.rto-membership-actions .button {
	border-radius: 4px;
	padding: 0.6em 1.4em;
	font-weight: 600;
}

.rto-section-title {
	color: #3a4a52;
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 16px;
}

/* Subscription totals table (navy header like the orders table) */
.rto-subscription-totals,
.rto-related-orders {
	width: 100%;
	border: 1px solid #d4d4d4;
	border-collapse: collapse;
	margin: 0 0 44px;
}
.rto-subscription-totals thead th,
.rto-related-orders thead th {
	background: var(--rto-teal-dark);
	color: #fff;
	font-weight: 600;
	text-align: left;
	padding: 12px 18px;
	border: none;
}
.rto-subscription-totals th.rto-right,
.rto-subscription-totals td.rto-right {
	text-align: right;
}
.rto-subscription-totals tbody td,
.rto-subscription-totals tbody th {
	padding: 12px 18px;
	border: none;
	color: #54616b;
	font-size: 15px;
}
.rto-subscription-totals tbody td a {
	color: var(--rto-teal);
}
.rto-subscription-totals .rto-sub-row th {
	color: #3a4a52;
	font-weight: 700;
	text-align: left;
}
.rto-subscription-totals .rto-sub-row td {
	color: var(--rto-teal-dark);
	font-weight: 700;
}

/* Related orders — reuse the orders-table look (compact, zebra) */
.rto-related-orders tbody td {
	padding: 9px 18px;
	border: none;
	color: #54616b;
	font-size: 15px;
}
.rto-related-orders tbody tr:nth-child(odd) { background: #f6f6f6; }
.rto-related-orders tbody tr:nth-child(even) { background: #fff; }
.rto-related-orders .woocommerce-orders-table__cell-order-number a { color: var(--rto-teal); font-weight: 600; }
.rto-related-orders .woocommerce-orders-table__cell-order-actions a.button {
	background: none;
	color: var(--rto-teal);
	padding: 0;
	border-radius: 0;
	font-weight: 500;
}
.rto-related-orders .woocommerce-orders-table__cell-order-actions a.button:hover {
	background: none;
	text-decoration: underline;
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 768px) {
	.woocommerce-account .woocommerce {
		flex-direction: column;
	}
	.woocommerce-account .woocommerce-MyAccount-navigation {
		width: 100%;
		flex: 1 1 auto;
	}
	body.woocommerce-account:not(.logged-in) .woocommerce {
		padding: 28px 22px;
	}
	.rto-footer-main-grid {
		flex-direction: column;
		gap: 30px;
	}
	.rto-footer-shop-grid {
		grid-template-columns: 1fr;
	}
	.rto-newsletter-form {
		flex-wrap: wrap;
	}
	.rto-newsletter-form input {
		min-width: 0;
		flex: 1 1 140px;
	}
}
