/* Kava · Mi cuenta: tablas y botones más claros */
.woocommerce-account .woocommerce-MyAccount-content table.shop_table,
.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table,
.woocommerce-account .woocommerce-MyAccount-content table.my_account_orders,
.woocommerce-account .woocommerce-MyAccount-content table.my_account_memberships {
  width: 100%;
  border: 1px solid #e6e1d6;
  border-radius: 12px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: #fff;
  margin: 0 0 24px;
}
.woocommerce-account .woocommerce-MyAccount-content table.shop_table thead th {
  background: #f7f4ec;
  color: #6b6558;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: left;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid #e6e1d6;
}
.woocommerce-account .woocommerce-MyAccount-content table.shop_table td,
.woocommerce-account .woocommerce-MyAccount-content table.shop_table tbody th {
  padding: 16px;
  font-size: 14px;
  line-height: 1.4;
  vertical-align: middle;
  border: 0;
  border-bottom: 1px solid #efebe1;
  background: transparent;
}
.woocommerce-account .woocommerce-MyAccount-content table.shop_table tbody tr:last-child td,
.woocommerce-account .woocommerce-MyAccount-content table.shop_table tbody tr:last-child th { border-bottom: 0; }
.woocommerce-account .woocommerce-MyAccount-content table.shop_table tbody tr:hover td { background: #fcfbf7; }
.woocommerce-account .woocommerce-MyAccount-content table.shop_table td a:not(.button) { color: #8a6d2f; font-weight: 600; text-decoration: none; }
.woocommerce-account .woocommerce-MyAccount-content table.shop_table td a:not(.button):hover { text-decoration: underline; }

/* Estados */
.kava-badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  background: #eee;
  color: #444;
}
.kava-badge--ok   { background: #e4f3e6; color: #1e6b34; }
.kava-badge--warn { background: #fdf0d3; color: #8a5a00; }
.kava-badge--bad  { background: #fbe4e2; color: #a52a20; }

/* Botones de acción */
.woocommerce-account .woocommerce-MyAccount-content .kava-btn {
  display: inline-block;
  margin: 2px 6px 2px 0;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.woocommerce-account .woocommerce-MyAccount-content .kava-btn:hover { background: #111; color: #fff; }
.woocommerce-account .woocommerce-MyAccount-content .kava-btn--primary { background: #111; color: #f3ead6; border-color: #111; }
.woocommerce-account .woocommerce-MyAccount-content .kava-btn--primary:hover { background: #b59556; border-color: #b59556; color: #111; }
.woocommerce-account .woocommerce-MyAccount-content .kava-btn--danger { border-color: #c4443a; color: #a52a20; background: #fff; }
.woocommerce-account .woocommerce-MyAccount-content .kava-btn--danger:hover { background: #a52a20; border-color: #a52a20; color: #fff; }

/* Móvil: cada fila como tarjeta */
@media (max-width: 767px) {
  .woocommerce-account .woocommerce-MyAccount-content table.shop_table_responsive tr {
    display: block;
    padding: 6px 0;
    border-bottom: 8px solid #f7f4ec;
  }
  .woocommerce-account .woocommerce-MyAccount-content table.shop_table_responsive tr:last-child { border-bottom: 0; }
  .woocommerce-account .woocommerce-MyAccount-content table.shop_table_responsive td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    text-align: right;
    padding: 10px 14px;
    border-bottom: 1px solid #f1eee5;
  }
  .woocommerce-account .woocommerce-MyAccount-content table.shop_table_responsive td::before {
    content: attr(data-title);
    float: none;
    font-weight: 600;
    font-size: 12px;
    color: #6b6558;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: .04em;
  }
  .woocommerce-account .woocommerce-MyAccount-content table.shop_table_responsive td:last-child { border-bottom: 0; flex-wrap: wrap; justify-content: flex-end; }
  .woocommerce-account .woocommerce-MyAccount-content .kava-btn { margin: 2px 0 2px 6px; }
}

/* Refuerzo: el tema aplica estilos propios a tablas y botones de Mi cuenta */
body.woocommerce-account .woocommerce-MyAccount-content table.shop_table tr,
body.woocommerce-account .woocommerce-MyAccount-content table.shop_table td,
body.woocommerce-account .woocommerce-MyAccount-content table.shop_table th { border: 0 !important; border-bottom: 1px solid #efebe1 !important; background: transparent !important; }
body.woocommerce-account .woocommerce-MyAccount-content table.shop_table thead th { background: #f7f4ec !important; border-bottom: 1px solid #e6e1d6 !important; }
body.woocommerce-account .woocommerce-MyAccount-content table.shop_table tbody tr:last-child td,
body.woocommerce-account .woocommerce-MyAccount-content table.shop_table tbody tr:last-child th,
body.woocommerce-account .woocommerce-MyAccount-content table.shop_table tfoot tr:last-child td,
body.woocommerce-account .woocommerce-MyAccount-content table.shop_table tfoot tr:last-child th { border-bottom: 0 !important; }
html body.woocommerce-account .woocommerce-MyAccount-content a.button.kava-btn.kava-btn,
html body.woocommerce-account .woocommerce-MyAccount-content button.button.kava-btn.kava-btn { background: #fff !important; color: #111 !important; border: 1px solid #111 !important; text-transform: none !important; border-radius: 8px !important; padding: 9px 16px !important; font-size: 13px !important; font-weight: 600 !important; box-shadow: none !important; }
html body.woocommerce-account .woocommerce-MyAccount-content a.button.kava-btn.kava-btn:hover { background: #111 !important; color: #fff !important; }
html body.woocommerce-account .woocommerce-MyAccount-content a.button.kava-btn.kava-btn--primary { background: #111 !important; color: #f3ead6 !important; }
html body.woocommerce-account .woocommerce-MyAccount-content a.button.kava-btn.kava-btn--primary:hover { background: #b59556 !important; border-color: #b59556 !important; color: #111 !important; }
html body.woocommerce-account .woocommerce-MyAccount-content a.button.kava-btn.kava-btn--danger { border-color: #c4443a !important; color: #a52a20 !important; }
html body.woocommerce-account .woocommerce-MyAccount-content a.button.kava-btn.kava-btn--danger:hover { background: #a52a20 !important; border-color: #a52a20 !important; color: #fff !important; }

/* Textos separados del borde de las tablas (todas las tablas de Mi cuenta) */
html body.woocommerce-account .woocommerce-MyAccount-content table th,
html body.woocommerce-account .woocommerce-MyAccount-content table td { padding: 14px 18px !important; }
html body.woocommerce-account .woocommerce-MyAccount-content table thead th { padding: 14px 18px !important; }
html body.woocommerce-account .woocommerce-MyAccount-content table { border: 1px solid #e6e1d6 !important; border-radius: 12px !important; border-collapse: separate !important; border-spacing: 0 !important; overflow: hidden; background: #fff; }
@media (max-width: 767px) {
  html body.woocommerce-account .woocommerce-MyAccount-content table th,
  html body.woocommerce-account .woocommerce-MyAccount-content table td { padding: 10px 14px !important; }
}

/* Mostrar avisos y errores de WooCommerce (login, etc.) en Mi cuenta */
html body.woocommerce-account .woocommerce-notices-wrapper { display: block !important; margin: 0 0 18px !important; }
html body.woocommerce-account .woocommerce-notices-wrapper .woocommerce-error,
html body.woocommerce-account .woocommerce-notices-wrapper .woocommerce-message,
html body.woocommerce-account .woocommerce-notices-wrapper .woocommerce-info { display: block !important; margin: 0 0 12px !important; padding: 14px 18px !important; border-radius: 10px; font-size: 14px; line-height: 1.4; list-style: none; }
html body.woocommerce-account .woocommerce-notices-wrapper .woocommerce-error { background: #fbe4e2; color: #a52a20; border: 1px solid #efb9b3; }
