.mbeef-auth__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--mbeef-gutter);
  max-width: 960px;
  margin: 0 auto;
}

.mbeef-auth__single {
  max-width: 440px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .mbeef-auth__grid {
    grid-template-columns: 1fr;
  }
}

.mbeef-auth__card {
  background: var(--mbeef-surface-container-lowest);
  border: 1px solid var(--mbeef-surface-container-highest);
  padding: var(--mbeef-stack-lg);
}

.mbeef-auth__card h1,
.mbeef-auth__card h2 {
  margin: 0 0 var(--mbeef-stack-md);
}

/* Kill default WooCommerce login/register form chrome */
.mbeef-auth .woocommerce-form.login,
.mbeef-auth .woocommerce-form.register,
.woocommerce form.login.mbeef-form,
.woocommerce form.register.mbeef-form {
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent;
}

.mbeef-field {
  margin: 0 0 20px;
}

.mbeef-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mbeef-secondary);
  margin-bottom: 6px;
}

.mbeef-field .required {
  color: var(--mbeef-primary);
}

.mbeef-form input.input-text {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--mbeef-tertiary);
  background: transparent;
  border-radius: 0;
  padding: 10px 0;
}

.mbeef-form input.input-text:focus {
  outline: none;
  border-bottom-width: 2px;
  border-bottom-color: var(--mbeef-primary);
}

.mbeef-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--mbeef-on-surface-variant);
  cursor: pointer;
}

.mbeef-auth__link {
  margin-top: 16px;
  text-align: center;
}

.mbeef-auth__link a {
  color: var(--mbeef-primary);
  text-decoration: underline;
}

.mbeef-auth__hint {
  font-size: 14px;
  color: var(--mbeef-on-surface-variant);
  margin-bottom: 16px;
}

.woocommerce-account .woocommerce-form-login button.button:not(.mbeef-btn),
.woocommerce-account .woocommerce-form-register button.button:not(.mbeef-btn) {
  display: none;
}

/* —— Account shell (views/account) —— */
.mbeef-account-page__head {
  margin-bottom: var(--mbeef-stack-lg);
  padding-bottom: var(--mbeef-stack-md);
  border-bottom: 1px solid var(--mbeef-surface-variant, var(--mbeef-surface-container-highest));
}

.mbeef-account-page__head h1 {
  margin: 0;
}

.mbeef-account {
  display: flex;
  gap: var(--mbeef-gutter);
  align-items: flex-start;
}

.mbeef-account__aside {
  flex: 0 0 280px;
  width: 280px;
  max-width: 100%;
}

.mbeef-account__content {
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
  float: none !important;
}

/* Kill WooCommerce float/percentage layout that shrinks the sidebar. */
.woocommerce-account .woocommerce-MyAccount-navigation,
.mbeef-account .woocommerce-MyAccount-navigation {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-content {
  float: none !important;
  width: auto !important;
}

@media (max-width: 900px) {
  .mbeef-account {
    flex-direction: column;
  }

  .mbeef-account__aside {
    flex-basis: auto;
    width: 100%;
  }
}

.mbeef-account-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.mbeef-account-nav li {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mbeef-account-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  color: var(--mbeef-on-surface-variant);
  transition: background 0.15s, color 0.15s;
}

.mbeef-account-nav a:hover {
  background: var(--mbeef-surface-container-low);
  color: var(--mbeef-on-surface);
}

.mbeef-account-nav .is-active a,
.mbeef-account-nav li.is-active a,
.mbeef-account-nav li.woocommerce-MyAccount-navigation-link.is-active a {
  background: var(--mbeef-surface-container-low);
  color: var(--mbeef-primary);
  font-weight: 600;
  border-left: 4px solid var(--mbeef-primary);
  padding-left: 12px;
}

.mbeef-account-nav .is-active .material-symbols-outlined,
.mbeef-account-nav li.is-active .material-symbols-outlined {
  color: var(--mbeef-primary);
}

.mbeef-account-nav__logout {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--mbeef-surface-container-highest);
}

.mbeef-account-lead {
  color: var(--mbeef-on-surface-variant);
  margin: 0 0 var(--mbeef-stack-lg);
}

.mbeef-dashboard__intro {
  margin-bottom: var(--mbeef-stack-lg);
}

.mbeef-dashboard__intro a,
.mbeef-dashboard__desc a {
  color: var(--mbeef-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mbeef-dashboard__desc {
  color: var(--mbeef-on-surface-variant);
  margin: 16px 0 0;
}

.mbeef-dashboard__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--mbeef-stack-md);
}

@media (max-width: 768px) {
  .mbeef-dashboard__grid {
    grid-template-columns: 1fr;
  }
}

.mbeef-dash-card {
  border: 1px solid var(--mbeef-surface-container-highest);
  background: var(--mbeef-surface);
  padding: var(--mbeef-stack-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 100%;
}

.mbeef-dash-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--mbeef-surface-container-highest);
}

.mbeef-dash-card__head h3 {
  margin: 0;
  font-family: var(--mbeef-font-display);
  font-size: 18px;
  font-weight: 600;
}

.mbeef-dash-card__label {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mbeef-on-surface-variant);
}

.mbeef-dash-card__value {
  margin: 0 0 8px;
  font-weight: 600;
}

.mbeef-dash-card__value--accent {
  color: var(--mbeef-primary);
}

.mbeef-dash-card__sub {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
}

.mbeef-dash-card__address {
  font-style: normal;
  color: var(--mbeef-on-surface-variant);
  margin: 0 0 16px;
  line-height: 1.6;
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.mbeef-dash-card address,
.mbeef-order-addresses address,
.woocommerce-customer-details address,
.woocommerce-Address address {
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-style: normal;
}

.mbeef-dash-card__empty {
  color: var(--mbeef-on-surface-variant);
  margin: 0 0 16px;
}

.mbeef-dash-card .mbeef-btn--outline {
  margin-top: auto;
}

.mbeef-address-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--mbeef-stack-md);
}

@media (max-width: 768px) {
  .mbeef-address-grid {
    grid-template-columns: 1fr;
  }
}

.mbeef-dash-upsell {
  grid-column: 1 / -1;
  border: 1px solid var(--mbeef-surface-container-highest);
  background: var(--mbeef-surface-container-low);
  padding: var(--mbeef-stack-md);
  display: flex;
  gap: var(--mbeef-gutter);
  align-items: center;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .mbeef-dash-upsell {
    flex-direction: column;
    align-items: stretch;
  }
}

.mbeef-dash-upsell__media {
  width: 33%;
  flex-shrink: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--mbeef-surface-container);
}

@media (max-width: 768px) {
  .mbeef-dash-upsell__media {
    width: 100%;
  }
}

.mbeef-dash-upsell__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mbeef-dash-upsell__body {
  flex: 1;
  min-width: 0;
}

.mbeef-dash-upsell__body h3 {
  margin: 8px 0;
  font-family: var(--mbeef-font-display);
  font-size: 24px;
  font-weight: 600;
}

.mbeef-dash-upsell__body > p {
  color: var(--mbeef-on-surface-variant);
  margin: 0 0 16px;
}

.mbeef-dash-upsell__row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.mbeef-dash-upsell__price {
  font-family: var(--mbeef-font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--mbeef-primary);
}

.mbeef-dash-upsell__row .mbeef-btn {
  margin-left: auto;
}

/* Orders table (legacy WC markup if any) */
.woocommerce-orders-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 0 !important;
}

.woocommerce-orders-table th,
.woocommerce-orders-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--mbeef-surface-container-highest);
  text-align: left;
  border-radius: 0 !important;
}

.woocommerce-orders-table th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mbeef-on-surface-variant);
}

.woocommerce-orders-table a {
  color: var(--mbeef-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.woocommerce-orders-table .woocommerce-button,
.woocommerce-orders-table .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--mbeef-on-surface);
  border: 2px solid var(--mbeef-on-surface);
  border-radius: var(--mbeef-radius);
  padding: 8px 14px;
  font-family: var(--mbeef-font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none !important;
}

.woocommerce-orders-table .woocommerce-button:hover,
.woocommerce-orders-table .button:hover {
  background: var(--mbeef-on-surface);
  color: var(--mbeef-surface);
}

/* Account forms */
.woocommerce-MyAccount-content .woocommerce-EditAccountForm .form-row label,
.woocommerce-MyAccount-content .woocommerce-address-fields .form-row label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mbeef-secondary);
  margin-bottom: 6px;
}

.woocommerce-MyAccount-content input.input-text,
.woocommerce-MyAccount-content textarea,
.woocommerce-MyAccount-content select {
  width: 100%;
  border: 0 !important;
  border-bottom: 1px solid var(--mbeef-tertiary) !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 10px 0 !important;
  box-shadow: none !important;
}

.woocommerce-MyAccount-content .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mbeef-primary-container) !important;
  color: var(--mbeef-on-primary) !important;
  border: 0 !important;
  border-radius: var(--mbeef-radius) !important;
  font-family: var(--mbeef-font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 16px 32px !important;
  cursor: pointer;
}

.woocommerce-MyAccount-content .button:hover {
  background: var(--mbeef-primary) !important;
}

/* Orders list (card grid) */
.mbeef-orders-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--mbeef-stack-md);
}

@media (max-width: 768px) {
  .mbeef-orders-list {
    grid-template-columns: 1fr;
  }
}

.mbeef-order-card h3 a {
  color: inherit;
  text-decoration: none;
}

.mbeef-order-card h3 a:hover {
  color: var(--mbeef-primary);
  text-decoration: underline;
}

.mbeef-order-card__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

.mbeef-order-card__actions .mbeef-btn--outline {
  width: 100%;
}

/* View order */
.mbeef-order-details {
  margin-bottom: var(--mbeef-stack-md);
}

.mbeef-order-details .mbeef-dash-card__head h2 {
  margin: 0;
  font-family: var(--mbeef-font-display);
  font-size: 18px;
  font-weight: 600;
}

.mbeef-order-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin-top: 8px;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.mbeef-order-table th,
.mbeef-order-table td {
  padding: 12px 0;
  border: 0 !important;
  border-bottom: 1px solid var(--mbeef-surface-container-highest) !important;
  text-align: left;
  vertical-align: top;
  border-radius: 0 !important;
  background: transparent !important;
}

.mbeef-order-table tr:last-child th,
.mbeef-order-table tr:last-child td {
  border-bottom: 0 !important;
}

.mbeef-order-table thead th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mbeef-on-surface-variant);
}

.mbeef-order-table tfoot th {
  font-weight: 600;
  width: 40%;
}

/* Neutralize Woo shop_table chrome inside our card */
.mbeef-order-details table.shop_table,
.mbeef-order-details table.order_details {
  border: 0 !important;
  margin: 8px 0 0 !important;
}

.mbeef-order-details table.shop_table td,
.mbeef-order-details table.shop_table th,
.mbeef-order-details table.order_details td,
.mbeef-order-details table.order_details th {
  border-top: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
}

.mbeef-order-table__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mbeef-order-table__actions .mbeef-btn--outline {
  width: auto;
  margin-top: 0;
}

.mbeef-order-addresses {
  margin-top: var(--mbeef-stack-md);
}

.mbeef-order-notes {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mbeef-account-lead mark {
  background: transparent;
  color: var(--mbeef-primary);
  font-weight: 600;
}
