/* Páginas internas de Mi cuenta, con el mismo aspecto del panel.
   La carga la cabecera guardada en Diseño > Editor de temas (common/header). */

:is(#account-address, #account-affiliate, #account-download, #account-edit, #account-newsletter, #account-order,
    #account-password, #account-payment-method, #account-return, #account-reward, #account-subscription,
    #account-tracking, #account-transaction) {
  --hw-negro: #000000;
  --hw-texto: #1a1a1a;
  --hw-suave: #666666;
  --hw-linea: #e3e3e3;
  --hw-fondo: #f6f6f6;
  --hw-celeste: #00aeef;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--hw-texto);
}

/* Igual que el panel: sin menú lateral */
:is(#account-address, #account-affiliate, #account-download, #account-edit, #account-newsletter, #account-order,
    #account-password, #account-payment-method, #account-return, #account-reward, #account-subscription,
    #account-tracking, #account-transaction) #column-right {
  display: none !important;
}

:is(#account-address, #account-affiliate, #account-download, #account-edit, #account-newsletter, #account-order,
    #account-password, #account-payment-method, #account-return, #account-reward, #account-subscription,
    #account-tracking, #account-transaction) #content > h1 {
  margin: 0 0 32px;
  padding: 24px;
  background: var(--hw-negro);
  font-family: 'Anton', sans-serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #ffffff;
}

:is(#account-address, #account-affiliate, #account-download, #account-edit, #account-newsletter, #account-order,
    #account-password, #account-payment-method, #account-return, #account-reward, #account-subscription,
    #account-tracking, #account-transaction) :is(#content > h2, #content > h3, legend) {
  float: none;
  width: auto;
  margin: 24px 0 12px;
  padding: 0;
  border: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--hw-suave);
}

:is(#account-address, #account-affiliate, #account-download, #account-edit, #account-newsletter, #account-order,
    #account-password, #account-payment-method, #account-return, #account-reward, #account-subscription,
    #account-tracking, #account-transaction) .col-form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--hw-texto);
}

/* Campos */
:is(#account-address, #account-affiliate, #account-download, #account-edit, #account-newsletter, #account-order,
    #account-password, #account-payment-method, #account-return, #account-reward, #account-subscription,
    #account-tracking, #account-transaction) :is(.form-control, .form-select) {
  border: 1px solid #bdbdbd;
  border-radius: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--hw-texto);
}

:is(#account-address, #account-affiliate, #account-download, #account-edit, #account-newsletter, #account-order,
    #account-password, #account-payment-method, #account-return, #account-reward, #account-subscription,
    #account-tracking, #account-transaction) :is(.form-control, .form-select, a, button):focus-visible {
  border-color: var(--hw-negro);
  outline: 2px solid var(--hw-celeste);
  outline-offset: 1px;
  box-shadow: none;
}

/* Tablas */
:is(#account-address, #account-affiliate, #account-download, #account-edit, #account-newsletter, #account-order,
    #account-password, #account-payment-method, #account-return, #account-reward, #account-subscription,
    #account-tracking, #account-transaction) .table {
  --bs-table-border-color: var(--hw-linea);
  --bs-table-hover-bg: var(--hw-fondo);
  font-size: 14px;
  vertical-align: middle;
}

:is(#account-address, #account-affiliate, #account-download, #account-edit, #account-newsletter, #account-order,
    #account-password, #account-payment-method, #account-return, #account-reward, #account-subscription,
    #account-tracking, #account-transaction) .table :is(th, thead td) {
  padding: 12px;
  background: var(--hw-fondo);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--hw-suave);
}

:is(#account-address, #account-affiliate, #account-download, #account-edit, #account-newsletter, #account-order,
    #account-password, #account-payment-method, #account-return, #account-reward, #account-subscription,
    #account-tracking, #account-transaction) .table tbody td {
  padding: 12px;
}

/* Botones */
:is(#account-address, #account-affiliate, #account-download, #account-edit, #account-newsletter, #account-order,
    #account-password, #account-payment-method, #account-return, #account-reward, #account-subscription,
    #account-tracking, #account-transaction) .btn {
  min-height: 42px;
  padding: 9px 18px;
  border-radius: 0;
  font-size: 13px;
  font-weight: 700;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

:is(#account-address, #account-affiliate, #account-download, #account-edit, #account-newsletter, #account-order,
    #account-password, #account-payment-method, #account-return, #account-reward, #account-subscription,
    #account-tracking, #account-transaction) .btn-primary {
  background: var(--hw-negro);
  border: 1px solid var(--hw-negro);
  color: #ffffff;
}

:is(#account-address, #account-affiliate, #account-download, #account-edit, #account-newsletter, #account-order,
    #account-password, #account-payment-method, #account-return, #account-reward, #account-subscription,
    #account-tracking, #account-transaction) :is(.btn-light, .btn-info, .btn-danger) {
  background: #ffffff;
  border: 1px solid var(--hw-linea);
  color: var(--hw-texto);
}

/* Paginación */
:is(#account-address, #account-affiliate, #account-download, #account-edit, #account-newsletter, #account-order,
    #account-password, #account-payment-method, #account-return, #account-reward, #account-subscription,
    #account-tracking, #account-transaction) .pagination .page-link {
  border-radius: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--hw-texto);
}

:is(#account-address, #account-affiliate, #account-download, #account-edit, #account-newsletter, #account-order,
    #account-password, #account-payment-method, #account-return, #account-reward, #account-subscription,
    #account-tracking, #account-transaction) .pagination .active .page-link {
  background: #f5a0b8;
  border-color: #f5a0b8;
  color: #111111;
}

@media (hover: hover) {
  :is(#account-address, #account-affiliate, #account-download, #account-edit, #account-newsletter, #account-order,
      #account-password, #account-payment-method, #account-return, #account-reward, #account-subscription,
      #account-tracking, #account-transaction) .btn-primary:hover {
    background: #f5a0b8;
    border-color: #f5a0b8;
    color: #111111;
  }

  :is(#account-address, #account-affiliate, #account-download, #account-edit, #account-newsletter, #account-order,
      #account-password, #account-payment-method, #account-return, #account-reward, #account-subscription,
      #account-tracking, #account-transaction) :is(.btn-light, .btn-info):hover {
    background: #ffffff;
    border-color: var(--hw-negro);
    color: var(--hw-negro);
  }

  :is(#account-address, #account-affiliate, #account-download, #account-edit, #account-newsletter, #account-order,
      #account-password, #account-payment-method, #account-return, #account-reward, #account-subscription,
      #account-tracking, #account-transaction) .btn-danger:hover {
    background: #ffffff;
    border-color: #d82332;
    color: #d82332;
  }
}

@media (max-width: 575.98px) {
  :is(#account-address, #account-affiliate, #account-download, #account-edit, #account-newsletter, #account-order,
      #account-password, #account-payment-method, #account-return, #account-reward, #account-subscription,
      #account-tracking, #account-transaction) #content > h1 {
    margin-bottom: 24px;
    padding: 18px 16px;
    font-size: 28px;
  }
}
