/* ==========================================================================
   Roids24 — My account: sign in / register / password pages, then the logged-in account
   Loaded on every My account view. Tokens come from main.css.
   ========================================================================== */

.r24-page--auth { padding-bottom: 96px; }
.r24-auth-page .woocommerce { display: block; }

.r24-auth {
	display: grid;
	grid-template-columns: minmax(0, 520px) minmax(0, 440px);
	justify-content: center;
	align-items: start;
	gap: 48px;
	margin-top: 24px;
}
.r24-auth--solo { grid-template-columns: minmax(0, 480px); margin-top: 40px; }

/* --------------------------------------------------------------------------
   Card
   ----------------------------------------------------------------------- */

.r24-auth__card {
	padding: 40px;
	border: 1px solid var(--r24-border);
	border-radius: var(--r24-r-panel);
	background: var(--r24-white);
	box-shadow: 0 12px 28px rgba(22, 24, 29, .06);
}
.r24-auth__card--center { text-align: center; }
.r24-auth__card--center .r24-auth__badge { margin-inline: auto; }
.r24-auth__card--center .r24-auth__lede { margin-bottom: 28px; }

.r24-auth__head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.r24-auth__title { font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -0.02em; }
.r24-auth__lede { font-size: 15px; line-height: 22px; color: var(--r24-text-2); }

.r24-auth__badge {
	width: 48px; height: 48px; margin-bottom: 8px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 24px;
	background: var(--r24-surface); color: var(--r24-ink);
}
.r24-auth__badge--ok { background: var(--r24-accent-tint); color: var(--r24-accent-deep); }

/* Tabs: segmented control */
.r24-auth__tabs {
	display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
	margin-bottom: 32px; padding: 4px;
	border-radius: var(--r24-r-option);
	background: var(--r24-surface);
}
.r24-auth__tab {
	height: 40px; padding: 0 12px;
	border: 0; border-radius: var(--r24-r-control);
	background: transparent;
	font-size: 14px; font-weight: 600; color: var(--r24-text-2);
	transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.r24-auth__tab:hover { color: var(--r24-ink); }
.r24-auth__tab[aria-selected="true"] {
	background: var(--r24-white); color: var(--r24-ink);
	box-shadow: 0 1px 2px rgba(22, 24, 29, .08), 0 0 0 1px rgba(22, 24, 29, .04);
}

/* Without JS: no tabs, both forms stacked. With JS: only the chosen panel. */
.no-js .r24-auth__tabs { display: none; }
.no-js .r24-auth__panel + .r24-auth__panel { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--r24-border); }
.js .r24-auth[data-tab="login"] [data-r24-panel="register"],
.js .r24-auth[data-tab="register"] [data-r24-panel="login"] { display: none; }

.r24-auth__panel:focus { outline: none; }

/* Notices inside the card */
.r24-auth__notices:empty, .r24-auth__notices > .woocommerce-notices-wrapper:empty:only-child { display: none; }
.r24-auth__notices { margin-bottom: 24px; }
.r24-auth__notices .woocommerce-notices-wrapper > * + * { margin-top: 8px; }
.r24-auth__notices .woocommerce-message,
.r24-auth__notices .woocommerce-info,
.r24-auth__notices .woocommerce-error { margin: 0; font-size: 14px; }
.r24-auth__notices .woocommerce-error li + li { margin-top: 4px; }

/* --------------------------------------------------------------------------
   Form
   ----------------------------------------------------------------------- */

.r24-auth .woocommerce-form-login,
.r24-auth .woocommerce-form-register { max-width: none; padding: 0; border: 0; border-radius: 0; }

.r24-auth__form { display: flex; flex-direction: column; }
.r24-auth__form .form-row { margin: 0 0 20px; gap: 8px; }
.r24-auth__form .form-row label { font-size: 14px; font-weight: 600; color: var(--r24-ink); }
.woocommerce .r24-auth__form .form-row .required { color: var(--r24-muted); font-weight: 500; }
.r24-auth__form input[type="text"],
.r24-auth__form input[type="email"],
.r24-auth__form input[type="password"] { min-height: 48px; font-size: 16px; }

.r24-auth__labelrow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.r24-auth__forgot { font-size: 13px; font-weight: 500; color: var(--r24-text-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--r24-border-3); }
.r24-auth__forgot:hover { color: var(--r24-ink); text-decoration-color: currentColor; }

.r24-auth__remember { margin-top: -4px !important; }
.r24-auth__remember label { font-weight: 500 !important; color: var(--r24-text) !important; cursor: pointer; }

.r24-auth__form .r24-btn--lg { height: 56px; margin-top: 4px; font-size: 16px; }
.r24-auth__form button.r24-btn--primary { background: var(--r24-accent); border-color: var(--r24-accent); }
.r24-auth__form button.r24-btn--primary:hover { background: var(--r24-accent-deep); border-color: var(--r24-accent-deep); }
/* WooCommerce disables submit while the new password is too weak. */
.r24-auth__form button.r24-btn--primary:disabled,
.r24-auth__form button.r24-btn--primary.disabled { background: var(--r24-surface); border-color: var(--r24-border); color: var(--r24-faint); }

.r24-auth__note {
	display: flex; gap: 10px; align-items: flex-start;
	margin: 0 0 20px; padding: 12px 14px;
	border-radius: var(--r24-r-control);
	background: var(--r24-surface);
	font-size: 14px; color: var(--r24-text);
}
.r24-auth__note .r24-icon { margin-top: 1px; color: var(--r24-text-2); }

.r24-auth__legal { font-size: 13px; line-height: 19px; color: var(--r24-muted); }
.r24-auth__legal:not(:empty) { margin-bottom: 20px; }
.r24-auth__legal a { color: var(--r24-text); text-decoration: underline; text-underline-offset: 2px; }
.r24-auth__legal p { margin: 0; }

.r24-auth__switch {
	margin-top: 24px; padding-top: 24px;
	border-top: 1px solid var(--r24-divider);
	font-size: 14px; color: var(--r24-text-2); text-align: center;
}
.r24-auth__switch a { margin-left: 4px; font-weight: 600; color: var(--r24-accent-deep); }
.r24-auth__switch a:hover { color: var(--r24-ink); text-decoration: underline; text-underline-offset: 3px; }
.r24-auth__back { display: inline-flex; align-items: center; gap: 6px; margin-left: 0 !important; }

/* Show / hide password (button added by WooCommerce's script) */
.r24-auth .password-input { position: relative; display: block; }
.r24-auth .password-input input { padding-right: 52px; }
.r24-auth .show-password-input {
	position: absolute; top: 4px; right: 4px;
	width: 40px; height: 40px; padding: 0;
	border: 0; border-radius: 6px;
	background: transparent; color: var(--r24-text-2);
}
.r24-auth .show-password-input:hover { background: var(--r24-surface); color: var(--r24-ink); }
.r24-auth .show-password-input::before {
	content: ""; position: absolute; inset: 0; margin: auto;
	width: 20px; height: 20px;
	background: currentColor;
	-webkit-mask: var(--r24-eye) center / contain no-repeat;
	mask: var(--r24-eye) center / contain no-repeat;
}
.r24-auth .show-password-input { --r24-eye: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
.r24-auth .show-password-input.display-password { --r24-eye: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.6 5.1A10 10 0 0 1 12 5c6.4 0 10 7 10 7a17 17 0 0 1-2.5 3.4M6.6 6.6C3.7 8.4 2 12 2 12s3.6 7 10 7a9.6 9.6 0 0 0 5.4-1.6M9.9 9.9a3 3 0 0 0 4.2 4.2M3 3l18 18'/%3E%3C/svg%3E"); }

/* Password strength (WooCommerce's meter) */
.r24-auth .woocommerce-password-strength {
	margin-top: 4px; padding: 8px 12px;
	border-radius: var(--r24-r-control);
	font-size: 13px; font-weight: 600; line-height: 18px;
	background: var(--r24-surface); color: var(--r24-text);
}
.r24-auth .woocommerce-password-strength.short,
.r24-auth .woocommerce-password-strength.bad { background: #FDF3F1; color: #8A2A16; }
.r24-auth .woocommerce-password-strength.good { background: #FEF6E7; color: #7A4B00; }
.r24-auth .woocommerce-password-strength.strong { background: var(--r24-accent-soft); color: var(--r24-accent-deep); }
.r24-auth .woocommerce-password-hint { display: block; font-size: 12px; line-height: 17px; color: var(--r24-muted); }

/* --------------------------------------------------------------------------
   Aside: account perks
   ----------------------------------------------------------------------- */

.r24-auth__aside {
	display: flex; flex-direction: column; gap: 12px;
	padding: 40px;
	border-radius: var(--r24-r-panel);
	background: var(--r24-image-well);
}
.r24-auth__asidetitle { font-size: 24px; line-height: 30px; letter-spacing: -0.02em; }

.r24-perks { display: flex; flex-direction: column; gap: 20px; margin: 16px 0 0; padding: 0; list-style: none; }
.r24-perk { display: flex; gap: 14px; align-items: flex-start; }
.r24-perk__icon {
	width: 40px; height: 40px; flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	border-radius: 20px;
	background: var(--r24-white); color: var(--r24-accent-deep);
	box-shadow: 0 0 0 1px var(--r24-border);
}
.r24-perk__text { display: flex; flex-direction: column; gap: 2px; padding-top: 1px; }
.r24-perk__title { font-size: 15px; line-height: 21px; font-weight: 600; color: var(--r24-ink); }
.r24-perk__desc { font-size: 14px; line-height: 20px; color: var(--r24-text-2); }

.r24-auth__guest {
	display: flex; flex-direction: column; gap: 14px;
	margin-top: 20px; padding-top: 24px;
	border-top: 1px solid var(--r24-border);
	font-size: 14px; color: var(--r24-text-2);
}
.r24-auth__guest strong { color: var(--r24-ink); }
.r24-auth__guest .r24-btn { height: 48px; background: transparent; }
.r24-auth__guest .r24-btn:hover { background: var(--r24-ink); }

/* --------------------------------------------------------------------------
   Responsive
   ----------------------------------------------------------------------- */

@media (max-width: 1000px) {
	.r24-auth { grid-template-columns: minmax(0, 560px); gap: 24px; }
	.r24-auth__aside { padding: 28px; }
	.r24-perks { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
}

@media (max-width: 760px) {
	.r24-page--auth { padding-bottom: 64px; }
	.r24-auth, .r24-auth--solo { margin-top: 12px; }
	.r24-auth__card { padding: 24px 20px; box-shadow: none; }
	.r24-auth__title { font-size: 24px; line-height: 30px; }
	.r24-auth__tabs { margin-bottom: 24px; }
	.r24-auth__head { margin-bottom: 24px; }
	.r24-auth__aside { padding: 24px 20px; }
	.r24-auth__asidetitle { font-size: 20px; line-height: 26px; }
	.r24-perks { grid-template-columns: 1fr; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.r24-auth__tab { transition: none; }
}

/* ==========================================================================
   Logged-in account
   ========================================================================== */

.r24-page--account { padding-bottom: 96px; }
.r24-page--account .woocommerce { display: block; }

.r24-account {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	align-items: start;
	gap: 48px;
	margin-top: 20px;
}
.r24-account__content { min-width: 0; }
.r24-account__content > .woocommerce-notices-wrapper:not(:empty) { margin-bottom: 20px; }
.r24-account__content .woocommerce-message,
.r24-account__content .woocommerce-info,
.r24-account__content .woocommerce-error { margin: 0 0 8px; }

/* Ghost button (secondary actions next to a primary one) */
.r24-btn--ghost { background: transparent; border-color: var(--r24-border-2); color: var(--r24-ink); }
.r24-btn--ghost:hover { background: var(--r24-surface); border-color: var(--r24-border-3); color: var(--r24-ink); }

/* --------------------------------------------------------------------------
   Sidebar
   ----------------------------------------------------------------------- */

.r24-account__side {
	position: sticky; top: 24px;
	border: 1px solid var(--r24-border);
	border-radius: var(--r24-r-panel);
	background: var(--r24-white);
	overflow: hidden;
}
.r24-account__who {
	display: flex; align-items: center; gap: 12px;
	padding: 20px;
	border-bottom: 1px solid var(--r24-border);
	background: var(--r24-image-well);
}
.r24-avatar {
	width: 44px; height: 44px; flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	border-radius: 22px;
	background: var(--r24-accent); color: #fff;
	font-size: 15px; font-weight: 700; letter-spacing: .02em;
}
.r24-account__whotext { display: flex; flex-direction: column; min-width: 0; }
.r24-account__name { font-size: 15px; line-height: 21px; font-weight: 700; color: var(--r24-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r24-account__email { font-size: 13px; line-height: 18px; color: var(--r24-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.r24-accnav__list { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 10px; list-style: none; }
.r24-accnav__link {
	position: relative;
	display: flex; align-items: center; gap: 12px;
	min-height: 44px; padding: 0 12px;
	border-radius: var(--r24-r-control);
	font-size: 15px; font-weight: 500; color: var(--r24-text);
	transition: background-color .15s ease, color .15s ease;
}
.r24-accnav__link .r24-icon { color: var(--r24-muted); transition: color .15s ease; }
.r24-accnav__link:hover { background: var(--r24-surface); color: var(--r24-ink); }
.r24-accnav__link:hover .r24-icon { color: var(--r24-ink); }
.r24-accnav .is-active .r24-accnav__link { background: var(--r24-accent-soft); color: var(--r24-accent-deep); font-weight: 600; }
.r24-accnav .is-active .r24-accnav__link .r24-icon { color: var(--r24-accent); }
.r24-accnav__out { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--r24-divider); }
.r24-accnav__out .r24-accnav__link { color: var(--r24-text-2); }

/* --------------------------------------------------------------------------
   Headings and sections
   ----------------------------------------------------------------------- */

.r24-account__head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 28px; }
.r24-account__title { font-size: 34px; line-height: 40px; font-weight: 700; letter-spacing: -0.025em; }
.r24-account__sub { font-size: 15px; line-height: 22px; color: var(--r24-text-2); }
.r24-account__sub strong { color: var(--r24-ink); font-weight: 600; }
.r24-account__sub a { font-weight: 600; color: var(--r24-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--r24-border-3); }
.r24-account__sub a:hover { text-decoration-color: currentColor; }
.r24-account__lede { margin: -12px 0 24px; font-size: 15px; line-height: 22px; color: var(--r24-text-2); }

.r24-account__section + .r24-account__section, .r24-stats + .r24-account__section { margin-top: 40px; }
.r24-account__sechead { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.r24-account__sechead .r24-account__h2 { margin: 0; }
.r24-account__h2 { margin-bottom: 16px; font-size: 20px; line-height: 26px; letter-spacing: -0.01em; }

/* Status pills */
.r24-ostatus {
	display: inline-flex; align-items: center; gap: 6px;
	height: 26px; padding: 0 10px;
	border-radius: 13px;
	font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap;
	background: var(--r24-surface); color: var(--r24-text);
}
.r24-ostatus::before { content: ""; width: 6px; height: 6px; border-radius: 3px; background: currentColor; opacity: .8; }
.r24-ostatus--ok { background: var(--r24-accent-tint); color: var(--r24-accent-deep); }
.r24-ostatus--info { background: #EAF1FB; color: #1D4F91; }
.r24-ostatus--warn { background: #FEF6E7; color: #7A4B00; }
.r24-ostatus--bad { background: #FDF3F1; color: #8A2A16; }

/* --------------------------------------------------------------------------
   Dashboard
   ----------------------------------------------------------------------- */

.r24-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.r24-stat__link {
	display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px;
	align-items: center;
	padding: 20px;
	border: 1px solid var(--r24-border);
	border-radius: var(--r24-r-card);
	background: var(--r24-white);
	transition: border-color .15s ease, box-shadow .15s ease;
}
.r24-stat__link:hover { border-color: var(--r24-border-3); box-shadow: var(--r24-shadow-hover); }
.r24-stat__icon {
	grid-row: 1 / 3;
	width: 44px; height: 44px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 22px;
	background: var(--r24-accent-soft); color: var(--r24-accent-deep);
}
.r24-stat__value { font-size: 26px; line-height: 30px; font-weight: 700; letter-spacing: -0.02em; color: var(--r24-ink); font-variant-numeric: tabular-nums; }
.r24-stat__label { font-size: 13px; line-height: 18px; color: var(--r24-text-2); }

.r24-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.r24-shortcut {
	display: flex; align-items: center; gap: 14px;
	padding: 18px 20px;
	border: 1px solid var(--r24-border);
	border-radius: var(--r24-r-card);
	transition: border-color .15s ease, background-color .15s ease;
}
.r24-shortcut:hover { border-color: var(--r24-border-3); background: var(--r24-surface-2); }
.r24-shortcut__icon {
	width: 40px; height: 40px; flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	border-radius: 20px;
	background: var(--r24-surface); color: var(--r24-ink);
}
.r24-shortcut__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.r24-shortcut__text strong { font-size: 15px; font-weight: 600; color: var(--r24-ink); }
.r24-shortcut__text span { font-size: 13px; line-height: 18px; color: var(--r24-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r24-shortcut__chev { color: var(--r24-muted); }

/* --------------------------------------------------------------------------
   Order rows
   ----------------------------------------------------------------------- */

.r24-orders { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border: 1px solid var(--r24-border); border-radius: var(--r24-r-panel); overflow: hidden; }
.r24-orow {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto 110px auto;
	align-items: center; gap: 20px;
	padding: 18px 20px;
	transition: background-color .15s ease;
}
.r24-orow + .r24-orow { border-top: 1px solid var(--r24-border); }
.r24-orow:hover { background: var(--r24-surface-2); }

.r24-orow__thumbs { display: flex; }
.r24-orow__thumb {
	width: 52px; height: 52px; flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	border: 2px solid var(--r24-white); border-radius: var(--r24-r-option);
	background: var(--r24-image-well);
	overflow: hidden;
}
.r24-orow__thumb + .r24-orow__thumb { margin-left: -18px; }
.r24-orow__thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.r24-orow__thumb--more { background: var(--r24-surface); font-size: 13px; font-weight: 700; color: var(--r24-text); }

.r24-orow__main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.r24-orow__title { font-size: 16px; line-height: 22px; font-weight: 700; letter-spacing: 0; }
.r24-orow__link { color: var(--r24-ink); }
.r24-orow__link::after { content: ""; position: absolute; inset: 0; } /* the whole row opens the order */
.r24-orow__link:focus-visible { outline: none; }
.r24-orow__link:focus-visible::after { outline: 2px solid var(--r24-ink); outline-offset: -4px; border-radius: var(--r24-r-card); }
.r24-orow__meta { font-size: 13px; color: var(--r24-text-2); }
.r24-orow__ships { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.r24-shipchip {
	display: inline-flex; align-items: center; gap: 5px;
	height: 24px; padding: 0 8px;
	border: 1px solid var(--r24-border); border-radius: 6px;
	background: var(--r24-white);
	font-size: 12px; font-weight: 500; color: var(--r24-text);
}
.r24-shipchip .r24-icon { color: var(--r24-muted); }
.r24-shipchip--ok { border-color: var(--r24-accent-line); color: var(--r24-accent-deep); }
.r24-shipchip--ok .r24-icon { color: var(--r24-accent); }
.r24-shipchip--info { border-color: #C9DAF2; color: #1D4F91; }
.r24-shipchip--info .r24-icon { color: #1D4F91; }

.r24-orow__total { font-size: 16px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.r24-orow__actions { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; }
.r24-orow__chev { display: flex; color: var(--r24-muted); pointer-events: none; }
.r24-orow:hover .r24-orow__chev { color: var(--r24-ink); }

.r24-account__paging { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.r24-account__pagenum { font-size: 14px; color: var(--r24-text-2); margin-inline: auto; }

/* Empty state */
.r24-account-empty {
	display: flex; flex-direction: column; align-items: center; gap: 8px;
	padding: 48px 24px;
	border: 1px dashed var(--r24-border-2);
	border-radius: var(--r24-r-panel);
	text-align: center;
}
.r24-account-empty__icon {
	width: 56px; height: 56px; margin-bottom: 8px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 28px;
	background: var(--r24-surface); color: var(--r24-text-2);
}
.r24-account-empty__title { font-size: 18px; line-height: 24px; letter-spacing: 0; }
.r24-account-empty__text { max-width: 380px; margin-bottom: 12px; font-size: 14px; line-height: 20px; color: var(--r24-text-2); }

/* --------------------------------------------------------------------------
   Single order
   ----------------------------------------------------------------------- */

.r24-order__back {
	display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
	margin-bottom: 8px;
	font-size: 14px; font-weight: 500; color: var(--r24-text-2);
}
.r24-order__back:hover { color: var(--r24-ink); }
.r24-account__content > .r24-order__back { margin-bottom: 16px; }
.r24-order__titlerow { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 14px; }
.r24-order__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.r24-order__actions:empty { display: none; }
.r24-order__actions .order-again { margin: 0; }
.r24-order__actions .order-again .button { background: #fff; color: var(--r24-ink); }
.r24-order__actions .order-again .button:hover { background: var(--r24-ink); color: #fff; }

.r24-order { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.r24-order__main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.r24-order__main .r24-account__section { margin-top: 20px; }
.r24-order__side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 24px; }

.r24-shipbox { border: 1px solid var(--r24-border); border-radius: var(--r24-r-panel); overflow: hidden; }
.r24-shipbox__head {
	display: flex; align-items: center; gap: 12px;
	padding: 16px 20px;
	background: var(--r24-image-well);
	border-bottom: 1px solid var(--r24-border);
}
.r24-shipbox__icon {
	width: 36px; height: 36px; flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	border: 1px solid var(--r24-border); border-radius: 18px;
	background: #fff; color: var(--r24-ink);
}
.r24-shipbox--us-domestic .r24-shipbox__icon { border-color: transparent; background: var(--r24-accent-tint); color: var(--r24-accent-deep); }
.r24-shipbox__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.r24-shipbox__title { font-size: 16px; line-height: 22px; letter-spacing: 0; }
.r24-shipbox__sub { font-size: 13px; color: var(--r24-text-2); }

.r24-shipbox__track { padding: 20px; border-bottom: 1px solid var(--r24-border); }

/* Progress: Preparing → Shipped → Delivered */
.r24-shiptrack { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; list-style: none; }
.r24-shiptrack__step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.r24-shiptrack__step::before {
	content: ""; position: absolute; top: 11px; right: 50%; left: -50%;
	height: 2px; background: var(--r24-border);
}
.r24-shiptrack__step:first-child::before { display: none; }
.r24-shiptrack__step.is-done::before { background: var(--r24-accent); }
.r24-shiptrack__dot {
	position: relative; z-index: 1;
	width: 24px; height: 24px; margin-bottom: 6px;
	display: flex; align-items: center; justify-content: center;
	border: 2px solid var(--r24-border-2); border-radius: 12px;
	background: #fff; color: #fff;
}
.r24-shiptrack__step.is-done .r24-shiptrack__dot { border-color: var(--r24-accent); background: var(--r24-accent); }
.r24-shiptrack__label { font-size: 13px; font-weight: 600; color: var(--r24-muted); }
.r24-shiptrack__step.is-done .r24-shiptrack__label { color: var(--r24-ink); }
.r24-shiptrack__date { font-size: 12px; color: var(--r24-text-2); }

.r24-shipbox__facts {
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px;
	margin: 20px 0 0; padding: 14px 16px;
	border-radius: var(--r24-r-option);
	background: var(--r24-surface-2);
}
.r24-shipbox__facts div { display: flex; flex-direction: column; gap: 2px; }
.r24-shipbox__facts dt { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--r24-muted); }
.r24-shipbox__facts dd { margin: 0; font-size: 14px; font-weight: 600; color: var(--r24-ink); }
.r24-shipbox__num { font-variant-numeric: tabular-nums; letter-spacing: .02em; word-break: break-all; }
.r24-shipbox__trackbtn { margin-left: auto; background: #fff; }

.r24-olines { margin: 0; padding: 0; list-style: none; }
.r24-oline { display: flex; align-items: flex-start; gap: 16px; padding: 16px 20px; }
.r24-oline + .r24-oline { border-top: 1px solid var(--r24-divider); }
.r24-oline__img {
	width: 72px; height: 72px; flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	border-radius: var(--r24-r-option);
	background: var(--r24-image-well);
	overflow: hidden;
}
.r24-oline__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.r24-oline__body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.r24-oline__name { font-size: 15px; line-height: 21px; font-weight: 600; }
.r24-oline__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.r24-oline__meta, .r24-oline__body .wc-item-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--r24-text-2); }
.r24-oline__meta p, .r24-oline__body .wc-item-meta p { display: inline; margin: 0; }
.r24-oline__meta strong, .r24-oline__body .wc-item-meta strong { font-weight: 500; color: var(--r24-muted); }
.r24-oline__qty { font-size: 13px; color: var(--r24-text-2); }
.r24-oline__qty del { color: var(--r24-muted); }
.r24-oline__qty ins { text-decoration: none; font-weight: 600; color: var(--r24-ink); }
.r24-oline__total { font-size: 15px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Order updates */
.r24-updates { margin: 0 0 0 6px; padding: 0 0 0 20px; list-style: none; border-left: 2px solid var(--r24-border); }
.r24-update { position: relative; padding-bottom: 20px; }
.r24-update:last-child { padding-bottom: 0; }
.r24-update::before {
	content: ""; position: absolute; left: -28px; top: 4px;
	width: 14px; height: 14px; border-radius: 7px;
	background: #fff; border: 2px solid var(--r24-border-3);
}
.r24-update:first-child::before { border-color: var(--r24-accent); background: var(--r24-accent); }
.r24-update__date { display: block; margin-bottom: 4px; font-size: 13px; color: var(--r24-muted); }
.r24-update__text { font-size: 15px; color: var(--r24-text); }
.r24-update__text p + p { margin-top: 8px; }

/* Panels (order side, forms) */
.r24-panel {
	margin: 0; padding: 24px;
	border: 1px solid var(--r24-border);
	border-radius: var(--r24-r-panel);
	background: var(--r24-white);
	min-width: 0;
}
.r24-panel__title { margin-bottom: 16px; padding: 0; font-size: 18px; line-height: 24px; font-weight: 700; letter-spacing: -0.01em; }
.r24-panel__lede { margin: -8px 0 20px; font-size: 14px; color: var(--r24-text-2); }
fieldset.r24-panel > legend.r24-panel__title { float: left; width: 100%; }
fieldset.r24-panel > legend + * { clear: both; }

.r24-sumlist { display: flex; flex-direction: column; margin: 0; }
.r24-sumlist__row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: 14px; }
.r24-sumlist__row dt { color: var(--r24-text-2); }
.r24-sumlist__row dd { margin: 0; text-align: right; color: var(--r24-ink); font-weight: 500; }
.r24-sumlist__row dd small, .r24-sumlist__row .shipped_via { display: block; font-size: 12px; font-weight: 400; color: var(--r24-muted); }
.r24-sumlist__row--order_total { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--r24-border); font-size: 18px; }
.r24-sumlist__row--order_total dt { color: var(--r24-ink); font-weight: 700; }
.r24-sumlist__row--order_total dd { font-weight: 700; }
.r24-sumlist__row--payment_method { order: -1; margin-bottom: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--r24-divider); }
.r24-panel__note { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; padding: 12px 14px; border-radius: var(--r24-r-control); background: var(--r24-surface); font-size: 14px; }

.r24-panel__addr + .r24-panel__addr { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--r24-divider); }
.r24-panel__addr h3 { margin-bottom: 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--r24-muted); }
.r24-panel__addr address { font-style: normal; font-size: 14px; line-height: 21px; color: var(--r24-text); overflow-wrap: anywhere; }

.r24-order__help { display: flex; gap: 10px; padding: 0 4px; font-size: 13px; line-height: 19px; color: var(--r24-text-2); }
.r24-order__help .r24-icon { margin-top: 1px; color: var(--r24-muted); }

/* --------------------------------------------------------------------------
   Addresses
   ----------------------------------------------------------------------- */

.r24-addrs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.r24-addr {
	display: flex; flex-direction: column; gap: 14px;
	padding: 24px;
	border: 1px solid var(--r24-border);
	border-radius: var(--r24-r-panel);
}
.r24-addr--empty { border-style: dashed; border-color: var(--r24-border-2); }
.r24-addr__head { display: flex; align-items: center; gap: 12px; }
.r24-addr__icon {
	width: 36px; height: 36px; flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	border-radius: 18px;
	background: var(--r24-surface); color: var(--r24-ink);
}
.r24-addr__title { font-size: 17px; line-height: 23px; letter-spacing: 0; }
.r24-addr__body { flex: 1; font-style: normal; font-size: 15px; line-height: 23px; color: var(--r24-text); }
.r24-addr--empty .r24-addr__body { color: var(--r24-text-2); font-size: 14px; }
.r24-addr .r24-btn { align-self: flex-start; }

/* --------------------------------------------------------------------------
   Account forms (address, account details)
   ----------------------------------------------------------------------- */

.r24-account-form { display: flex; flex-direction: column; gap: 20px; max-width: 760px; }
form.r24-panel.r24-account-form { padding: 28px; }
.r24-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.r24-fields > * { grid-column: 1 / -1; }
.woocommerce .r24-fields .form-row { width: auto; margin: 0 0 18px; display: flex; }
.woocommerce .r24-fields .form-row-first { grid-column: 1; margin-right: 0; }
.woocommerce .r24-fields .form-row-last { grid-column: 2; }
.r24-account-form .form-row label { font-size: 14px; font-weight: 600; color: var(--r24-ink); }
.woocommerce .r24-account-form .form-row .required { color: var(--r24-muted); font-weight: 500; }
.r24-account-form .form-row .optional { font-weight: 400; color: var(--r24-muted); }
.r24-account-form input[type="text"], .r24-account-form input[type="email"], .r24-account-form input[type="tel"],
.r24-account-form input[type="password"], .r24-account-form select { min-height: 48px; }
.r24-account-form .woocommerce-input-wrapper { display: block; }
.r24-account-form .woocommerce-input-wrapper > * + input { margin-top: 8px; }
.r24-field-help, .r24-account-form .description { font-size: 13px; line-height: 18px; color: var(--r24-muted); }
.r24-account-form__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.r24-account-form__actions .r24-btn--lg { height: 52px; }
.r24-account-form__actions button.r24-btn--primary { background: var(--r24-accent); border-color: var(--r24-accent); }
.r24-account-form__actions button.r24-btn--primary:hover { background: var(--r24-accent-deep); border-color: var(--r24-accent-deep); }

/* Country / state pickers (selectWoo) without WooCommerce's stylesheet */
.r24-account-form .select2-container { width: 100% !important; }
.r24-account-form .select2-container .select2-selection--single {
	display: flex; align-items: center;
	height: 48px; padding: 0 40px 0 14px;
	border: 1px solid var(--r24-border-2); border-radius: var(--r24-radius-sm);
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2316181D' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
	font-size: 15px; cursor: pointer;
}
.r24-account-form .select2-selection__arrow { display: none; }
.r24-account-form .select2-container--focus .select2-selection--single,
.r24-account-form .select2-container--open .select2-selection--single { border-color: var(--r24-ink); box-shadow: 0 0 0 1px var(--r24-ink); }

/* Password fields in account details (show/hide button from WooCommerce's script) */
.r24-account-form .password-input { position: relative; display: block; }
.r24-account-form .password-input input { padding-right: 52px; }
.r24-account-form .show-password-input {
	position: absolute; top: 4px; right: 4px;
	width: 40px; height: 40px; padding: 0;
	border: 0; border-radius: 6px;
	background: transparent; color: var(--r24-text-2);
	--r24-eye: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}
.r24-account-form .show-password-input.display-password { --r24-eye: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.6 5.1A10 10 0 0 1 12 5c6.4 0 10 7 10 7a17 17 0 0 1-2.5 3.4M6.6 6.6C3.7 8.4 2 12 2 12s3.6 7 10 7a9.6 9.6 0 0 0 5.4-1.6M9.9 9.9a3 3 0 0 0 4.2 4.2M3 3l18 18'/%3E%3C/svg%3E"); }
.r24-account-form .show-password-input:hover { background: var(--r24-surface); color: var(--r24-ink); }
.r24-account-form .show-password-input::before {
	content: ""; position: absolute; inset: 0; margin: auto;
	width: 20px; height: 20px; background: currentColor;
	-webkit-mask: var(--r24-eye) center / contain no-repeat; mask: var(--r24-eye) center / contain no-repeat;
}
.r24-account-form .woocommerce-password-strength { margin-top: 4px; padding: 8px 12px; border-radius: var(--r24-r-control); font-size: 13px; font-weight: 600; background: var(--r24-surface); }
.r24-account-form .woocommerce-password-strength.short, .r24-account-form .woocommerce-password-strength.bad { background: #FDF3F1; color: #8A2A16; }
.r24-account-form .woocommerce-password-strength.good { background: #FEF6E7; color: #7A4B00; }
.r24-account-form .woocommerce-password-strength.strong { background: var(--r24-accent-soft); color: var(--r24-accent-deep); }
.r24-account-form .woocommerce-password-hint { display: block; font-size: 12px; color: var(--r24-muted); }

/* --------------------------------------------------------------------------
   Responsive (logged-in account)
   ----------------------------------------------------------------------- */

@media (max-width: 1200px) {
	.r24-order { grid-template-columns: minmax(0, 1fr); }
	.r24-order__side { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
	.r24-order__help { grid-column: 1 / -1; }
}

@media (max-width: 1100px) {
	.r24-account { grid-template-columns: 240px minmax(0, 1fr); gap: 32px; }
	/* Order row: status and total stack on the right; actions get their own line. */
	.r24-orow { grid-template-columns: auto minmax(0, 1fr) auto; row-gap: 6px; }
	.r24-orow__thumbs, .r24-orow__main { grid-row: 1 / 3; }
	.r24-orow__status { grid-column: 3; grid-row: 1; justify-self: end; }
	.r24-orow__total { grid-column: 3; grid-row: 2; }
	.r24-orow__actions { grid-column: 2 / 4; grid-row: 3; justify-content: flex-end; }
	.r24-orow__actions:not(:has(.r24-btn)) { display: none; }
}

@media (max-width: 900px) {
	.r24-account { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 8px; }
	.r24-account__side { position: static; border: 0; border-radius: 0; overflow: visible; }
	.r24-account__who { display: none; }
	.r24-accnav__list {
		flex-direction: row; gap: 8px; padding: 0 0 4px;
		overflow-x: auto; scrollbar-width: none;
	}
	.r24-accnav__list::-webkit-scrollbar { display: none; }
	.r24-accnav__link { min-height: 40px; padding: 0 14px; gap: 8px; border: 1px solid var(--r24-border); border-radius: 20px; white-space: nowrap; font-size: 14px; }
	.r24-accnav .is-active .r24-accnav__link { border-color: var(--r24-accent-line); }
	.r24-accnav__out { margin: 0; padding: 0; border: 0; }
	.r24-shortcuts { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
	.r24-page--account { padding-bottom: 64px; }
	.r24-account__title { font-size: 28px; line-height: 34px; }
	.r24-account__head { margin-bottom: 20px; }
	.r24-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.r24-stat__link { grid-template-columns: 1fr; padding: 14px 12px; row-gap: 2px; height: 100%; align-content: start; }
	.r24-stat__label { font-size: 12px; line-height: 16px; }
	.r24-stat__icon { grid-row: auto; width: 36px; height: 36px; margin-bottom: 8px; }
	.r24-stat__value { font-size: 22px; line-height: 26px; }

	.r24-orow { grid-template-columns: minmax(0, 1fr) auto; padding: 16px; column-gap: 12px; }
	.r24-orow__thumbs { grid-column: 1 / -1; grid-row: auto; }
	.r24-orow__thumb { width: 44px; height: 44px; }
	.r24-orow__main { grid-column: 1; grid-row: 2 / 4; }
	.r24-orow__status { grid-column: 2; grid-row: 2; align-self: start; }
	.r24-orow__total { grid-column: 2; grid-row: 3; align-self: start; }
	.r24-orow__actions { grid-column: 1 / -1; grid-row: auto; justify-content: flex-start; }
	.r24-orow__chev { display: none; }

	.r24-order__side { grid-template-columns: minmax(0, 1fr); }
	.r24-shipbox__head, .r24-shipbox__track { padding: 16px; }
	.r24-shipbox__head { flex-wrap: wrap; }
	.r24-oline { padding: 14px 16px; gap: 12px; }
	.r24-oline__img { width: 56px; height: 56px; }
	.r24-shipbox__trackbtn { margin-left: 0; width: 100%; }
	.r24-panel { padding: 20px; }

	.r24-addrs { grid-template-columns: minmax(0, 1fr); }
	form.r24-panel.r24-account-form { padding: 20px; }
	.r24-fields { grid-template-columns: minmax(0, 1fr); }
	.woocommerce .r24-fields .form-row-first, .woocommerce .r24-fields .form-row-last { grid-column: 1; }
	.r24-account-form__actions .r24-btn { flex: 1 1 100%; }
}
