:root{--page-title-display:none;}/* Start custom CSS for woocommerce-my-account, class: .elementor-element-e4548db *//* =========================
   STARWEAR - MI CUENTA
========================= */

/* Layout general */
.woocommerce-account .woocommerce {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px;
  box-sizing: border-box;
}

/* Menú lateral */
.woocommerce-account .woocommerce-MyAccount-navigation {
  width: 290px;
  background: #ffffff;
  border: 1px solid #ececec;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
  margin-bottom: 12px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li:last-child {
  margin-bottom: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 15px 16px;
  text-decoration: none;
  color: #222 !important;
  font-weight: 600;
  font-size: 16px;
  border-radius: 14px;
  background: #f5f5f5;
  transition: all 0.25s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
  background: #f0dede;
  color: #A61F21 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
  background: #A61F21;
  color: #ffffff !important;
}

/* Contenido derecho */
.woocommerce-account .woocommerce-MyAccount-content {
  flex: 1;
  background: #ffffff;
  border: 1px solid #ececec;
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

/* Ocultar texto default del dashboard */
.woocommerce-account .woocommerce-MyAccount-content > p:first-of-type,
.woocommerce-account .woocommerce-MyAccount-content > p:nth-of-type(2),
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info {
  display: none !important;
}

/* Evitar ocultar textos importantes dentro de bloques custom */
.woocommerce-account .woocommerce-MyAccount-content .starwear-account-dashboard p,
.woocommerce-account .woocommerce-MyAccount-content table p,
.woocommerce-account .woocommerce-MyAccount-content form p {
  display: block !important;
}

/* Bienvenida personalizada */
.starwear-account-dashboard {
  margin-top: 0;
}

.starwear-account-welcome {
  background: #fafafa;
  border: 1px solid #ededed;
  border-radius: 16px;
  padding: 26px;
  margin-bottom: 24px;
}

.starwear-account-welcome h2 {
  margin: 0 0 10px 0;
  font-size: 28px;
  color: #1f1f1f;
  font-weight: 700;
}

.starwear-account-welcome p {
  margin: 0;
  color: #5c5c5c;
  line-height: 1.7;
  font-size: 15px;
}

/* Grid de accesos */
.starwear-account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.starwear-account-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 82px;
  border-radius: 16px;
  text-decoration: none;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  padding: 18px;
  transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.07);
}

.starwear-account-card:hover {
  transform: translateY(-2px);
  opacity: .96;
}

.starwear-red {
  background: #A61F21;
}

.starwear-blue {
  background: #4568a8;
}

.starwear-dark {
  background: #3d3d3d;
}

.starwear-gray {
  background: #7a7a7a;
}

/* Títulos */
.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3 {
  color: #1f1f1f;
}

/* Links internos */
.woocommerce-account .woocommerce-MyAccount-content a {
  color: #A61F21;
  text-decoration: none;
  font-weight: 600;
}

.woocommerce-account .woocommerce-MyAccount-content a:hover {
  text-decoration: underline;
}

/* Tablas generales */
.woocommerce-account table.shop_table,
.woocommerce-account .woocommerce-orders-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #ececec;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

/* Encabezados de tabla */
.woocommerce-account table.shop_table thead th,
.woocommerce-account .woocommerce-orders-table thead th {
  background: #f5f7fb !important;
  color: #2d2d2d !important;
  padding: 14px 18px !important;
  font-weight: 700;
  border-bottom: 1px solid #eaeaea !important;
  text-align: left;
}

/* Celdas */
.woocommerce-account table.shop_table td,
.woocommerce-account .woocommerce-orders-table td {
  padding: 14px 18px !important;
  border-top: 1px solid #efefef;
  color: #444;
  vertical-align: middle;
}

/* Más aire a la izquierda */
.woocommerce-account table.shop_table th:first-child,
.woocommerce-account table.shop_table td:first-child,
.woocommerce-account .woocommerce-orders-table th:first-child,
.woocommerce-account .woocommerce-orders-table td:first-child {
  padding-left: 22px !important;
}

/* Filas zebra suaves */
.woocommerce-account table.shop_table tbody tr:nth-child(even) td {
  background: #fcfcfc;
}

/* Hover suave */
.woocommerce-account table.shop_table tbody tr:hover,
.woocommerce-account .woocommerce-orders-table tbody tr:hover {
  background: #fafafa;
}

/* Tabla específica detalle del pedido */
.woocommerce-account .shop_table.order_details td,
.woocommerce-account .shop_table.order_details th {
  border-color: #ececec !important;
}

/* Totales en detalle del pedido */
.woocommerce-account table.shop_table tfoot th,
.woocommerce-account table.shop_table tfoot td {
  padding: 14px 18px !important;
  border-top: 1px solid #ececec;
}

/* Filas intermedias como subtotal y traspaso */
.woocommerce-account table.shop_table tfoot tr:not(:last-child) th,
.woocommerce-account table.shop_table tfoot tr:not(:last-child) td {
  background: #faf6f6 !important;
  color: #4a4a4a !important;
  font-weight: 600;
}

/* Resaltar solo el total final */
.woocommerce-account table.shop_table tfoot tr:last-child th,
.woocommerce-account table.shop_table tfoot tr:last-child td {
  background: #A61F21 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

/* Quitar método de pago en detalle del pedido */
.woocommerce-account .shop_table.order_details tfoot tr:last-child + tr,
.woocommerce-account .shop_table.order_details tfoot tr:has(th:contains("Método de pago")) {
  display: none !important;
}

/* Fallback para ocultar la última fila si método de pago aparece al final */
.woocommerce-account .shop_table.order_details tfoot tr:last-child td:contains("Solicitud de presupuesto") {
  display: none !important;
}

/* Como :contains no funciona en CSS real, ocultamos la fila final extra si aparece después del total */
.woocommerce-account .shop_table.order_details tfoot tr:last-child:not(:only-child) {
  display: table-row !important;
}

/* Si el método de pago queda como última fila y el total no está al final, usa este .elementor-14 .elementor-element.elementor-element-e4548db más seguro */
.woocommerce-account .shop_table.order_details tfoot tr:nth-last-child(1) th,
.woocommerce-account .shop_table.order_details tfoot tr:nth-last-child(1) td {
  /* se mantiene por defecto */
}

/* Botones */
.woocommerce-account .button,
.woocommerce-account button,
.woocommerce-account input[type="submit"],
.woocommerce-account .woocommerce-button {
  background: #A61F21 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 12px 18px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

.woocommerce-account .button:hover,
.woocommerce-account button:hover,
.woocommerce-account input[type="submit"]:hover,
.woocommerce-account .woocommerce-button:hover {
  opacity: 0.94;
}

/* Campos de formulario */
.woocommerce-account input[type="text"],
.woocommerce-account input[type="email"],
.woocommerce-account input[type="password"],
.woocommerce-account input[type="tel"],
.woocommerce-account textarea,
.woocommerce-account select {
  border: 1px solid #d8d8d8;
  border-radius: 12px;
  padding: 12px 14px;
  width: 100%;
  box-sizing: border-box;
}

/* Avisos */
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-info,
.woocommerce-account .woocommerce-error {
  border-radius: 12px;
  padding: 14px 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .woocommerce-account .woocommerce {
    flex-direction: column;
    gap: 20px;
    padding: 20px 14px;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation,
  .woocommerce-account .woocommerce-MyAccount-content {
    width: 100%;
  }

  .starwear-account-welcome {
    padding: 18px;
  }

  .starwear-account-welcome h2 {
    font-size: 24px;
  }

  .starwear-account-card {
    min-height: 74px;
    font-size: 16px;
  }
}

/* Ocultar párrafos default del dashboard */
.woocommerce-account .woocommerce-MyAccount-content > p {
  display: none !important;
}

/* Mantener visible solo el dashboard personalizado */
.woocommerce-account .woocommerce-MyAccount-content .starwear-account-dashboard,
.woocommerce-account .woocommerce-MyAccount-content .starwear-account-dashboard * {
  display: revert !important;
}/* End custom CSS */