#gtd-cuenta {
  background: #f7f5fb;
  min-height: clamp(380px, 52vh, 660px);
  padding: clamp(24px, 4vw, 52px) 0 clamp(32px, 5vw, 72px);
}

.gtd-cuenta-cab {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: clamp(20px, 4vw, 36px);
  margin-bottom: 22px;
  border-radius: 22px;
  background: linear-gradient(125deg, #171325 28%, #392363 100%);
  color: #fff;
}

#gtd-cuenta .gtd-cuenta-cab h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.03em;
}

.gtd-cuenta-cab p { margin: 7px 0 0; color: #e3d9f6; font-size: 14px; }

#gtd-cuenta .gtd-cuenta-explorar {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid #bfa9e6;
  border-radius: 11px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

#gtd-cuenta .gtd-cuenta-explorar:hover { background: #ffffff1f; }

#gtd-cuenta .gtd-cuenta-sesion > .woocommerce:has(> .woocommerce-MyAccount-navigation) {
  display: grid;
  grid-template-columns: minmax(165px, 205px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

#gtd-cuenta .gtd-cuenta-sesion > .woocommerce > :not(.woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content) { grid-column: 1 / -1; }
#gtd-cuenta .gtd-cuenta-sesion > .woocommerce::before,
#gtd-cuenta .gtd-cuenta-sesion > .woocommerce::after { display: none; }

#gtd-cuenta .woocommerce-MyAccount-navigation,
#gtd-cuenta .woocommerce-MyAccount-content { width: 100%; min-width: 0; margin: 0; float: none; }

#gtd-cuenta .woocommerce-MyAccount-navigation,
#gtd-cuenta .woocommerce-MyAccount-content,
#gtd-cuenta .gtd-cuenta-wc:not(.gtd-cuenta-sesion) > .woocommerce {
  border: 1px solid #e8e2f1;
  border-radius: 18px;
  background: #fff;
}

#gtd-cuenta .woocommerce-MyAccount-navigation { padding: 8px; }
#gtd-cuenta .woocommerce-MyAccount-navigation ul { display: flex; flex-direction: column; gap: 4px; list-style: none; margin: 0; padding: 0; }
#gtd-cuenta .woocommerce-MyAccount-navigation li { list-style: none; padding: 0; margin: 0; border: 0; }
#gtd-cuenta .woocommerce-MyAccount-navigation a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 10px;
  color: #403750;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

#gtd-cuenta .woocommerce-MyAccount-navigation a:hover { background: #f5f0ff; color: #48228e; }
#gtd-cuenta .woocommerce-MyAccount-navigation .is-active a { background: #eee5fc; color: #48228e; font-weight: 800; }
#gtd-cuenta .woocommerce-MyAccount-navigation li a::before { display: none; }

#gtd-cuenta .woocommerce-MyAccount-content,
#gtd-cuenta .gtd-cuenta-wc:not(.gtd-cuenta-sesion) > .woocommerce { padding: clamp(14px, 2.3vw, 24px); }
#gtd-cuenta .gtd-cuenta-subtitulo { margin: 0 0 14px; font-size: 19px; font-weight: 800; }
#gtd-cuenta .woocommerce-MyAccount-content :is(p, address) { overflow-wrap: anywhere; }

#gtd-cuenta table.woocommerce-orders-table {
  width: 100%;
  border-spacing: 0;
  border-collapse: separate;
  border: 0;
  margin: 0;
  font-size: 14px;
  table-layout: auto;
}

#gtd-cuenta .woocommerce-orders-table :is(th, td) {
  padding: 13px 12px;
  border: 0;
  text-align: start;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

#gtd-cuenta .woocommerce-orders-table thead th { color: #574b6b; background: #f6f1fd; font-size: 12px; font-weight: 750; }
#gtd-cuenta .woocommerce-orders-table thead th:first-child { border-radius: 10px 0 0 10px; }
#gtd-cuenta .woocommerce-orders-table thead th:last-child { border-radius: 0 10px 10px 0; }
#gtd-cuenta .woocommerce-orders-table tbody :is(th, td) { background: #fff; border-bottom: 1px solid #eee9f4; }
#gtd-cuenta .woocommerce-orders-table tbody tr:hover :is(th, td) { background: #fcfaff; }
#gtd-cuenta .woocommerce-orders-table tbody tr:last-child :is(th, td) { border-bottom: 0; }
#gtd-cuenta .woocommerce-orders-table .woocommerce-orders-table__cell-order-number { min-width: 110px; }
#gtd-cuenta .gtd-pedido-numero { color: var(--gtd); font-weight: 800; text-decoration-thickness: 1px; }
#gtd-cuenta .gtd-pedido-evento { display: block; margin-top: 4px; color: #221936; line-height: 1.3; }
#gtd-cuenta .gtd-pedido-total { color: #221936; }
#gtd-cuenta .gtd-pedido-cantidad { display: block; margin-top: 2px; color: #5e536d; font-size: 12px; }

#gtd-cuenta .gtd-pedido-estado {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eee9f5;
  color: #504261;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
}

#gtd-cuenta .gtd-pedido-estado.ok { color: #176145; background: #e5f6ed; }
#gtd-cuenta .gtd-pedido-estado.espera { color: #754611; background: #fff2d9; }
#gtd-cuenta .gtd-pedido-estado.error { color: #9c283c; background: #fdebf0; }

#gtd-cuenta :is(.woocommerce-orders-table, .woocommerce-pagination) a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin: 3px 6px 3px 0;
  padding: 7px 10px;
  border: 1px solid #e2d8f0;
  border-radius: 9px;
  background: #f8f3ff;
  color: #492480;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
  white-space: normal;
}

#gtd-cuenta .woocommerce-orders-table a.button:is(.pay, .guppi-entradas) { background: var(--gtd); color: #fff; border-color: transparent; }
#gtd-cuenta .woocommerce-orders-table a.button.cancel { background: #fff; color: #7b3950; }
#gtd-cuenta :is(.woocommerce-orders-table, .woocommerce-pagination) a.button:hover { filter: brightness(.93); }
#gtd-cuenta .woocommerce-pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#gtd-cuenta :is(a, button, input, select, textarea):focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

#gtd-cuenta .woocommerce :is(input.input-text, select, textarea) {
  box-sizing: border-box;
  max-width: 100%;
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid #d9cfe8;
  border-radius: 10px;
  background: #fff;
  color: #221936;
  font: inherit;
}

#gtd-cuenta .woocommerce button.button { border-radius: 10px; background: var(--gtd); color: #fff; min-height: 42px; }

@media (max-width: 860px) {
  #gtd-cuenta .gtd-cuenta-sesion > .woocommerce:has(> .woocommerce-MyAccount-navigation) { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  #gtd-cuenta .woocommerce-MyAccount-navigation ul { flex-direction: row; flex-wrap: wrap; }
  #gtd-cuenta .woocommerce-MyAccount-navigation a { padding-inline: 10px; }
}

@media (max-width: 620px) {
  .gtd-cuenta-cab { align-items: flex-start; margin-bottom: 14px; border-radius: 16px; }
  #gtd-cuenta .woocommerce-orders-table,
  #gtd-cuenta .woocommerce-orders-table tbody,
  #gtd-cuenta .woocommerce-orders-table tbody tr { display: block; }
  #gtd-cuenta .woocommerce-orders-table thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
  #gtd-cuenta .woocommerce-orders-table tbody tr { margin-bottom: 10px; padding: 8px 11px; border: 1px solid #ebe4f3; border-radius: 12px; background: #fcfaff; }
  #gtd-cuenta .woocommerce-orders-table tbody tr:last-child { margin-bottom: 0; }
  #gtd-cuenta .woocommerce-orders-table tbody :is(th, td) { display: block; padding: 6px 0; border: 0; background: transparent; text-align: start !important; }
  #gtd-cuenta .woocommerce-orders-table tbody [data-title]::before {
    content: attr(data-title);
    display: block;
    float: none;
    margin-bottom: 2px;
    color: #61536f;
    font-size: 12px;
    font-weight: 650;
  }
  #gtd-cuenta .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions::before { display: none; }
  #gtd-cuenta .woocommerce-orders-table a.button { min-height: 44px; }
}
