.pp-shell {
  --pp-primary: #2ea3f2;
  --pp-secondary: #2ea3f2;
  --pp-bg: #ffffff;
  --pp-card: #ffffff;
  --pp-card-soft: #fafafa;
  --pp-border: #e2e2e2;
  --pp-text: #333333;
  --pp-muted: #666666;
  --pp-success: #0f9d58;
  --pp-error: #cc2936;
  --pp-warning: #d97706;
  --pp-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  color: var(--pp-text);
  font-family: inherit;
  background: #fff;
  border: 1px solid var(--pp-border);
  border-radius: 8px;
  margin: 0 auto;
  padding: clamp(14px, 2.5vw, 22px);
  box-shadow: var(--pp-shadow);
  overflow: hidden;
  font-size: 0.88rem;
}

.pp-content {
  display: grid;
  gap: 14px;
}

/* ── Header layout ── */
.pp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--pp-border);
  flex-wrap: nowrap;
}

.pp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.pp-logo {
  width: 36px;
  height: 36px;
  border-radius: 3px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--pp-border);
  padding: 3px;
}

.pp-brand-meta h2 {
  margin: 0;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--pp-text);
}

.pp-brand-meta p {
  margin: 2px 0 0;
  color: var(--pp-muted);
  font-size: 0.78rem;
}

/* ── Nav ── */
.pp-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.pp-nav::-webkit-scrollbar {
  display: none;
}

.pp-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 10px;
  text-decoration: none;
  color: var(--pp-muted);
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  font-size: 0.8rem;
  font-weight: 600;
  background: transparent;
  white-space: nowrap;
}

.pp-link .dashicons {
  font-size: 14px;
  width: 14px;
  height: 14px;
  line-height: 1;
  vertical-align: middle;
}

/* Hide labels at medium widths, show only icons */
.pp-link .pp-link-label { display: inline; }

.pp-link:hover {
  color: var(--pp-primary);
  border-color: var(--pp-border);
  background: #f7f7f7;
}

.pp-shell .pp-nav a.pp-link.is-active,
.pp-link.is-active {
  color: #fff !important;
  background: var(--pp-primary) !important;
  border-color: var(--pp-primary) !important;
  box-shadow: 0 2px 6px rgba(46, 163, 242, 0.25);
}

/* ── Avatar dropdown ── */
.pp-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.pp-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pp-primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s;
  letter-spacing: 0.5px;
}
.pp-avatar:hover { box-shadow: 0 0 0 3px rgba(46,163,242,0.25); }

.pp-avatar-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 240px;
  background: #fff;
  border: 1px solid var(--pp-border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 100;
  padding: 12px;
}
.pp-avatar-dropdown.is-open { display: block; }

.pp-avatar-info {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--pp-border);
}
.pp-avatar-info strong {
  display: block;
  font-size: 0.88rem;
  color: var(--pp-text);
}
.pp-avatar-info span {
  display: block;
  font-size: 0.76rem;
  color: var(--pp-muted);
  word-break: break-all;
}

.pp-avatar-logout {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 8px 10px;
  background: transparent;
  border: 1px solid var(--pp-border);
  border-radius: 6px;
  color: var(--pp-muted);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.15s;
}
.pp-avatar-logout:hover { color: var(--pp-error); border-color: var(--pp-error); }
.pp-avatar-logout .dashicons { font-size: 14px; width: 14px; height: 14px; }

/* ── Medium widths: icons only (contiguous with the "Más" dropdown below 681px) ── */
@media (min-width: 681px) and (max-width: 1100px) {
  .pp-link .pp-link-label { display: none; }
  .pp-link { padding: 7px 9px; min-width: unset; }
  .pp-link .dashicons { font-size: 16px; width: 16px; height: 16px; }
  .pp-brand-meta p { display: none; }
}

.pp-user-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--pp-text);
}

.pp-user-mail {
  font-size: 0.72rem;
  color: var(--pp-muted);
}

.pp-alert {
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  padding: 10px 14px;
  border: 1px solid;
  margin-bottom: 6px;
  font-size: 0.84rem;
  animation: pp-alert-in 0.3s ease-out;
}

@keyframes pp-alert-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pp-alert-success {
  border-color: rgba(15, 157, 88, 0.3);
  background: rgba(15, 157, 88, 0.06);
}

.pp-alert-error {
  border-color: rgba(204, 41, 54, 0.3);
  background: rgba(204, 41, 54, 0.06);
}

.pp-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.pp-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pp-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pp-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pp-card,
.pp-metric,
.pp-banner {
  background: #fff;
  border: 1px solid var(--pp-border);
  border-radius: 6px;
}

.pp-card {
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  margin-bottom: 12px;
}

.pp-card:last-child {
  margin-bottom: 0;
}

.pp-card h3 {
  margin: 0 0 4px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  color: var(--pp-text);
}

.pp-card h4 {
  margin: 0 0 4px;
  font-family: inherit;
  font-weight: 700;
  color: var(--pp-text);
}

.pp-card p {
  margin: 0 0 10px;
  color: var(--pp-muted);
  line-height: 1.6;
  font-size: 0.84rem;
}

.pp-card small {
  color: var(--pp-muted);
}

.pp-card-center {
  text-align: center;
  padding: 22px;
}

.pp-banner {
  padding: clamp(14px, 2.5vw, 18px);
  position: relative;
  overflow: hidden;
  border-left: 4px solid var(--pp-primary);
  background: linear-gradient(135deg, #fff 60%, rgba(46, 163, 242, 0.03));
  box-shadow: 0 2px 8px rgba(46, 163, 242, 0.06);
}

section.pp-banner {
  margin-bottom: 10px;
}

.pp-banner::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  right: -60px;
  top: -80px;
  background: radial-gradient(circle, rgba(46, 163, 242, 0.06), transparent 72%);
  pointer-events: none;
}

.pp-banner h3 {
  margin: 0;
  position: relative;
  font-family: inherit;
  font-size: 1rem;
}

.pp-banner p {
  margin: 6px 0 12px;
  max-width: 580px;
  color: var(--pp-muted);
  position: relative;
  line-height: 1.6;
  font-size: 0.84rem;
}

.pp-banner-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
}

.pp-metric {
  padding: 12px 14px;
  display: grid;
  gap: 4px;
  border-left: 3px solid var(--pp-primary);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.pp-metric:hover {
  box-shadow: 0 2px 12px rgba(46, 163, 242, 0.1);
  transform: translateY(-1px);
}

.pp-metric-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(46, 163, 242, 0.08);
  color: var(--pp-primary);
  margin-bottom: 2px;
}

.pp-metric-icon .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

.pp-metric--warning {
  border-left-color: var(--pp-warning);
}

.pp-metric--warning .pp-metric-icon {
  background: rgba(217, 119, 6, 0.08);
  color: var(--pp-warning);
}

.pp-metric--danger {
  border-left-color: var(--pp-error);
}

.pp-metric--danger .pp-metric-icon {
  background: rgba(204, 41, 54, 0.08);
  color: var(--pp-error);
}

.pp-metric span {
  color: var(--pp-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pp-metric strong {
  font-size: 1.1rem;
  line-height: 1;
  color: var(--pp-text);
}

.pp-form {
  display: grid;
  gap: 8px;
}

.pp-form label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pp-muted);
}

.pp-form input {
  width: 100%;
  border: 1px solid var(--pp-border);
  border-radius: 5px;
  min-height: 40px;
  padding: 0 12px;
  font-size: 0.88rem;
  color: var(--pp-text);
  background: var(--pp-card-soft);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pp-form input:focus {
  border-color: var(--pp-primary);
  box-shadow: 0 0 0 3px rgba(46, 163, 242, 0.12);
  background: #fff;
  outline: 0;
}

.pp-form .pp-turnstile {
  margin: 2px 0;
  min-height: 65px;
}

.pp-form input::placeholder {
  color: #aaa;
}

.pp-btn {
  appearance: none;
  border: 1px solid var(--pp-primary);
  border-radius: 5px;
  min-height: 30px;
  padding: 5px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  background: var(--pp-primary);
  transition: all 0.2s ease;
  box-shadow: none;
  line-height: 1.3;
}

.pp-btn .dashicons {
  font-size: 15px;
  width: 15px;
  height: 15px;
  line-height: 1;
  vertical-align: middle;
}

.pp-btn:hover {
  background: #1a8fd8;
  border-color: #1a8fd8;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(46, 163, 242, 0.25);
}

.pp-btn:active {
  transform: translateY(0);
}

.pp-btn:focus-visible {
  outline: 2px solid var(--pp-primary);
  outline-offset: 2px;
}

.pp-btn:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.pp-btn.is-loading {
  pointer-events: none;
  opacity: 0.7;
  cursor: wait;
}

.pp-btn.is-loading .dashicons {
  animation: pp-spin 0.7s linear infinite;
}

.pp-btn-secondary {
  background: transparent;
  color: var(--pp-primary);
  border: 1px solid var(--pp-primary);
  box-shadow: none;
}

.pp-btn-secondary:hover {
  background: var(--pp-primary);
  color: #fff;
  box-shadow: 0 2px 6px rgba(46, 163, 242, 0.25);
}

.pp-btn-outline {
  background: transparent;
  color: var(--pp-text);
  border: 1px solid var(--pp-border);
  box-shadow: none;
}

.pp-btn-outline:hover {
  border-color: var(--pp-primary);
  color: var(--pp-primary);
}

/* Payment buttons spacing — stack vertically to prevent overflow */
td[data-label="Acciones"] {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: stretch;
}
td[data-label="Acciones"] .pp-btn {
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 0.78rem;
}

/* Payment buttons overrides — single line: icon + label + subtitle together.
   The fade mask lives on an inner wrapper (.pp-btn-line), not the button
   itself, so it only clips/fades the content — never the button's own
   border/background — and only shows when the content doesn't fit. */
.pp-btn-multiline {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  min-width: 0;
}
.pp-btn-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
/* Fade only when the content actually overflows the button. JS toggles this
   class by comparing scrollWidth vs clientWidth; without overflow there is
   trailing empty space so the mask has nothing to hide. */
.pp-btn-line.is-truncated {
  justify-content: flex-start;
  -webkit-mask-image: linear-gradient(to right, #000 90%, transparent 100%);
          mask-image: linear-gradient(to right, #000 90%, transparent 100%);
}
.pp-btn-multiline .pp-btn-main {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}
.pp-pay-btn-sub {
  display: inline-block;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.85;
}

/* Desktop: all payment buttons (MP, Ualá, Rebill, banco) share the same
   fixed size, single-line text — no need to shrink to fit the table cell. */
@media (min-width: 600px) {
  td[data-label="Acciones"] .pp-btn {
    width: 305px;
    height: 46px;
    box-sizing: border-box;
    white-space: nowrap;
  }
}

/* Página de pago (card única): los botones ocupan todo el ancho disponible */
.pp-pay-methods .pp-btn {
  width: 100%;
  height: 46px;
  box-sizing: border-box;
  white-space: nowrap;
}

.pp-btn-uala {
  background: #ffffff !important;
  color: #022A9B !important;
  border: 1px solid #ddd !important;
  border-radius: 5px !important;
}
.pp-btn-uala:hover {
  background: #f5f5f5 !important;
  border-color: #d0d0d0 !important;
}

.pp-btn-bank {
  background: #333333 !important;
  color: #F2F2F2 !important;
  border: 1px solid #333333 !important;
  border-radius: 5px !important;
}
.pp-btn-bank:hover {
  background: #111111 !important;
  border-color: #111111 !important;
}

.pp-btn-mp {
  background: #07BCFF !important;
  color: #ffffff !important;
  border: 1px solid #07BCFF !important;
  border-radius: 5px !important;
}
.pp-btn-mp:hover {
  background: #00a0dd !important;
  border-color: #00a0dd !important;
}

.pp-btn-rebill {
  background: #1a67f7 !important;
  color: #ffffff !important;
  border: 1px solid #1a67f7 !important;
  border-radius: 5px !important;
}
.pp-btn-rebill:hover {
  background: #0d51d1 !important;
  border-color: #0d51d1 !important;
}

.pp-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--pp-border);
  border-radius: 6px;
  background: #fff;
}

.pp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.pp-table th,
.pp-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  white-space: nowrap;
}

.pp-table th {
  background: #f7f7f7;
  color: #555;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.pp-table tr:last-child td {
  border-bottom: 0;
}

.pp-table tbody tr {
  transition: background 0.15s ease;
}

.pp-table tbody tr:hover td {
  background: rgba(46, 163, 242, 0.03);
}

.pp-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 3px 10px 3px 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pp-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.pp-filter-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.pp-filter-btn {
  padding: 5px 14px;
  border: 1px solid var(--pp-border);
  border-radius: 16px;
  background: #fff;
  color: var(--pp-muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.pp-filter-btn:hover {
  border-color: var(--pp-primary);
  color: var(--pp-primary);
}
.pp-filter-btn.is-active {
  background: var(--pp-primary);
  color: #fff;
  border-color: var(--pp-primary);
}

.pp-status-active,
.pp-status-paid,
.pp-status-completed {
  color: #0f7a45;
  background: rgba(15, 157, 88, 0.12);
}

.pp-status-unpaid,
.pp-status-overdue {
  color: #b45309;
  background: rgba(217, 119, 6, 0.12);
}

.pp-status-cancelled,
.pp-status-terminated,
.pp-status-fraud {
  color: #b91c1c;
  background: rgba(185, 28, 28, 0.12);
}

.pp-status-suspended {
  color: #b45309;
  background: rgba(217, 119, 6, 0.12);
}

.pp-status-pending {
  color: #1d4ed8;
  background: rgba(29, 78, 216, 0.12);
}

.pp-status-refunded {
  color: #6b21a8;
  background: rgba(107, 33, 168, 0.12);
}

.pp-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.72rem;
  color: var(--pp-muted);
  background: rgba(102, 102, 102, 0.1);
}

.pp-badge-ok {
  background: rgba(15, 157, 88, 0.12);
  color: #0f7a45;
}

.pp-doc-list,
.pp-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pp-list li {
  border-bottom: 1px solid #eee;
  padding: 6px 0;
}

.pp-list li:last-child {
  border-bottom: 0;
}

.pp-list a {
  color: var(--pp-primary);
  text-decoration: none;
  font-weight: 600;
}

.pp-list a:hover {
  text-decoration: underline;
}

.pp-doc-list {
  display: grid;
  gap: 6px;
}

.pp-doc-list li {
  border: 1px solid var(--pp-border);
  border-radius: 3px;
  padding: 8px;
  background: #fff;
  display: grid;
  gap: 3px;
}

.pp-doc-list a,
.pp-doc-list span {
  color: var(--pp-text);
  text-decoration: none;
  font-weight: 700;
}

.pp-doc-list small {
  color: var(--pp-muted);
  font-size: 0.72rem;
}

.pp-download-list {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--pp-border);
}

.pp-download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--pp-border);
  border-radius: 6px;
  background: #fff;
  text-decoration: none;
  color: var(--pp-text);
  transition: all 0.2s ease;
  cursor: pointer;
}

.pp-download-item:hover {
  border-color: var(--pp-primary);
  background: #f7fbff;
  box-shadow: 0 1px 6px rgba(46, 163, 242, 0.1);
}

.pp-download-item.pp-download-unavailable {
  opacity: 0.7;
  cursor: default;
  background: #fafafa;
}

.pp-download-item.pp-download-unavailable:hover {
  border-color: var(--pp-border);
  background: #fafafa;
  box-shadow: none;
}

.pp-download-info {
  display: grid;
  gap: 2px;
  flex: 1;
}

.pp-download-title {
  font-weight: 700;
  font-size: 0.86rem;
}

.pp-download-desc {
  font-size: 0.76rem;
  color: var(--pp-muted);
  font-weight: 400;
}

.pp-download-status {
  font-size: 0.76rem;
  color: var(--pp-muted);
  font-weight: 400;
  font-style: italic;
}

.pp-download-icon {
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  color: var(--pp-primary);
}

.pp-download-icon .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

.pp-download-item:hover .pp-download-icon {
  opacity: 1;
}

.pp-support {
  display: grid;
  gap: 8px;
}

.pp-support h4 {
  margin: 0;
  font-family: inherit;
}

.pp-support-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.pp-support-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--pp-border);
  border-radius: 6px;
  text-decoration: none;
  color: var(--pp-text);
  background: var(--pp-card-soft);
  transition: all 0.2s ease;
}

.pp-support-card .dashicons {
  font-size: 20px;
  width: 20px;
  height: 20px;
  color: var(--pp-primary);
  flex-shrink: 0;
}

.pp-wa-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.pp-support-card-text {
  display: grid;
  gap: 0;
  line-height: 1.3;
}

.pp-support-card-text strong {
  font-size: 0.84rem;
  font-weight: 700;
}

.pp-support-card-text small {
  font-size: 0.72rem;
  color: var(--pp-muted);
}

.pp-support-card:hover {
  border-color: var(--pp-primary);
  background: #f7fbff;
  box-shadow: 0 1px 6px rgba(46, 163, 242, 0.1);
  transform: translateY(-1px);
}

.pp-support-card--wa:hover {
  border-color: #25d366;
  background: rgba(37, 211, 102, 0.04);
  box-shadow: 0 1px 6px rgba(37, 211, 102, 0.12);
}

/* Mail providers grid (post magic link) */
.pp-mail-providers {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--pp-border);
}

.pp-mail-providers-title {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pp-muted);
  text-align: center;
}

.pp-mail-providers-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.pp-mail-provider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  border: 1px solid var(--pp-border);
  border-radius: 6px;
  background: #fff;
  text-decoration: none;
  color: var(--pp-text);
  transition: all 0.2s ease;
}

.pp-mail-provider:hover {
  border-color: var(--pp-primary);
  background: #f7fbff;
  box-shadow: 0 1px 6px rgba(46, 163, 242, 0.1);
  transform: translateY(-1px);
}

.pp-mail-provider-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--pp-primary);
}

.pp-mail-provider-icon svg {
  width: 24px;
  height: 24px;
}

.pp-mail-provider-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--pp-muted);
}

.pp-skeleton {
  position: relative;
  overflow: hidden;
  background: #f0f0f0;
}

.pp-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: pp-shimmer 1.5s infinite;
}

@keyframes pp-shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* Skeleton overlay for login → dashboard transition */
.pp-skeleton-overlay {
  padding: 16px 0;
}

.pp-skeleton-overlay .pp-skeleton {
  border-radius: 6px;
}

.pp-screen-skeleton {
  padding: 8px 0;
}

/* Login form skeleton overlay */
.pp-login-skeleton {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: var(--pp-card, #fff);
  border-radius: inherit;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  animation: pp-fade-in 0.2s ease-out;
}

.pp-login-skeleton .pp-skel-line {
  height: 14px;
  border-radius: 4px;
}

.pp-login-skeleton .pp-skel-input {
  height: 40px;
  border-radius: 5px;
}

.pp-login-skeleton .pp-skel-btn {
  height: 38px;
  border-radius: 5px;
  margin-top: 4px;
}

.pp-login-skeleton .pp-skel-line--short {
  width: 60%;
}

.pp-login-skeleton .pp-skel-line--medium {
  width: 80%;
}

/* Login form error shake */
@keyframes pp-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.pp-login-grid.is-shaking {
  animation: pp-shake 0.4s ease-out;
}

/* Dashboard content reveal from skeleton */
.pp-content.is-revealing .pp-screen {
  animation: pp-content-reveal 0.4s ease-out 0.1s both;
}

@keyframes pp-content-reveal {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Empty states */
.pp-empty {
  text-align: center;
  padding: 28px 16px;
  color: var(--pp-muted);
}

.pp-empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--pp-card-soft);
  border: 1px solid var(--pp-border);
  margin: 0 auto 10px;
  color: var(--pp-muted);
}

.pp-empty-icon .dashicons {
  font-size: 24px;
  width: 24px;
  height: 24px;
}

.pp-empty p {
  margin: 0;
  font-size: 0.84rem;
}

/* Card footer */
.pp-card-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--pp-border);
}

/* Login layout */
.pp-login-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  align-items: start;
}

.pp-login-primary {
  background: var(--pp-card-soft);
  border: 1px solid var(--pp-primary);
  position: relative;
}

.pp-login-primary h3 {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pp-login-primary h3 .dashicons {
  color: var(--pp-primary);
  font-size: 18px;
  width: 18px;
  height: 18px;
}

.pp-login-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--pp-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 3px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pp-login-badge .dashicons {
  font-size: 12px;
  width: 12px;
  height: 12px;
}

.pp-login-hint {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 6px 0 0 !important;
  font-size: 0.76rem !important;
  color: var(--pp-muted) !important;
}

.pp-login-hint .dashicons {
  font-size: 14px;
  width: 14px;
  height: 14px;
  color: var(--pp-success);
  flex-shrink: 0;
}

.pp-login-secondary {
  position: relative;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.pp-login-secondary:hover,
.pp-login-secondary:focus-within {
  opacity: 1;
}

/* ── "Más" dropdown: overflow nav items on narrow screens ── */
.pp-nav-more-wrap {
  position: relative;
  display: none;
  flex-shrink: 0;
}
.pp-nav-more-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--pp-border);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--pp-muted);
  transition: background 0.2s;
}
.pp-nav-more-toggle:hover { background: #f3f3f3; }
.pp-nav-more-toggle .dashicons { font-size: 18px; width: 18px; height: 18px; }

.pp-nav-more-panel {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--pp-border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 100;
  padding: 6px;
  flex-direction: column;
  gap: 2px;
}
.pp-nav-more-panel.is-open { display: flex; }
.pp-nav-more-panel .pp-link {
  justify-content: flex-start;
  width: 100%;
}
.pp-nav-more-panel .pp-link .pp-link-label { display: inline; }

/* Tickets "ver más" link */
.pp-tickets-more {
  padding: 10px 0 2px;
  text-align: right;
}
.pp-link-more {
  font-size: 0.82rem;
  color: var(--pp-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.pp-link-more:hover { text-decoration: underline; }
.pp-link-more .dashicons { font-size: 13px; width: 13px; height: 13px; }

/* Affiliates single stat */
.pp-affiliates-single {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 8px 0 12px;
}
.pp-affiliates-single span { color: var(--pp-muted); font-size: 0.85rem; }
.pp-affiliates-single strong { font-size: 1.35rem; color: var(--pp-text); }

/* ── Narrow screens: collapse secondary nav items into "Más" dropdown ── */
@media (max-width: 680px) {
  .pp-link-secondary { display: none; }
  .pp-nav-more-wrap { display: block; }
  .pp-brand-meta p { display: none; }
}

@media (max-width: 920px) {
  .pp-grid-2,
  .pp-grid-3,
  .pp-grid-4,
  .pp-login-grid {
    grid-template-columns: 1fr;
  }

  .pp-shell {
    border-radius: 8px;
    padding: 12px;
  }

  .pp-card,
  .pp-banner,
  .pp-metric {
    padding: 12px;
  }

  .pp-table th,
  .pp-table td {
    padding: 7px 8px;
  }
}

@media (max-width: 560px) {
  .pp-shell {
    border-radius: 0;
  }

  .pp-banner-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .pp-btn,
  .pp-btn-secondary,
  .pp-btn-outline {
    width: 100%;
  }

  .pp-link {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
  }

  .pp-mail-providers-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* ── Responsive table → stacked cards ── */
  .pp-table-wrap {
    border: 0;
    background: transparent;
  }

  .pp-table thead {
    display: none;
  }

  .pp-table,
  .pp-table tbody {
    display: block;
    width: 100%;
  }

  .pp-table tr {
    display: block;
    border: 1px solid var(--pp-border);
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: #fff;
  }

  .pp-table tr:last-child {
    margin-bottom: 0;
  }

  .pp-table td {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 3px 0;
    border-bottom: 0;
    white-space: normal;
    font-size: 0.84rem;
  }

  .pp-table td::before {
    content: attr(data-label);
    flex-shrink: 0;
    width: 80px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--pp-muted);
    text-transform: uppercase;
    letter-spacing: 0.02em;
  }

  .pp-table td:first-child {
    padding-top: 0;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--pp-text);
  }

  .pp-table td:last-child {
    padding-bottom: 0;
  }

  /* Invoice card-form row keeps full width */
  .pp-table tr.pp-card-form-row {
    padding: 0;
  }

  .pp-table tr.pp-card-form-row td {
    display: block;
    padding: 12px;
  }

  .pp-table tr.pp-card-form-row td::before {
    display: none;
  }
}

/* Compatibility guards for Divi and aggressive theme styles */
.pp-shell * {
  box-sizing: border-box;
}

.pp-shell table,
.pp-shell th,
.pp-shell td {
  border: 0;
}

.pp-shell input,
.pp-shell button,
.pp-shell textarea,
.pp-shell select {
  font-family: inherit;
}

.pp-shell h1,
.pp-shell h2,
.pp-shell h3,
.pp-shell h4,
.pp-shell p,
.pp-shell ul,
.pp-shell li {
  margin-top: 0;
}

.pp-shell .et_pb_button,
.pp-shell .wp-block-button__link {
  background: none;
}

/* ── SPA transitions ── */

.pp-screen {
  animation: pp-fade-in 0.2s ease-out;
}

@keyframes pp-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pp-screen .pp-banner { animation: pp-slide-up 0.25s ease-out 0.02s both; }
.pp-screen .pp-grid   { animation: pp-slide-up 0.25s ease-out 0.08s both; }
.pp-screen .pp-card   { animation: pp-slide-up 0.25s ease-out 0.12s both; }

@keyframes pp-slide-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Refresh button */
.pp-refresh-btn {
  font-size: 1.05rem;
  min-width: auto !important;
  padding: 0 !important;
  cursor: pointer;
  line-height: 1;
  border-radius: 50% !important;
  width: 32px;
  height: 32px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.pp-refresh-btn:hover {
  background: rgba(46, 163, 242, 0.08) !important;
  color: var(--pp-primary) !important;
  border-color: transparent !important;
}

.pp-refresh-btn.is-loading {
  animation: pp-spin 0.7s linear infinite;
  opacity: 0.5;
  pointer-events: none;
}

@keyframes pp-spin {
  100% { transform: rotate(360deg); }
}

/* ─── Impersonation banner ─── */
.pp-impersonate-bar {
  background: #1C2434;
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 8px 8px 0 0;
  margin: -clamp(14px, 2.5vw, 22px);
  margin-bottom: clamp(10px, 2vw, 18px);
  padding-left: clamp(14px, 2.5vw, 22px);
  padding-right: clamp(14px, 2.5vw, 22px);
}

.pp-impersonate-bar a {
  color: #60A5FA;
  margin-left: 12px;
  text-decoration: none;
}

.pp-impersonate-bar a:hover {
  text-decoration: underline;
}

/* ─── Card Payment Form ─── */

.pp-card-form-row td {
  padding: 0 !important;
  border-bottom: 1px solid var(--pp-border) !important;
}

.pp-card-form-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  padding: 20px;
  background: var(--pp-card-soft);
  animation: pp-slide-up 0.3s ease-out;
}

/* ── 3D Card Preview ── */

.pp-card-preview {
  perspective: 1000px;
  width: 280px;
  height: 175px;
  align-self: start;
  position: sticky;
  top: 20px;
}

.pp-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.pp-card-inner.is-flipped {
  transform: rotateY(180deg);
}

.pp-card-front,
.pp-card-back {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pp-card-front {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pp-card-back {
  background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
  transform: rotateY(180deg);
}

.pp-card-brand-logo {
  width: 50px;
  height: 30px;
  align-self: flex-end;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: background-image 0.3s ease;
}

.pp-card-brand-logo[data-brand="visa"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 32'%3E%3Ctext x='4' y='24' font-family='Arial' font-weight='bold' font-size='18' fill='%23fff'%3EVISA%3C/text%3E%3C/svg%3E");
}
.pp-card-brand-logo[data-brand="mastercard"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 32'%3E%3Ccircle cx='18' cy='16' r='12' fill='%23EB001B' opacity='0.8'/%3E%3Ccircle cx='30' cy='16' r='12' fill='%23F79E1B' opacity='0.8'/%3E%3C/svg%3E");
}
.pp-card-brand-logo[data-brand="amex"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 32'%3E%3Ctext x='2' y='22' font-family='Arial' font-weight='bold' font-size='14' fill='%2326A6D1'%3EAMEX%3C/text%3E%3C/svg%3E");
}

.pp-card-chip {
  width: 36px;
  height: 26px;
  border-radius: 5px;
  background: linear-gradient(135deg, #e8d5a3 0%, #c9a84c 50%, #e8d5a3 100%);
  margin-top: 4px;
}

.pp-card-number-display {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  margin-top: auto;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.pp-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 8px;
}

.pp-card-holder-display {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.85;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pp-card-expiry-display {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  opacity: 0.85;
}

/* Card back */
.pp-card-stripe {
  width: 100%;
  height: 40px;
  background: #1a1a1a;
  margin-top: 24px;
}

.pp-card-cvv-band {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 16px 20px 0;
  height: 32px;
  background: #f0f0f0;
  border-radius: 4px;
  padding-right: 12px;
}

.pp-card-cvv-display {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  color: #333;
  letter-spacing: 0.15em;
}

/* Focus highlight on card fields */
.pp-card-front[data-focus="number"] .pp-card-number-display,
.pp-card-front[data-focus="holder"] .pp-card-holder-display,
.pp-card-front[data-focus="expiry"] .pp-card-expiry-display {
  color: var(--pp-primary);
  text-shadow: 0 0 8px rgba(46, 163, 242, 0.4);
  transition: color 0.2s, text-shadow 0.2s;
}

/* ── Card Form Fields ── */

.pp-card-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pp-card-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--pp-muted);
  margin-bottom: 3px;
}

.pp-card-field input,
.pp-card-field select {
  width: 100%;
  border: 1px solid var(--pp-border);
  border-radius: 5px;
  min-height: 38px;
  padding: 0 10px;
  font-size: 0.86rem;
  color: var(--pp-text);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pp-card-field input:focus,
.pp-card-field select:focus {
  border-color: var(--pp-primary);
  box-shadow: 0 0 0 3px rgba(46, 163, 242, 0.12);
  outline: 0;
}

.pp-card-field-full {
  width: 100%;
}

.pp-card-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pp-card-expiry-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.pp-card-submit-btn {
  margin-top: 6px;
  width: 100%;
}

.pp-card-error {
  color: var(--pp-error);
  font-size: 0.82rem;
  margin: 4px 0 0;
  padding: 8px 10px;
  background: rgba(204, 41, 54, 0.06);
  border: 1px solid rgba(204, 41, 54, 0.2);
  border-radius: 5px;
}

/* MercadoPago icon in pay button */
.pp-icon-mp {
  vertical-align: middle;
  margin-right: 3px;
  flex-shrink: 0;
  display: inline-block;
}
/* Card pay button in actions column */
.pp-icon-card {
  vertical-align: middle;
  margin-right: 1px;
  flex-shrink: 0;
}

.pp-card-pay-btn {
  margin-left: 4px;
}

@media (max-width: 920px) {
  .pp-card-form-wrap {
    grid-template-columns: 1fr;
  }
  .pp-card-preview {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    position: static;
  }
}

@media (max-width: 560px) {
  .pp-card-field-row {
    grid-template-columns: 1fr;
  }
  .pp-card-pay-btn {
    margin-left: 0;
    margin-top: 4px;
  }
}

/* ─── PayPal container ─── */
.pp-paypal-container {
  display: inline-block;
  min-width: 150px;
  max-width: 250px;
  vertical-align: middle;
}

.pp-pay-btn + .pp-paypal-container {
  margin-top: 6px;
  display: block;
}

/* ─── Mantenimiento ─── */
.pp-maintenance {
  text-align: center;
  padding: 60px 20px;
}
.pp-maintenance-icon .dashicons {
  font-size: 48px;
  width: 48px;
  height: 48px;
  color: var(--pp-muted);
  margin-bottom: 16px;
}
.pp-maintenance h3 {
  font-size: 1.25rem;
  margin: 0 0 10px;
  color: var(--pp-text);
}
.pp-maintenance p {
  color: var(--pp-muted);
  font-size: 0.9rem;
}

/* ─── Alert warning ─── */
.pp-alert-warning {
  background: rgba(217, 119, 6, 0.08);
  border-left: 3px solid var(--pp-warning);
  color: #92400e;
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

/* ─── Anuncios ─── */
.pp-announcement {
  padding: 10px 0;
  border-bottom: 1px solid var(--pp-border);
}
.pp-announcement:last-child {
  border-bottom: 0;
}
.pp-announcement-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.pp-announcement-date {
  font-size: 0.72rem;
  color: var(--pp-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.pp-announcement p {
  margin: 4px 0 0;
  font-size: 0.83rem;
  color: var(--pp-muted);
}

/* ─── Datos de contacto ─── */
.pp-contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--pp-border);
}
.pp-contact-row:last-child {
  border-bottom: 0;
}
.pp-contact-row span:first-child {
  color: var(--pp-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ─── Referidos / afiliados ─── */
.pp-affiliates-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 10px 0 14px;
}
.pp-affiliates-grid > div {
  text-align: center;
  padding: 10px;
  background: var(--pp-card-soft);
  border: 1px solid var(--pp-border);
  border-radius: 6px;
}
.pp-affiliates-grid span {
  display: block;
  font-size: 0.74rem;
  color: var(--pp-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.pp-affiliates-grid strong {
  font-size: 1.15rem;
  color: var(--pp-text);
}
.pp-affiliate-link {
  background: var(--pp-card-soft);
  border: 1px solid var(--pp-border);
  border-radius: 4px;
  padding: 8px 10px;
  margin: 8px 0 12px;
  font-size: 0.82rem;
  word-break: break-all;
}
.pp-affiliate-link label {
  font-weight: 600;
  margin-right: 6px;
  color: var(--pp-muted);
}
.pp-affiliate-link code {
  background: transparent;
  font-family: monospace;
}

/* ─── Tickets ─── */
.pp-ticket-new-wrap {
  margin-bottom: 14px;
}
.pp-ticket-new-toggle {
  margin-bottom: 8px;
}
.pp-ticket-form {
  background: var(--pp-card-soft);
  border: 1px solid var(--pp-border);
  border-radius: 6px;
  padding: 14px;
  margin-top: 8px;
  display: grid;
  gap: 8px;
}
.pp-ticket-form label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pp-muted);
}
.pp-ticket-form input,
.pp-ticket-form textarea {
  width: 100%;
  border: 1px solid var(--pp-border);
  border-radius: 5px;
  padding: 8px 10px;
  font-size: 0.86rem;
  font-family: inherit;
  background: #fff;
  box-sizing: border-box;
}
.pp-ticket-form textarea {
  min-height: 90px;
  resize: vertical;
}
.pp-ticket-form input:focus,
.pp-ticket-form textarea:focus {
  border-color: var(--pp-primary);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(46, 163, 242, 0.12);
}
.pp-ticket-feedback,
.pp-reply-feedback {
  font-size: 0.82rem;
  margin: 0;
  padding: 6px 10px;
  border-radius: 4px;
}
.pp-ticket-row:hover td {
  background: rgba(46, 163, 242, 0.03);
}
.pp-ticket-status-open      { color: var(--pp-success); font-weight: 600; }
.pp-ticket-status-answered  { color: #1d4ed8; font-weight: 600; }
.pp-ticket-status-closed    { color: var(--pp-muted); }
.pp-ticket-status-on-hold   { color: var(--pp-warning); font-weight: 600; }

.pp-ticket-detail { padding: 4px 0; }
.pp-reply-item {
  border: 1px solid var(--pp-border);
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 8px;
  background: #fafafa;
}
.pp-reply-item.pp-reply-admin {
  background: #f0f7ff;
  border-color: #c5ddf8;
}
.pp-reply-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--pp-muted);
}
.pp-reply-header strong {
  color: var(--pp-text);
}
.pp-reply-date {
  margin-left: auto;
  white-space: nowrap;
}
.pp-reply-badge-admin {
  background: var(--pp-primary);
  color: #fff;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 10px;
  font-weight: 600;
}
.pp-reply-body {
  font-size: 14px;
  line-height: 1.5;
  color: var(--pp-text);
  word-break: break-word;
}

/* ─── Dominios ─── */
.pp-domain-expiring {
  color: var(--pp-warning);
  font-weight: 600;
}
.pp-domain-expired {
  color: var(--pp-error);
  font-weight: 600;
}

/* Rebill buttons */
.pp-rebill-pay-btn {
  background: #1A67F7 !important;
  color: #ffffff !important;
  border: 2px solid #1A67F7 !important;
}
.pp-rebill-pay-btn:hover {
  background: #0d51d1 !important;
  border-color: #0d51d1 !important;
  color: #fff !important;
}
.pp-rebill-pay-btn img {
  vertical-align: middle;
  border-radius: 2px;
}
.pp-rebill-card-btn {
  color: #1A73E8;
  border-color: #1A73E8;
}
.pp-rebill-card-btn:hover {
  background: #1A73E8;
  color: #fff;
}
.pp-rebill-card-btn .pp-icon-card {
  fill: currentColor;
}

/* Ualá Biz button */
.pp-uala-pay-btn {
  background: #ffffff !important;
  color: #022A9B !important;
  border: 1px solid #ddd !important;
}
.pp-uala-pay-btn:hover {
  background: #f5f5f5 !important;
  border-color: #d0d0d0 !important;
}
.pp-uala-pay-btn img {
  vertical-align: middle;
  border-radius: 2px;
}

/* Rebill inline checkout (expanded below invoice row) */
.pp-rebill-form-row td {
  padding: 0 !important;
}
.pp-rebill-inline-container {
  width: 100%;
  padding: 16px 0;
}
.pp-rebill-inline-container rebill-checkout {
  display: block;
  width: 100%;
}

/* ──────────────────────────────────────────────────── */
/* Portal Purchase Wizard (inside pp-shell)             */
/* ──────────────────────────────────────────────────── */

.pp-shell #pp-purchase-root {
  min-height: 200px;
}

/* Stepper */
.pp-purchase-stepper {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 0 0 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--pp-border);
}
.pp-purchase-step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--pp-muted);
  font-weight: 600;
  font-size: 0.82rem;
}
.pp-purchase-step.active {
  color: var(--pp-primary);
}
.pp-purchase-step-num {
  display: inline-flex;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--pp-card-soft, #f5f5f5);
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
}
.pp-purchase-step.active .pp-purchase-step-num {
  background: var(--pp-primary);
  color: #fff;
}

/* Login CTA */
.pp-login-cta {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--pp-border);
}
.pp-login-cta p {
  margin: 0 0 10px;
  color: var(--pp-muted);
  font-size: 0.88rem;
}
.pp-login-cta .pp-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Account Form (guest registration) */
.pp-purchase-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.pp-purchase-form-group {
  margin-bottom: 14px;
}
.pp-purchase-form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--pp-border);
  border-radius: 6px;
  font-size: 0.88rem;
  color: var(--pp-text);
  background: #fff;
  transition: border-color 0.2s;
  appearance: auto;
}
.pp-purchase-form-group select:focus {
  outline: none;
  border-color: var(--pp-primary);
  box-shadow: 0 0 0 2px rgba(46, 163, 242, 0.15);
}
.pp-purchase-login-link {
  text-align: center;
  margin-top: 12px;
  font-size: 0.82rem;
}
.pp-purchase-login-link a {
  color: var(--pp-primary);
  text-decoration: none;
  font-weight: 600;
}
@media (max-width: 520px) {
  .pp-purchase-form-row {
    grid-template-columns: 1fr;
  }
}

/* Bank Details Inline */
.pp-bank-detail-row td {
  padding: 14px !important;
  background: var(--pp-card-soft, #fafafa);
}
.pp-bank-card {
  border: 1px solid var(--pp-border);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  margin-bottom: 10px;
}
.pp-bank-card:last-child {
  margin-bottom: 0;
}
.pp-bank-card h4 {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--pp-text);
}
.pp-bank-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--pp-border);
}

.pp-copy-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  background: var(--pp-text);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 5;
  pointer-events: none;
}
.pp-copy-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 14px;
  border: 5px solid transparent;
  border-top-color: var(--pp-text);
}
.pp-copy-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.pp-bank-field:last-child {
  border-bottom: none;
}
.pp-bank-label {
  min-width: 60px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--pp-muted);
  text-transform: uppercase;
}
.pp-bank-value {
  flex: 1;
  font-family: "SF Mono", "Consolas", monospace;
  font-size: 0.82rem;
  color: var(--pp-text);
  user-select: all;
  word-break: break-all;
}
.pp-bank-copy {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.15s;
  flex-shrink: 0;
}
.pp-bank-copy:hover {
  background: var(--pp-border);
}
.pp-bank-copy.copied {
  color: var(--pp-success);
}

/* Panel Toggle */
.pp-purchase-panel-toggle {
  display: flex;
  justify-content: center;
  background: var(--pp-card-soft, #f5f5f5);
  border-radius: 8px;
  padding: 3px;
  width: fit-content;
  margin: 14px auto;
}
.pp-purchase-panel-btn {
  padding: 8px 20px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--pp-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.pp-purchase-panel-btn.active {
  background: var(--pp-primary);
  color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
.pp-purchase-panel-btn:hover:not(.active) {
  color: var(--pp-text);
}
.pp-purchase-type-btn {
  padding: 8px 20px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--pp-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.pp-purchase-type-btn.active {
  background: var(--pp-primary);
  color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
.pp-purchase-type-btn:hover:not(.active) {
  color: var(--pp-text);
}
.pp-purchase-cycle-btn {
  padding: 8px 20px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--pp-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.pp-purchase-cycle-btn.active {
  background: var(--pp-primary);
  color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
.pp-purchase-cycle-btn:hover:not(.active) {
  color: var(--pp-text);
}
.pp-purchase-save-badge {
  display: inline-block;
  background: #2EA8C8;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
  margin-left: 4px;
  vertical-align: middle;
}
.pp-purchase-plan-savings {
  font-size: 0.75rem;
  color: #0f4c81;
  font-weight: 300;
  margin: -6px 0 10px;
}

/* Plans Grid */
.pp-purchase-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.pp-purchase-plan {
  border: 1px solid var(--pp-border);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pp-purchase-plan:hover {
  border-color: var(--pp-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.pp-purchase-plan.is-popular {
  border-color: var(--pp-primary);
  position: relative;
}
.pp-purchase-plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pp-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 12px;
  border-radius: 10px;
  text-transform: uppercase;
}
.pp-purchase-plan h4 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
}
.pp-purchase-plan-price {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--pp-text);
}
.pp-purchase-plan-price small {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--pp-muted);
}
.pp-purchase-plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  flex: 1;
}
.pp-purchase-plan ul li {
  padding: 3px 0;
  font-size: 0.8rem;
  color: var(--pp-muted);
}

/* 2-column layout (Domain + Summary, Payment + Summary) */
.pp-purchase-layout {
  display: flex;
  gap: 20px;
  margin-top: 16px;
}
.pp-purchase-form-col {
  flex: 2;
}
.pp-purchase-summary {
  flex: 1;
  min-width: 200px;
  background: var(--pp-card-soft, #fafafa);
  border: 1px solid var(--pp-border);
  border-radius: 8px;
  padding: 16px;
  align-self: flex-start;
}
.pp-purchase-summary-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.pp-purchase-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--pp-border);
}
.pp-purchase-summary-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.95rem;
  padding-top: 10px;
  margin-top: 6px;
}

/* Form elements inside purchase wizard */
.pp-shell #pp-purchase-root label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pp-muted);
  margin-bottom: 6px;
}
.pp-shell #pp-purchase-root input[type="text"],
.pp-shell #pp-purchase-root input[type="email"],
.pp-shell #pp-purchase-root input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--pp-border);
  border-radius: 6px;
  font-size: 0.88rem;
  color: var(--pp-text);
  background: #fff;
  transition: border-color 0.2s;
}
.pp-shell #pp-purchase-root input[type="text"]:focus,
.pp-shell #pp-purchase-root input[type="email"]:focus,
.pp-shell #pp-purchase-root input[type="password"]:focus {
  outline: none;
  border-color: var(--pp-primary);
  box-shadow: 0 0 0 2px rgba(46, 163, 242, 0.15);
}

/* Purchase gateway buttons */
.pp-purchase-gw-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pp-purchase-gw-buttons .pp-btn {
  justify-content: center;
  width: 100%;
}

/* Coupon field */
.pp-purchase-coupon {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--pp-border);
}
.pp-coupon-input-row {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}
.pp-coupon-input-row .pp-purchase-coupon-input {
  flex: 1;
}
.pp-coupon-apply-btn {
  white-space: nowrap;
  padding: 6px 16px !important;
  font-size: 0.82rem !important;
  min-width: 90px;
}
.pp-coupon-error {
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--pp-error, #cc2936);
}

/* Coupon applied badge */
.pp-coupon-applied {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 8px 12px;
  background: rgba(15, 157, 88, 0.08);
  border: 1px solid rgba(15, 157, 88, 0.25);
  border-radius: 6px;
}
.pp-coupon-applied-sm {
  margin-top: 14px;
  padding: 6px 10px;
  font-size: 0.78rem;
}
.pp-coupon-applied-code {
  font-weight: 700;
  color: var(--pp-success, #0f9d58);
  font-size: 0.82rem;
}
.pp-coupon-applied-desc {
  font-size: 0.75rem;
  color: var(--pp-muted);
  flex: 1;
}
.pp-coupon-remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--pp-muted);
  padding: 0 2px;
  line-height: 1;
}
.pp-coupon-remove:hover {
  color: var(--pp-error, #cc2936);
}

/* Discounted prices in plan cards */
.pp-price-original {
  text-decoration: line-through;
  color: var(--pp-muted);
  font-size: 0.85em;
  margin-right: 4px;
}
.pp-coupon-plan-note {
  font-size: 0.75rem;
  color: var(--pp-success, #0f9d58);
  font-weight: 600;
  margin-top: 2px;
}

/* Summary discount row */
.pp-purchase-summary-discount span:last-child {
  color: var(--pp-success, #0f9d58);
  font-weight: 600;
}

/* Coupon recurrence detail in summary */
.pp-coupon-detail {
  margin-top: 6px;
  font-size: 0.72rem;
  color: var(--pp-muted);
  font-style: italic;
}

/* Button progress fill animation */
.pp-btn-progress {
  position: relative;
  overflow: hidden;
  pointer-events: none;
  color: #fff !important;
}
.pp-btn-progress::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: rgba(255,255,255,0.18);
  transition: none;
  z-index: 0;
}
.pp-btn-progress.filling::before {
  animation: pp-btn-fill 18s cubic-bezier(0.1, 0.6, 0.3, 1) forwards;
}
.pp-btn-progress span {
  position: relative;
  z-index: 1;
}
@keyframes pp-btn-fill {
  0%   { width: 0%; }
  15%  { width: 35%; }
  40%  { width: 60%; }
  65%  { width: 78%; }
  85%  { width: 88%; }
  100% { width: 95%; }
}
.pp-btn-progress.done::before {
  width: 100% !important;
  animation: none;
  transition: width 0.3s ease;
}

/* Button row (back + submit) */
.pp-purchase-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}
.pp-purchase-actions .pp-btn {
  flex: 1;
}

/* Responsive */
@media (max-width: 680px) {
  .pp-purchase-layout {
    flex-direction: column;
  }
  .pp-purchase-plans {
    grid-template-columns: 1fr;
  }
  .pp-purchase-stepper {
    gap: 12px;
  }
}

/* ──────────────────────────────────────────────────── */
/* Peymi Purchase Flow (Isolated Scope)                 */
/* ──────────────────────────────────────────────────── */

.wxt-purchase-container {
  --peymi-primary: #4648d4;
  --peymi-primary-hover: #3b3db5;
  --peymi-primary-variant: #6063ee;
  --peymi-bg: transparent;
  --peymi-surface: #ffffff;
  --peymi-surface-alt: #f2f4f6;
  --peymi-text: #191c1e;
  --peymi-text-muted: #565e74;
  --peymi-border: #e0e3e5;
  --peymi-shadow: 0 10px 20px rgba(25, 28, 30, 0.05);

  font-family: inherit;
  color: var(--peymi-text);
  background: var(--peymi-bg);
  box-sizing: border-box;
}

.wxt-purchase-container * {
  box-sizing: inherit;
}

/* Loading */
.wxt-purchase-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
  font-size: 16px;
  color: var(--peymi-text-muted);
}

/* Header */
.wxt-purchase-container .peymi-header {
  background: var(--peymi-surface);
  border-bottom: 1px solid var(--peymi-border);
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wxt-purchase-container .peymi-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--peymi-text);
}

/* Stepper */
.wxt-purchase-stepper {
  display: flex;
  justify-content: center;
  padding: 30px 20px;
  gap: 40px;
}
.wxt-purchase-step {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--peymi-text-muted);
  font-weight: 600;
}
.wxt-purchase-step.active {
  color: var(--peymi-primary);
}
.wxt-purchase-step-num {
  display: inline-flex;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--peymi-surface-alt);
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.wxt-purchase-step.active .wxt-purchase-step-num {
  background: var(--peymi-primary);
  color: #fff;
}

/* Main Layout */
.wxt-purchase-main {
  margin: 0 auto;
  padding: 40px 20px;
  max-width: 1200px;
}
.wxt-purchase-title {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
}
.wxt-purchase-subtitle {
  text-align: center;
  color: var(--peymi-text-muted);
  margin-bottom: 40px;
}

/* Plans Grid */
.wxt-purchase-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.wxt-plan-card {
  background: var(--peymi-surface);
  border: 1px solid var(--peymi-border);
  border-radius: 12px;
  padding: 30px;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.wxt-plan-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--peymi-shadow);
}
.wxt-plan-card.popular {
  border-color: var(--peymi-primary);
  position: relative;
}
.wxt-plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--peymi-primary) 0%, var(--peymi-primary-variant) 100%);
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
}
.wxt-plan-name {
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--peymi-text-muted);
  margin-bottom: 15px;
}
.wxt-plan-price {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--peymi-text);
}
.wxt-plan-price small {
  font-size: 14px;
  color: var(--peymi-text-muted);
}
.wxt-plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  flex-grow: 1;
}
.wxt-plan-features li {
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--peymi-text-muted);
}
.wxt-plan-btn {
  background: var(--peymi-surface-alt);
  color: var(--peymi-text);
  border: none;
  padding: 15px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  width: 100%;
}
.wxt-plan-card.popular .wxt-plan-btn {
  background: linear-gradient(135deg, var(--peymi-primary) 0%, var(--peymi-primary-variant) 100%);
  color: #fff;
}
.wxt-plan-btn:hover {
  opacity: 0.9;
}

/* Account Layout (2-cols) */
.wxt-account-layout {
  display: flex;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}
.wxt-account-form {
  flex: 2;
  background: var(--peymi-surface);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid var(--peymi-border);
}
.wxt-account-summary {
  flex: 1;
  background: var(--peymi-surface);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--peymi-border);
  height: fit-content;
}

/* Form Styles */
.wxt-form-group {
  margin-bottom: 20px;
}
.wxt-form-row {
  display: flex;
  gap: 20px;
}
.wxt-form-row .wxt-form-group {
  flex: 1;
}
.wxt-purchase-container label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--peymi-text-muted);
  margin-bottom: 8px;
}
.wxt-purchase-container input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--peymi-border);
  border-radius: 8px;
  background: var(--peymi-surface-alt);
  font-size: 15px;
  transition: border-color 0.2s;
}
.wxt-purchase-container input:focus {
  outline: none;
  border-color: var(--peymi-primary);
  background: var(--peymi-surface);
}

.wxt-btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--peymi-primary) 0%, var(--peymi-primary-variant) 100%);
  color: #fff;
  border: none;
  padding: 15px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 10px;
}
.wxt-btn-submit:hover {
  opacity: 0.9;
}
.wxt-btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Alert inside scope */
.wxt-purchase-alert {
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}
.wxt-purchase-alert.error {
  background: #ffebe9;
  color: #cf222e;
  border: 1px solid #ffdce0;
}

/* Form Summary */
.wxt-summary-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--peymi-border);
  padding-bottom: 10px;
}
.wxt-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 14px;
}
.wxt-summary-total {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--peymi-border);
  font-weight: bold;
  font-size: 18px;
}

/* Gateway Selection */
.wxt-gateway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 30px 0;
}
.wxt-gateway-card {
  border: 2px solid var(--peymi-border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
}
.wxt-gateway-card.active {
  border-color: var(--peymi-primary);
  background: rgba(70, 72, 212, 0.05);
}
.wxt-gateway-icon {
  font-size: 32px;
  margin-bottom: 10px;
  color: var(--peymi-text-muted);
}
.wxt-gateway-card.active .wxt-gateway-icon {
  color: var(--peymi-primary);
}

/* Payment Buttons (Step 4) */
.wxt-payment-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wxt-gateway-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--peymi-border);
  border-radius: 10px;
  background: var(--peymi-surface);
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--peymi-text);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.wxt-gateway-btn:hover {
  border-color: var(--peymi-primary);
  box-shadow: 0 2px 8px rgba(70, 72, 212, 0.12);
  transform: translateY(-1px);
}
.wxt-gateway-btn:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}
.wxt-gateway-btn img {
  flex-shrink: 0;
}

/* Página pública de pago /mi-cuenta/pagar/{id} */
.pp-pay-standalone {
  max-width: 480px;
  margin: 0 auto;
}
.pp-pay-standalone .pp-header {
  justify-content: center;
}
.pp-pay-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
}
.pp-pay-card {
  text-align: left;
}
.pp-pay-client {
  color: var(--pp-muted);
  font-size: 0.85rem;
  margin: 0 0 4px;
}
.pp-pay-item {
  color: var(--pp-text);
  font-size: 0.88rem;
  margin: 2px 0;
}
.pp-pay-amount {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 14px 0;
  padding: 12px 14px;
  background: rgba(46, 163, 242, 0.06);
  border-radius: 8px;
}
.pp-pay-amount-label {
  font-size: 0.78rem;
  color: var(--pp-muted);
}
.pp-pay-amount-value {
  font-size: 1.4rem;
  color: var(--pp-text);
}
.pp-pay-duedate {
  font-size: 0.82rem;
  color: var(--pp-muted);
  margin: 0 0 10px;
}
.pp-pay-methods {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
}
.pp-pay-no-gateway {
  color: var(--pp-muted);
  font-size: 0.85rem;
}
.pp-pay-bank-info {
  width: 100%;
  border: 1px solid var(--pp-border);
  border-radius: 8px;
  padding: 10px 12px;
}
.pp-pay-bank-title {
  font-weight: 700;
  margin: 0 0 6px;
  font-size: 0.85rem;
}
.pp-pay-bank-info .pp-bank-card {
  margin-bottom: 0;
  border: none;
  padding: 0;
}
.pp-pay-login-link {
  text-align: center;
  font-size: 0.85rem;
  color: var(--pp-muted);
}

/* Buscador de factura por número */
.pp-pay-search-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  text-align: left;
}
.pp-pay-search-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pp-text);
}
.pp-pay-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--pp-border);
  border-radius: 6px;
  font-size: 0.95rem;
}
.pp-pay-search-input:focus {
  outline: none;
  border-color: var(--pp-primary);
}
.pp-pay-search-msg {
  font-size: 0.82rem;
  color: var(--pp-error);
}
.pp-pay-search-btn {
  width: 100%;
}
