/* True Value — My account styles (forms, tables, buttons, notices). Loaded only on the account page. */

.tv-account-page { --tv-dark:#0e121e; --tv-lime:#d4ff32; --tv-lime-h:#c1ee22; --tv-purple:#7a5af8; --tv-border:#dfe3eb; color:#1a1d29; }

/* ---------- Tabs on login card ---------- */
.tv-auth-tabs [aria-selected="true"] { background:#fff; color:var(--tv-dark); box-shadow:0 2px 8px rgba(15,23,42,.08); }
.tv-auth-tabs [aria-selected="false"] { color:#64748b; }
.tv-auth-tabs [aria-selected="false"]:hover { color:var(--tv-dark); }

/* ---------- Form fields ---------- */
.tv-account-page .woocommerce form .form-row,
.tv-account-page form .form-row { padding:0; margin:0 0 16px; }
.tv-account-page form .form-row label,
.tv-account-page .woocommerce-form-row label,
.tv-account-page fieldset legend { display:block; font-size:12px; font-weight:700; color:var(--tv-dark); margin:0 0 6px; line-height:1.4; }
.tv-account-page .required { color:#ef4444; text-decoration:none; border:0; }
.tv-account-page .optional { color:#94a3b8; font-weight:500; }
.tv-account-page input.input-text,
.tv-account-page input[type="text"],
.tv-account-page input[type="email"],
.tv-account-page input[type="tel"],
.tv-account-page input[type="password"],
.tv-account-page select,
.tv-account-page textarea,
.tv-account-page .select2-container .select2-selection--single {
  width:100%; min-height:46px; border:1px solid var(--tv-border); border-radius:12px; background:#fff;
  padding:11px 14px; font-size:14px; line-height:1.4; color:var(--tv-dark); box-shadow:none; font-family:inherit; transition:border-color .15s, box-shadow .15s;
}
.tv-account-page textarea { min-height:90px; }
.tv-account-page input::placeholder, .tv-account-page textarea::placeholder { color:#a0a8b8; }
.tv-account-page input.input-text:focus,
.tv-account-page input[type="text"]:focus,
.tv-account-page input[type="email"]:focus,
.tv-account-page input[type="tel"]:focus,
.tv-account-page input[type="password"]:focus,
.tv-account-page select:focus,
.tv-account-page textarea:focus,
.tv-account-page .select2-container--open .select2-selection--single,
.tv-account-page .select2-container--focus .select2-selection--single { outline:none; border-color:var(--tv-purple); box-shadow:0 0 0 3px rgba(122,90,248,.15); }
.tv-account-page .woocommerce-invalid input.input-text { border-color:#ef4444; }

/* select2 (country / district dropdowns) */
.tv-account-page .select2-container .select2-selection--single { display:flex; align-items:center; padding:0 14px; }
.tv-account-page .select2-container .select2-selection--single .select2-selection__rendered { padding:0; line-height:1.4; color:var(--tv-dark); }
.tv-account-page .select2-container .select2-selection--single .select2-selection__arrow { height:44px; right:10px; }
.select2-dropdown { border-color:var(--tv-border) !important; border-radius:12px !important; overflow:hidden; box-shadow:0 12px 30px rgba(15,23,42,.12); }
.select2-results__option--highlighted[aria-selected], .select2-results__option--highlighted[data-selected] { background:var(--tv-purple) !important; }

/* Password show/hide eye */
.tv-account-page .password-input { display:block; position:relative; }
.tv-account-page .show-password-input { position:absolute; right:12px; top:50%; transform:translateY(-50%); background:none; border:0; padding:4px; cursor:pointer; color:#64748b; }
.tv-account-page .show-password-input::after { color:inherit; }

/* Checkbox */
.tv-account-page input[type="checkbox"] { width:16px; height:16px; border-radius:5px; border:1px solid #cbd5e1; accent-color:var(--tv-purple); vertical-align:-3px; margin-right:6px; }
.tv-account-page .woocommerce-form-login__rememberme { font-size:13px; font-weight:600; color:#475569; margin:0; }

/* Two-column field rows (first/last name) */
.tv-account-page .form-row-first, .tv-account-page .form-row-last { width:100%; float:none; }
@media (min-width:640px) {
  .tv-account-page .woocommerce-EditAccountForm, .tv-account-page .woocommerce-address-fields__field-wrapper { display:grid; grid-template-columns:1fr 1fr; column-gap:16px; }
  .tv-account-page .woocommerce-EditAccountForm > *, .tv-account-page .woocommerce-address-fields__field-wrapper > * { grid-column:1 / -1; }
  .tv-account-page .woocommerce-EditAccountForm > .form-row-first, .tv-account-page .woocommerce-address-fields__field-wrapper > .form-row-first { grid-column:1; }
  .tv-account-page .woocommerce-EditAccountForm > .form-row-last, .tv-account-page .woocommerce-address-fields__field-wrapper > .form-row-last { grid-column:2; }
}
.tv-account-page .clear { display:none; }
.tv-account-page form .form-row .description, .tv-account-page #account_display_name_description { display:block; font-size:12px; color:#94a3b8; margin-top:6px; font-style:normal; }

/* Fieldset (password change) */
.tv-account-page fieldset { border:1px solid #e6e9f2; border-radius:18px; padding:18px 18px 4px; margin:8px 0 20px; }
.tv-account-page fieldset legend { font-size:14px; font-weight:800; padding:0 6px; margin-left:-6px; }

/* ---------- Buttons ---------- */
.tv-account-page .button,
.tv-account-page button.button,
.tv-account-page a.button,
.tv-account-page input.button,
.tv-account-page .woocommerce-Button {
  display:inline-flex; align-items:center; justify-content:center; gap:6px; border:1px solid transparent; border-radius:9999px;
  background:var(--tv-dark); color:#fff; font-size:13px; font-weight:700; line-height:1.2; padding:11px 20px; text-decoration:none; cursor:pointer; transition:background .2s, box-shadow .2s, transform .1s; font-family:inherit;
}
.tv-account-page .button:hover, .tv-account-page .woocommerce-Button:hover { background:#1e2435; color:#fff; }
.tv-account-page .button:active { transform:scale(.98); }
.tv-account-page .button.tv-btn-primary,
.tv-account-page button.button.woocommerce-form-login__submit,
.tv-account-page button.button.woocommerce-form-register__submit,
.tv-account-page button.button[name="save_account_details"],
.tv-account-page button.button[name="save_address"],
.tv-account-page .woocommerce-ResetPassword button.button { background:var(--tv-lime); color:var(--tv-dark); font-size:14px; font-weight:800; padding:13px 26px; }
.tv-account-page .woocommerce-form-login__submit,
.tv-account-page .woocommerce-form-register__submit { width:100%; }
.tv-account-page .button.tv-btn-primary:hover,
.tv-account-page button.button.woocommerce-form-login__submit:hover,
.tv-account-page button.button.woocommerce-form-register__submit:hover,
.tv-account-page button.button[name="save_account_details"]:hover,
.tv-account-page button.button[name="save_address"]:hover,
.tv-account-page .woocommerce-ResetPassword button.button:hover { background:var(--tv-lime-h); color:var(--tv-dark); box-shadow:0 0 25px -3px rgba(212,255,50,.45); }

/* ---------- Notices ---------- */
.tv-account-page .woocommerce-message,
.tv-account-page .woocommerce-info,
.tv-account-page .woocommerce-error,
.tv-account-page .woocommerce-notice {
  list-style:none; margin:0 0 20px; padding:14px 16px 14px 44px; border-radius:14px; font-size:13px; font-weight:600; position:relative; border:1px solid; background:#fff;
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px;
}
.tv-account-page .woocommerce-message::before,
.tv-account-page .woocommerce-info::before,
.tv-account-page .woocommerce-error::before { position:absolute; left:16px; top:50%; transform:translateY(-50%); font-family:inherit; content:"i"; width:18px; height:18px; border-radius:9999px; display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:800; color:#fff; }
.tv-account-page .woocommerce-message { background:#f0fdf4; border-color:#bbf7d0; color:#166534; }
.tv-account-page .woocommerce-message::before { content:"\2713"; background:#16a34a; }
.tv-account-page .woocommerce-info, .tv-account-page .woocommerce-notice { background:#f6f3ff; border-color:#ddd6fe; color:#4c1d95; }
.tv-account-page .woocommerce-info::before { background:var(--tv-purple); }
.tv-account-page .woocommerce-error { background:#fef2f2; border-color:#fecaca; color:#991b1b; flex-direction:column; align-items:flex-start; }
.tv-account-page .woocommerce-error::before { content:"!"; background:#dc2626; top:24px; }
.tv-account-page .woocommerce-error li { margin:0; }
.tv-account-page .woocommerce-message .button, .tv-account-page .woocommerce-info .button { order:2; padding:8px 16px; font-size:12px; background:var(--tv-dark); color:#fff; float:none; }

/* ---------- Tables (orders, order details) ---------- */
.tv-account-page table.shop_table { width:100%; border:1px solid #e6e9f2; border-radius:16px; border-collapse:separate; border-spacing:0; overflow:hidden; font-size:13px; margin:0 0 24px; }
.tv-account-page table.shop_table th,
.tv-account-page table.shop_table td { padding:14px 16px; border:0; border-top:1px solid #f1f3f7; text-align:left; vertical-align:middle; background:#fff; }
.tv-account-page table.shop_table thead th { background:#f8f9fc; border-top:0; font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.06em; color:#64748b; }
.tv-account-page table.shop_table tbody tr:hover td, .tv-account-page table.shop_table tbody tr:hover th { background:#fbfbfe; }
.tv-account-page table.shop_table tfoot th, .tv-account-page table.shop_table tfoot td { background:#fafbfd; font-weight:700; }
.tv-account-page table.shop_table tfoot tr:last-child td, .tv-account-page table.shop_table tfoot tr:last-child th { font-size:15px; font-weight:800; color:var(--tv-dark); }
.tv-account-page .woocommerce-orders-table__cell-order-number a { font-weight:800; color:var(--tv-dark); text-decoration:none; }
.tv-account-page .woocommerce-orders-table__cell-order-number a:hover { color:var(--tv-purple); }
.tv-account-page .woocommerce-orders-table__cell-order-actions .button { padding:8px 14px; font-size:12px; margin:2px 4px 2px 0; }
.tv-account-page .woocommerce-orders-table__cell-order-actions .button.cancel { background:#fff; color:#b91c1c; border-color:#fecaca; }
.tv-account-page table.shop_table td.product-name a { color:var(--tv-dark); font-weight:700; text-decoration:none; }
.tv-account-page table.shop_table .product-quantity { color:#64748b; font-weight:700; }

/* Mobile: stack table rows as cards */
@media (max-width:767px) {
  .tv-account-page table.shop_table_responsive thead { display:none; }
  .tv-account-page table.shop_table_responsive, .tv-account-page table.shop_table_responsive tbody { display:block; border:0; border-radius:0; overflow:visible; }
  .tv-account-page table.shop_table_responsive tr { display:block; border:1px solid #e6e9f2; border-radius:16px; overflow:hidden; margin-bottom:12px; }
  .tv-account-page table.shop_table_responsive tr th,
  .tv-account-page table.shop_table_responsive tr td { display:flex; justify-content:space-between; align-items:center; gap:12px; text-align:right !important; padding:11px 14px; }
  .tv-account-page table.shop_table_responsive tr > :first-child { border-top:0; }
  .tv-account-page table.shop_table_responsive tr th::before,
  .tv-account-page table.shop_table_responsive tr td::before { content:attr(data-title); font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.05em; color:#94a3b8; text-align:left; float:none; }
  .tv-account-page table.shop_table_responsive tr td.woocommerce-orders-table__cell-order-actions { justify-content:flex-end; flex-wrap:wrap; }
  .tv-account-page table.shop_table_responsive tr td.woocommerce-orders-table__cell-order-actions::before { display:none; }
}

/* ---------- Order details page ---------- */
.tv-account-page .woocommerce-MyAccount-content > p:first-of-type mark,
.tv-account-page .woocommerce-MyAccount-content mark { background:#f6f3ff; color:var(--tv-purple); font-weight:800; padding:1px 6px; border-radius:6px; }
.tv-account-page .woocommerce-order-details__title,
.tv-account-page .woocommerce-column__title,
.tv-account-page .woocommerce-Address-title h2,
.tv-account-page .woocommerce-Address-title h3 { font-size:16px; font-weight:800; color:var(--tv-dark); margin:8px 0 12px; }
.tv-account-page .woocommerce-customer-details address,
.tv-account-page .woocommerce-Address address { border:1px solid #e6e9f2; border-radius:16px; padding:16px 18px; font-style:normal; font-size:13px; line-height:1.7; color:#475569; background:#fafbfd; }
.tv-account-page .woocommerce-customer-details .col2-set,
.tv-account-page .woocommerce-Addresses { display:grid; gap:16px; }
@media (min-width:768px) { .tv-account-page .woocommerce-customer-details .col2-set, .tv-account-page .woocommerce-Addresses { grid-template-columns:1fr 1fr; } }
.tv-account-page .col2-set::before, .tv-account-page .col2-set::after, .tv-account-page .woocommerce-Addresses::before, .tv-account-page .woocommerce-Addresses::after { display:none; }
.tv-account-page .col2-set .col-1, .tv-account-page .col2-set .col-2,
.tv-account-page .woocommerce-Addresses .woocommerce-Address { width:100%; float:none; max-width:none; }
.tv-account-page .woocommerce-Address { border:1px solid #e6e9f2; border-radius:18px; padding:18px; }
.tv-account-page .woocommerce-Address address { border:0; padding:0; background:none; }
.tv-account-page .woocommerce-Address-title { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:8px; }
.tv-account-page .woocommerce-Address-title h2, .tv-account-page .woocommerce-Address-title h3 { margin:0; }
.tv-account-page .woocommerce-Address-title .edit { font-size:12px; font-weight:800; color:var(--tv-purple); text-decoration:none; background:#f6f3ff; padding:6px 12px; border-radius:9999px; float:none; }
.tv-account-page .woocommerce-Address-title .edit:hover { background:var(--tv-purple); color:#fff; }
.tv-account-page .woocommerce-MyAccount-content > p { font-size:14px; color:#475569; line-height:1.65; margin:0 0 14px; }
.tv-account-page .woocommerce-MyAccount-content a:not(.button):not([class*="bg-"]) { color:var(--tv-purple); font-weight:700; }
.tv-account-page .woocommerce-pagination { display:flex; gap:8px; justify-content:center; }

/* Lost / reset password card (logged out) */
.tv-account-page .woocommerce-ResetPassword { max-width:480px; margin:0 auto; background:#fff; border:1px solid #e2e5eb; border-radius:24px; padding:32px; box-shadow:0 10px 30px -8px rgba(0,0,0,.06); }
.tv-account-page .woocommerce-ResetPassword > p:first-child { font-size:14px; color:#475569; margin-bottom:18px; }

/* Neutralise WooCommerce default floats/widths on our layout */
.tv-account-page .woocommerce-MyAccount-navigation, .tv-account-page .woocommerce-MyAccount-content { float:none; width:auto; }
.tv-account-page .woocommerce-MyAccount-navigation ul { list-style:none; margin:0; padding:0; }
.tv-account-nav ul { scrollbar-width:none; }
.tv-account-nav ul::-webkit-scrollbar { display:none; }
.tv-account-page .woocommerce::after, .tv-account-page .woocommerce::before { display:none; }

/* Remove WooCommerce's default boxed login/register forms */
.tv-account-page .woocommerce form.login, .tv-account-page .woocommerce form.register, .tv-account-page form.login, .tv-account-page form.register { border:0; padding:0; margin:0; border-radius:0; }
.tv-account-page .woocommerce form .password-input input[type=password] { padding-right:44px; }

/* Full-width name fields inside the grid (beats WooCommerce's 47% widths) */
.tv-account-page .woocommerce form .form-row-first,
.tv-account-page .woocommerce form .form-row-last,
.tv-account-page .woocommerce-page form .form-row-first,
.tv-account-page .woocommerce-page form .form-row-last,
.tv-account-page form .form-row-first,
.tv-account-page form .form-row-last { width:100%; float:none; margin-right:0; }
.tv-account-page .woocommerce form .form-row .input-text,
.tv-account-page .woocommerce form .form-row select { width:100%; }

/* Headings inside account forms ("Billing address") */
.tv-account-page .woocommerce-MyAccount-content form > h2,
.tv-account-page .woocommerce-MyAccount-content form > h3,
.tv-account-page .woocommerce-MyAccount-content > form > h3 { font-size:16px; font-weight:800; color:#0e121e; margin:0 0 14px; }
.tv-account-page .woocommerce-address-fields > p:last-child { margin-top:8px; }
/* Mobile order cards: keep cell text together, label on the left */
@media (max-width:767px) {
  .tv-account-page table.shop_table_responsive tr th,
  .tv-account-page table.shop_table_responsive tr td { display:block; text-align:right !important; }
  .tv-account-page table.shop_table_responsive tr th::before,
  .tv-account-page table.shop_table_responsive tr td::before { float:left; margin-right:12px; line-height:22px; }
  .tv-account-page table.shop_table_responsive tr th::after,
  .tv-account-page table.shop_table_responsive tr td::after { content:""; display:table; clear:both; }
  .tv-account-page table.shop_table_responsive tr td.woocommerce-orders-table__cell-order-actions { display:flex; }
}