/* My account (bos-account.php). Mockup: "Blue Ox Header, Footer & My Account". */
.bos-acct-main { --ink: #0b0f11; --text: #f5f5f5; --soft: #c9d6da; --muted: #8fa3aa; --grey: #4a5a60; --line: #e3e9ea; --cyan: #1db9dc; --cyan-dark: #0d7f97; --yellow: #f2c200;
  background: #f5f5f5; color: var(--ink); padding-bottom: 96px; }
.bos-acct-main *, .bos-acct-main *::before, .bos-acct-main *::after { box-sizing: border-box; }
.bos-acct-wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Band */
.bos-acct-band { background: var(--ink); color: var(--text); border-top: 1px solid #1c262b; }
.bos-acct-band-row { padding-top: 40px; padding-bottom: 72px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.bos-acct-kicker { margin: 0 0 12px; display: flex; gap: 10px; align-items: center; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; letter-spacing: 0.16em; color: var(--cyan); text-transform: uppercase; }
.bos-acct-dealer { display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); background: var(--yellow); padding: 4px 8px; }
.bos-acct-band h1 { margin: 0; font-size: clamp(34px, 4.5vw, 52px); font-weight: 900; text-transform: uppercase; line-height: 1; color: var(--text); }
.bos-acct-sub { margin: 16px 0 0; max-width: 560px; font-size: 16px; line-height: 1.6; color: var(--soft); }
.bos-acct-terms { margin: 0; display: grid; grid-template-columns: auto auto; gap: 6px 20px; font-size: 14px; }
.bos-acct-terms dt { color: var(--muted); }
.bos-acct-terms dd { margin: 0; font-weight: 600; }
.bos-acct-logout { color: var(--soft); font-size: 14px; text-decoration: none; }
.bos-acct-logout:hover { color: var(--cyan); }

/* Body: navigation + content */
.bos-acct-body { margin-top: -40px; }
.bos-acct-main .woocommerce { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.bos-acct-main .woocommerce::before, .bos-acct-main .woocommerce::after { display: none; }
.bos-acct-main .woocommerce-MyAccount-navigation { float: none; width: auto; flex: 1 1 220px; max-width: 260px; background: #fff; border: 1px solid var(--line); padding: 8px 0; }
.bos-acct-main .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.bos-acct-main .woocommerce-MyAccount-navigation li { margin: 0; padding: 0; border: 0; }
.bos-acct-main .woocommerce-MyAccount-navigation a { display: flex; align-items: center; min-height: 48px; padding: 0 20px; color: #26333a; font-size: 15px; text-decoration: none; }
.bos-acct-main .woocommerce-MyAccount-navigation a:hover { background: #f2f7f8; color: var(--cyan-dark); }
.bos-acct-main .woocommerce-MyAccount-navigation .is-active a { color: var(--ink); font-weight: 700; box-shadow: inset 3px 0 0 var(--cyan); background: #f2f7f8; }
.bos-acct-main .woocommerce-MyAccount-content { float: none; width: auto; flex: 999 1 560px; min-width: 0; }
.bos-acct-main.is-in .woocommerce-MyAccount-content > :not(.bos-dash):not(.bos-docs):not(.woocommerce-notices-wrapper) { background: #fff; border: 1px solid var(--line); padding: 28px; }
.bos-acct-main .woocommerce-MyAccount-content > .woocommerce-notices-wrapper:empty { display: none; }
.bos-acct-main.is-out .woocommerce { display: block; }

/* Cards, tables, badges */
.bos-acct-card { background: #fff; border: 1px solid var(--line); padding: 28px; }
.bos-acct-card h2 { margin: 0; font-size: 22px; font-weight: 800; text-transform: uppercase; }
.bos-acct-card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.bos-acct-card-head > a, .bos-acct-card-links > a:not(.button) { font-weight: 600; font-size: 14px; color: var(--cyan-dark); text-decoration: none; }
.bos-acct-card-links { display: flex; align-items: center; gap: 18px; }
.bos-acct-muted { font-size: 14px; color: var(--grey); }
.bos-acct-table { width: 100%; border-collapse: collapse; font-size: 15px; border: 0 !important; margin: 0 !important; }
.bos-acct-table th { text-align: left; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey); font-weight: 600; padding: 10px 8px !important; border: 0 !important; }
.bos-acct-table td { padding: 14px 8px !important; border: 0 !important; border-top: 1px solid #eef2f3 !important; vertical-align: middle; }
.bos-acct-table small { color: var(--grey); }
.bos-acct-actions { text-align: right; white-space: nowrap; }
.bos-acct-actions form { display: inline; margin: 0 0 0 6px; }
.bos-acct-actions a:not(.button) { font-weight: 600; font-size: 14px; color: var(--cyan-dark); }
.bos-acct-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.bos-acct-ok { background: #d9f2de; color: #1e6b32; }
.bos-acct-wait { background: #e3eef8; color: #1d4f80; }
.bos-acct-due { background: #fce4c4; color: #8a4b00; }
.bos-acct-late { background: #f8d0d0; color: #9b1c1c; }
.bos-acct-muted.bos-acct-badge, .bos-acct-badge.bos-acct-muted { background: #eef2f3; color: var(--grey); }

/* Buttons (WooCommerce .button inside the account) */
.bos-acct-main .button, .bos-acct-main button.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 1px solid #c9d6da; border-radius: 0; background: #fff; color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; }
.bos-acct-main .button:hover { border-color: var(--ink); }
.bos-acct-main .button.alt, .bos-acct-main button.button.alt, .bos-acct-main .woocommerce-Button[name="save_account_details"], .bos-acct-main .woocommerce-Button[name="save_address"] { background: var(--cyan); border-color: var(--cyan); color: var(--ink); font-weight: 700; }
.bos-acct-main .button.bos-btn-dark { background: var(--ink); border-color: var(--ink); color: var(--text); }

/* Dashboard */
.bos-dash { display: flex; flex-direction: column; gap: 24px; }
.bos-dash-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.bos-dash-figure { background: #fff; border: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--grey); }
.bos-dash-figure strong { font-size: 34px; font-weight: 900; line-height: 1.05; color: var(--ink); }
.bos-dash-figure a { font-weight: 600; font-size: 14px; color: var(--cyan-dark); text-decoration: none; }
.bos-dash-figure.is-dark { background: var(--ink); border-color: var(--ink); color: #a9c4cc; }
.bos-dash-figure.is-dark strong, .bos-dash-figure.is-dark strong .amount { color: var(--text); }
.bos-dash-figure.is-dark a { color: var(--cyan); }
.bos-dash-label { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.bos-dash-warn { color: #fcc58a; }
.bos-steps { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.bos-steps li { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--grey); }
.bos-steps strong { font-size: 14px; color: var(--ink); }
.bos-steps .is-todo strong { font-weight: 400; color: var(--grey); }
.bos-steps-bar { display: block; height: 6px; background: var(--line); }
.bos-steps .is-done .bos-steps-bar { background: var(--cyan); }
.bos-steps .is-now .bos-steps-bar { background: var(--cyan-dark); }
.bos-last-order { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 20px; border-top: 1px solid #eef2f3; }
.bos-last-order-img { width: 64px; height: 64px; object-fit: cover; background: #eef2f3; }
.bos-last-order-text { flex: 1 1 240px; display: flex; flex-direction: column; gap: 2px; }
.bos-dash-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.bos-dash-tiles a { background: #fff; border: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none; }
.bos-dash-tiles a:hover { border-color: var(--cyan-dark); }
.bos-dash-tiles strong { font-size: 17px; font-weight: 800; text-transform: uppercase; }
.bos-dash-tiles span { font-size: 13px; line-height: 1.5; color: var(--grey); }
.bos-dash-tiles em { margin-top: 6px; font-style: normal; color: var(--cyan-dark); font-weight: 600; font-size: 14px; }

/* Sign in */
.bos-login { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.bos-login-main { flex: 1.3 1 460px; min-width: 0; padding: 36px; display: flex; flex-direction: column; gap: 20px; }
.bos-login-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.bos-login-side h2 { font-size: 20px; margin: 4px 0 10px; }
.bos-login-side p { margin: 0 0 12px; font-size: 14px; line-height: 1.6; color: var(--grey); }
.bos-login-side a { font-weight: 600; font-size: 15px; color: var(--cyan-dark); text-decoration: none; }
.bos-login-dealers { background: var(--ink) !important; border-color: var(--ink) !important; color: var(--text); }
.bos-login-dealers p { color: var(--soft); }
.bos-login-dealers a { color: var(--cyan); }
.bos-login .bos-magic-login { margin: 0; }
.bos-login .bos-magic-login__separator { display: none; }
.bos-login .bos-magic-login__form p:first-child { margin: 0 0 12px; font-size: 14px; color: var(--grey); }
.bos-login .bos-magic-login__form button { width: 100%; min-height: 52px; background: var(--cyan); border-color: var(--cyan); color: var(--ink); font-weight: 700; font-size: 16px; }
.bos-login-or { display: flex; align-items: center; gap: 14px; margin: 4px 0; color: var(--muted); font-size: 13px; }
.bos-login-or::before, .bos-login-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.bos-login-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 14px; font-size: 14px; }
.bos-login-row a { color: var(--cyan-dark); }
.bos-login .bos-btn-outline { width: 100%; border-color: var(--ink); }

/* Forms (sign in, account details, addresses) */
.bos-acct-main .form-row { margin: 0 0 14px; padding: 0; }
.bos-acct-main label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.bos-acct-main .woocommerce-form__label-for-checkbox { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; margin: 0; min-height: 44px; }
.bos-acct-main input.input-text, .bos-acct-main select, .bos-acct-main textarea { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #c9d6da; border-radius: 0; background: #fff; font: inherit; font-size: 16px; }
.bos-acct-main input.input-text:focus, .bos-acct-main select:focus { outline: 2px solid var(--cyan); outline-offset: 0; border-color: var(--cyan); }

@media (max-width: 760px) {
  .bos-acct-wrap { padding-left: 16px; padding-right: 16px; }
  .bos-acct-band-row { padding-top: 28px; padding-bottom: 56px; }
  .bos-acct-main .woocommerce-MyAccount-navigation { max-width: none; flex-basis: 100%; }
  .bos-acct-main .woocommerce-MyAccount-navigation ul { display: flex; overflow-x: auto; }
  .bos-acct-main .woocommerce-MyAccount-navigation a { white-space: nowrap; }
  .bos-acct-main .woocommerce-MyAccount-navigation .is-active a { box-shadow: inset 0 -3px 0 var(--cyan); }
  .bos-acct-card, .bos-login-main { padding: 20px; }
  .bos-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bos-acct-actions { text-align: left; }
}

/* WooCommerce's own login box styles */
.bos-acct-main .bos-login form.woocommerce-form-login, .bos-acct-main .bos-login .bos-magic-login__form { border: 0; padding: 0; margin: 0; text-align: left; border-radius: 0; }
.bos-acct-main .bos-login .woocommerce-form-login label { text-align: left; }
