/* 27.1 My Account: "Dashboard" heading + Log Out, prominent tabs, re-order button. Navy/gold. */
.woocommerce-account{--navy:#15233d;--gold:#c89a44;--gold-bright:#e3bd6a;--line:#e2d8c4;--paper:#faf6ee;--ink:#1a2130}

/* Header row above the tabs: "Dashboard" title + Log Out button */
.woocommerce-account .rbp-account-header{
  display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:0 0 22px
}
.woocommerce-account .rbp-account-title{margin:0;font-size:1.9rem;color:var(--navy);line-height:1.1}

/* Shared button */
.rbp-btn{
  display:inline-block;background:var(--gold);color:#0d1626 !important;text-decoration:none;
  font-weight:700;font-size:.82rem;text-transform:uppercase;letter-spacing:.04em;line-height:1.2;
  padding:.6em 1.15em;border-radius:4px;border:1.5px solid var(--gold);transition:background .15s ease,border-color .15s ease
}
.rbp-btn:hover{background:var(--gold-bright);border-color:var(--gold-bright)}
.rbp-btn.logout{background:var(--navy);color:#fff !important;border-color:var(--navy)}
.rbp-btn.logout:hover{background:#1a2c4a;border-color:#1a2c4a}

/* Account navigation tabs — clear, button-like, hard to overlook */
.woocommerce-account .woocommerce-MyAccount-navigation ul{
  display:flex;flex-wrap:wrap;gap:10px;justify-content:center;list-style:none;margin:0 0 30px;padding:0;border:0
}
.woocommerce-account .woocommerce-MyAccount-navigation li{margin:0;border:0;padding:0}
.woocommerce-account .woocommerce-MyAccount-navigation li a{
  display:block;padding:.68em 1.25em;border:1.5px solid var(--line);border-radius:6px;background:#fff;
  font-weight:700;text-transform:uppercase;letter-spacing:.04em;font-size:.86rem;line-height:1.1;
  color:var(--navy) !important;text-decoration:none;transition:background .15s ease,border-color .15s ease,color .15s ease
}
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover{border-color:var(--gold);color:var(--gold) !important}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a{background:var(--navy);border-color:var(--navy);color:#fff !important}

@media(max-width:600px){
  .woocommerce-account .rbp-account-header{justify-content:center;text-align:center}
}

/* Orders table — refreshed navy/gold UI */
.woocommerce-account .woocommerce-orders-table{
  width:100%;border-collapse:separate;border-spacing:0;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff;margin:0
}
.woocommerce-account .woocommerce-orders-table thead th{
  background:var(--navy);color:#fff;text-transform:uppercase;letter-spacing:.06em;font-size:.74rem;font-weight:700;
  padding:13px 16px;text-align:left;border:0
}
.woocommerce-account .woocommerce-orders-table tbody td{
  padding:15px 16px;border-bottom:1px solid var(--line);color:var(--ink);font-size:.95rem;vertical-align:middle;background:#fff
}
.woocommerce-account .woocommerce-orders-table tbody tr:last-child td{border-bottom:0}
.woocommerce-account .woocommerce-orders-table tbody tr:hover td{background:var(--paper)}
.woocommerce-account .woocommerce-orders-table .woocommerce-orders-table__cell-order-number a,
.woocommerce-account .woocommerce-orders-table td.order-number a{color:var(--navy);font-weight:800;text-decoration:none}
.woocommerce-account .woocommerce-orders-table .woocommerce-orders-table__cell-order-number a:hover,
.woocommerce-account .woocommerce-orders-table td.order-number a:hover{color:var(--gold)}

/* Action buttons: Order again = gold primary, Invoice = navy outline */
.woocommerce-account .woocommerce-orders-table td.order-actions,
.woocommerce-account .woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions{text-align:right;white-space:nowrap}
.woocommerce-account .woocommerce-orders-table .button{
  display:inline-block;margin:3px 0 3px 8px;padding:.56em 1.05em;border-radius:5px;font-weight:700;text-transform:uppercase;
  letter-spacing:.04em;font-size:.78rem;line-height:1.1;text-decoration:none;border:1.5px solid var(--navy);
  background:#fff;color:var(--navy) !important;transition:background .15s ease,border-color .15s ease,color .15s ease
}
.woocommerce-account .woocommerce-orders-table .button:hover{background:var(--navy);color:#fff !important;border-color:var(--navy)}
.woocommerce-account .woocommerce-orders-table .button.order-again{background:var(--gold);color:#0d1626 !important;border-color:var(--gold)}
.woocommerce-account .woocommerce-orders-table .button.order-again:hover{background:var(--gold-bright);border-color:var(--gold-bright);color:#0d1626 !important}

/* Mobile stacked rows (shop_table_responsive) */
@media(max-width:768px){
  .woocommerce-account .woocommerce-orders-table tbody td{display:flex;justify-content:space-between;align-items:center;gap:14px;text-align:right;padding:10px 14px}
  .woocommerce-account .woocommerce-orders-table tbody td::before{content:attr(data-title);font-weight:700;text-transform:uppercase;letter-spacing:.04em;font-size:.72rem;color:#6a7488}
  .woocommerce-account .woocommerce-orders-table tbody tr{display:block;border:1px solid var(--line);border-radius:8px;margin-bottom:14px;overflow:hidden}
  .woocommerce-account .woocommerce-orders-table td.order-actions{justify-content:flex-end;flex-wrap:wrap}
  .woocommerce-account .woocommerce-orders-table .button{margin:3px 0 3px 6px}
}

/* Left gutter so the order numbers don't abut the frame */
.woocommerce-account .woocommerce-orders-table thead th:first-child,
.woocommerce-account .woocommerce-orders-table tbody td:first-child{padding-left:30px}
.woocommerce-account .woocommerce-orders-table thead th:last-child,
.woocommerce-account .woocommerce-orders-table tbody td:last-child{padding-right:24px}
@media(max-width:768px){
  .woocommerce-account .woocommerce-orders-table tbody td:first-child{padding-left:14px}
}
/* Force Order again gold over the theme's button background */
.woocommerce-account .woocommerce-orders-table .button.order-again{background:var(--gold) !important;border-color:var(--gold) !important;color:#0d1626 !important}
.woocommerce-account .woocommerce-orders-table .button.order-again:hover{background:var(--gold-bright) !important;border-color:var(--gold-bright) !important;color:#0d1626 !important}

/* Force the left gutter over the theme's cell padding */
.woocommerce-account .woocommerce-orders-table tr > *:first-child{padding-left:32px !important}
@media(max-width:768px){
  .woocommerce-account .woocommerce-orders-table tr > *:first-child{padding-left:14px !important}
}

/* High-specificity override to guarantee the left gutter wins over theme/WC rules */
body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table thead tr th:first-child,
body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr td:first-child{padding-left:34px !important}
@media(max-width:768px){
  body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr td:first-child{padding-left:14px !important}
}
