.pcd-portal {
  --pcd-text: #111111;
  --pcd-muted: #626872;
  --pcd-line: #e3e5e9;
  --pcd-soft: #f7f7f7;
  --pcd-blue: #16498f;
  --pcd-action: #f59e0b;
  --pcd-action-hover: #4e59ee;
  --pcd-gold: #b48a2c;
  --pcd-gold-soft: #fff8e5;
  background: #ffffff;
  border: 1px solid #eef0f3;
  box-sizing: border-box;
  color: var(--pcd-text);
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  line-height: 1.5;
  margin: 28px auto;
  max-width: 1200px;
  padding: 28px;
  width: 100%;
}

.pcd-portal *,
.pcd-portal *::before,
.pcd-portal *::after {
  box-sizing: border-box;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  min-width: 0;
}

.pcd-product {
  display: grid;
  gap: 22px;
}

.pcd-product-header,
.pcd-header {
  background: #ffffff;
  border: 1px solid var(--pcd-line);
  padding: 32px;
}

.pcd-product-header {
  display: block;
}

.pcd-product-header aside,
.pcd-product-header [class*="api"],
.pcd-product-header [class*="connection"] {
  display: none !important;
}

.pcd-product-header span,
.pcd-header span,
.pcd-surface-head span,
.pcd-side-note span,
.pcd-checkout-side span {
  color: var(--pcd-blue);
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.pcd-product-header h2,
.pcd-header h2 {
  color: var(--pcd-text);
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  margin: 6px 0 12px;
}

.pcd-product-header p,
.pcd-header p {
  color: var(--pcd-muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
  max-width: 720px;
}

.pcd-module-nav {
  background: #ffffff;
  border: 1px solid var(--pcd-line);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 20px 24px;
  position: static;
}

.pcd-module-nav a {
  border-bottom: 1px solid transparent;
  color: var(--pcd-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  padding: 4px 0;
  text-decoration: none;
  text-transform: uppercase;
}

.pcd-module-nav a:hover {
  border-bottom-color: var(--pcd-text);
  color: var(--pcd-text);
}

.pcd-identity {
  background: #ffffff;
  border: 1px solid var(--pcd-line);
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  padding: 34px;
}

.pcd-inline-identity {
  margin-bottom: 20px;
}

.pcd-identity-form,
.pcd-empty-search .pcd-identity-form,
.pcd-search {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.pcd-identity-form label,
.pcd-form label,
.pcd-card-form label,
.pcd-search {
  color: var(--pcd-text);
  display: grid;
  font-size: 11px;
  font-weight: 700;
  gap: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pcd-identity-form input,
.pcd-search input,
.pcd-form input,
.pcd-form select,
.pcd-form textarea,
.pcd-card-form input {
  appearance: auto !important;
  background: var(--pcd-soft) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--pcd-text) !important;
  border-radius: 0 !important;
  color: var(--pcd-text) !important;
  font: inherit !important;
  min-height: 54px !important;
  padding: 12px 2px !important;
  pointer-events: auto !important;
  position: relative;
  width: 100% !important;
  z-index: 1;
}

.pcd-identity-form input {
  font-size: 20px !important;
}

.pcd-form select {
  padding-right: 28px !important;
}

.pcd-form textarea {
  line-height: 1.5;
  min-height: 130px !important;
  resize: vertical;
}

.pcd-identity-form input:focus,
.pcd-search input:focus,
.pcd-form input:focus,
.pcd-form select:focus,
.pcd-form textarea:focus,
.pcd-card-form input:focus {
  background: #ffffff !important;
  border-bottom-color: var(--pcd-gold) !important;
  outline: 0;
}

.pcd-button {
  align-items: center;
  background: #111111;
  border: 1px solid #111111;
  border-radius: 0;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  justify-content: center;
  line-height: 1;
  min-height: 54px;
  padding: 15px 28px;
  text-decoration: none;
  text-transform: uppercase;
}

.pcd-button:hover {
  background: var(--pcd-gold);
  border-color: var(--pcd-gold);
  color: #ffffff;
}

.pcd-button:focus-visible {
  outline: 2px solid var(--pcd-action-hover);
  outline-offset: 3px;
}

.pcd-identity-form .pcd-button,
.pcd-empty-search .pcd-button {
  background: var(--pcd-action);
  border-color: var(--pcd-action);
  color: #111111;
}

.pcd-identity-form .pcd-button:hover,
.pcd-identity-form .pcd-button:focus,
.pcd-identity-form .pcd-button:active,
.pcd-empty-search .pcd-button:hover,
.pcd-empty-search .pcd-button:focus,
.pcd-empty-search .pcd-button:active {
  background: var(--pcd-action-hover);
  border-color: var(--pcd-action-hover);
  color: #ffffff;
}

.pcd-button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.pcd-button-secondary {
  background: #ffffff;
  color: var(--pcd-text);
}

.pcd-citizen-card {
  background: #fafafa;
  border: 1px solid var(--pcd-line);
  display: grid;
  gap: 4px;
  padding: 16px;
}

.pcd-citizen-card strong {
  color: var(--pcd-text);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.35;
}

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

.pcd-result {
  background: #f5f5f4;
  border: 1px solid var(--pcd-line);
  margin: 12px 0;
  padding: 12px;
}

.pcd-result:empty,
.pcd-result[hidden],
[hidden] {
  display: none !important;
}

.pcd-result.is-success {
  background: #ecfdf5;
  border-color: #bbf7d0;
  color: #047857;
}

.pcd-result.is-error {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
}

.pcd-surface,
.pcd-panel,
.pcd-form,
.pcd-auth-message,
.pcd-empty {
  background: #ffffff;
  border: 1px solid var(--pcd-line);
}

.pcd-surface,
.pcd-panel,
.pcd-form {
  padding: 22px;
}

.pcd-surface {
  margin: 22px 0;
}

.pcd-surface-head {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.pcd-surface-head h3,
.pcd-panel h3 {
  color: var(--pcd-text);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
}

.pcd-surface-head strong {
  color: var(--pcd-text);
  font-size: 24px;
  font-weight: 500;
  white-space: nowrap;
}

.pcd-form {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

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

.pcd-wide {
  grid-column: 1 / -1;
}

.pcd-layout-2,
.pcd-checkout-grid {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) 320px;
}

.pcd-checkout-main {
  display: grid;
  gap: 14px;
}

.pcd-checkout-main .pcd-panel {
  display: none;
  margin: 0;
}

.pcd-checkout-main .pcd-panel.is-active {
  display: block;
}

.pcd-side-note,
.pcd-site-note {
  background: #ffffff;
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--pcd-text);
  display: grid;
  gap: 10px;
  padding: 20px 0;
}

.pcd-side-note p {
  color: var(--pcd-muted);
  line-height: 1.55;
  margin: 0;
}

.pcd-checkout-side {
  align-self: start;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid var(--pcd-line);
  border-top: 1px solid var(--pcd-text);
  color: var(--pcd-text);
  display: grid;
  gap: 8px;
  padding: 18px 0;
}

.pcd-checkout-side small,
.pcd-checkout-side span {
  color: var(--pcd-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pcd-checkout-side strong {
  color: var(--pcd-text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.pcd-checkout-side b {
  color: var(--pcd-text);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.1;
}

.pcd-definition {
  display: grid;
  gap: 0;
  margin: 12px 0 18px;
}

.pcd-definition div {
  border-top: 1px solid var(--pcd-line);
  display: grid;
  gap: 8px;
  grid-template-columns: 150px minmax(0, 1fr);
  padding: 10px 0;
}

.pcd-definition dt {
  color: var(--pcd-muted);
  font-weight: 600;
}

.pcd-definition dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.pcd-stepper {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.pcd-stepper span {
  background: #ffffff;
  border: 1px solid var(--pcd-line);
  color: var(--pcd-muted);
  font-size: 13px;
  font-weight: 700;
  padding: 10px;
  text-align: center;
}

.pcd-stepper .is-active {
  background: var(--pcd-blue);
  border-color: var(--pcd-blue);
  color: #ffffff;
}

.pcd-stepper .is-done {
  background: var(--pcd-gold-soft);
  border-color: #efd28d;
  color: #775913;
}

.pcd-two-cols {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pcd-flow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.pcd-payment-cards,
.pcd-case-list,
.pcd-ticket-grid,
[data-pcd-payment-history-body] {
  display: block;
}

.pcd-accordion {
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid var(--pcd-line);
  display: block;
  margin: 0;
  width: 100%;
}

.pcd-accordion summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  list-style: none;
  padding: 17px 4px;
}

.pcd-accordion summary::-webkit-details-marker {
  display: none;
}

.pcd-accordion summary strong {
  color: var(--pcd-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.pcd-accordion summary small {
  color: var(--pcd-muted);
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.pcd-accordion summary em,
.pcd-accordion summary > span:not(.pcd-accordion-cue):not(.pcd-payment-select) {
  color: var(--pcd-muted);
  font-style: normal;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.pcd-accordion-cue {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--pcd-text);
  color: var(--pcd-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 0 0 3px;
  text-transform: uppercase;
}

.pcd-accordion-body {
  border-top: 1px solid #f0f1f3;
  display: grid;
  gap: 8px;
  padding: 16px 4px 18px;
}

.pcd-accordion-body p {
  display: grid;
  gap: 8px;
  grid-template-columns: 110px minmax(0, 1fr);
  margin: 0;
}

.pcd-payment-card summary {
  grid-template-columns: 52px minmax(0, 1fr) auto;
}

.pcd-payment-card.is-paid summary {
  grid-template-columns: minmax(0, 1fr) auto;
}

.pcd-payment-card .pcd-payment-select {
  align-items: center;
  cursor: pointer;
  display: grid;
  height: 48px;
  justify-items: center;
  position: relative;
  width: 48px;
  z-index: 2;
}

.pcd-payment-card input[type="checkbox"] {
  cursor: pointer;
  height: 48px !important;
  inset: 0 !important;
  margin: 0 !important;
  opacity: 0;
  position: absolute !important;
  width: 48px !important;
  z-index: 3;
}

.pcd-payment-card .pcd-check-ui {
  background: #ffffff;
  border: 1.5px solid var(--pcd-text);
  height: 28px;
  left: 10px;
  pointer-events: none;
  position: absolute;
  top: 10px;
  width: 28px;
}

.pcd-payment-card input[type="checkbox"]:focus-visible + .pcd-check-ui {
  outline: 2px solid var(--pcd-gold);
  outline-offset: 3px;
}

.pcd-payment-card input[type="checkbox"]:checked + .pcd-check-ui {
  background: var(--pcd-text);
  border-color: var(--pcd-text);
}

.pcd-payment-card:has(input[type="checkbox"]:checked) {
  background: #fcfcfd;
}

.pcd-payment-lock {
  background: #f2fbf6;
  border: 1px solid #caecd8;
  color: #047857;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  justify-self: start;
  line-height: 1;
  padding: 8px 10px;
}

.pcd-payment-top {
  display: grid;
  gap: 10px;
}

.pcd-badge,
.pcd-status {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  justify-self: start;
  padding: 7px 10px;
  text-transform: capitalize;
}

.pcd-pendiente,
.pcd-status {
  background: var(--pcd-gold-soft);
  color: #775913;
}

.pcd-pagado {
  background: #ecfdf5;
  color: #047857;
}

.pcd-vencido {
  background: #fff1f2;
  color: #be123c;
}

.pcd-payment-meta {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 4px;
}

.pcd-payment-meta span {
  background: transparent;
  border-top: 1px solid #f0f1f3;
  display: grid;
  gap: 4px;
  padding: 12px 0;
}

.pcd-payment-meta small,
.pcd-payment-observations small {
  color: var(--pcd-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.pcd-payment-meta b,
.pcd-payment-observations b {
  color: var(--pcd-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.pcd-payment-observations {
  background: #ffffff;
  border-top: 1px solid #f0f1f3;
  display: grid;
  gap: 5px;
  margin: 0 4px 18px;
  padding: 12px 0 0;
}

.pcd-case-card,
.pcd-ticket,
.pcd-history-accordion {
  background: #ffffff;
}

.pcd-case-timeline {
  border-left: 1px solid #d8e0eb;
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0 18px 18px 26px;
  padding: 0 0 0 18px;
}

.pcd-case-timeline li {
  display: grid;
  gap: 5px;
  position: relative;
}

.pcd-case-timeline li::before {
  background: var(--pcd-blue);
  border: 3px solid #ffffff;
  border-radius: 999px;
  content: "";
  height: 11px;
  left: -24px;
  position: absolute;
  top: 3px;
  width: 11px;
}

.pcd-case-timeline time {
  color: var(--pcd-muted);
  font-size: 12px;
  font-weight: 600;
}

.pcd-case-timeline strong {
  color: var(--pcd-text);
  font-size: 14px;
  font-weight: 700;
}

.pcd-case-timeline p {
  color: #4f5662;
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
}

.pcd-file-drop {
  background: #ffffff;
  border: 1px dashed #c7c2bd;
  padding: 14px;
}

.pcd-file-drop span {
  color: var(--pcd-muted);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.pcd-receipt-card {
  align-items: center;
  border: 1px solid var(--pcd-line);
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 18px;
}

.pcd-receipt-card > div:first-child > strong {
  display: block;
  font-size: 28px;
  font-weight: 500;
  margin: 4px 0;
  overflow-wrap: anywhere;
}

.pcd-receipt-card p {
  color: var(--pcd-muted);
  margin: 0;
}

.pcd-qr {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.pcd-qr svg {
  background: #ffffff;
  border: 8px solid #ffffff;
  height: 148px;
  width: 148px;
}

.pcd-qr svg rect {
  fill: #111111;
}

.pcd-qr span {
  font-size: 11px;
  font-weight: 700;
  max-width: 180px;
  overflow-wrap: anywhere;
  text-align: center;
}

.pcd-cards {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin-bottom: 18px;
}

.pcd-card {
  background: #ffffff;
  border: 1px solid var(--pcd-line);
  padding: 16px;
}

.pcd-card span,
.pcd-list-item span,
.pcd-list-item p,
.pcd-notifications span {
  color: var(--pcd-muted);
  margin: 0;
}

.pcd-card strong {
  display: block;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.05;
  margin: 4px 0;
}

.pcd-list-item,
.pcd-notifications li {
  border-top: 1px solid var(--pcd-line);
  display: grid;
  gap: 4px;
  padding: 13px 0;
}

.pcd-list-item:first-of-type,
.pcd-notifications li:first-child {
  border-top: 0;
}

.pcd-notifications {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pcd-empty,
.pcd-auth-message {
  margin: 18px auto;
  max-width: 720px;
  padding: 16px;
}

.pcd-empty-search {
  display: grid;
  gap: 12px;
  max-width: none;
}

.pcd-empty-note {
  color: var(--pcd-muted);
  margin: 0;
}

.pcd-sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.pcd-modal {
  --pcd-text: #111111;
  --pcd-muted: #626872;
  --pcd-line: #e3e5e9;
  --pcd-action-hover: #4e59ee;
  align-items: center;
  background: rgba(17, 17, 17, .42);
  display: grid;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  inset: 0;
  padding: 20px;
  position: fixed;
  z-index: 99999;
}

.pcd-modal * {
  box-sizing: border-box;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.pcd-modal-panel {
  background: #ffffff;
  border: 1px solid var(--pcd-line);
  color: var(--pcd-text);
  display: grid;
  gap: 16px;
  margin: 0 auto;
  max-width: 520px;
  padding: 30px;
  position: relative;
  width: min(100%, 520px);
}

.pcd-modal-panel span {
  color: var(--pcd-action-hover);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pcd-modal-panel h3 {
  color: var(--pcd-text);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.12;
  margin: 0;
}

.pcd-modal-panel p {
  color: var(--pcd-muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}

.pcd-modal-panel strong {
  border-top: 1px solid var(--pcd-line);
  color: var(--pcd-text);
  display: block;
  font-size: 16px;
  font-weight: 600;
  overflow-wrap: anywhere;
  padding-top: 14px;
}

.pcd-modal-close {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--pcd-text);
  color: var(--pcd-text);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 0 0 3px;
  position: absolute;
  right: 30px;
  text-transform: uppercase;
  top: 24px;
}

.pcd-modal-panel .pcd-button {
  justify-self: start;
}

@media (max-width: 920px) {
  .pcd-layout-2,
  .pcd-checkout-grid,
  .pcd-identity,
  .pcd-form-grid,
  .pcd-two-cols,
  .pcd-receipt-card {
    grid-template-columns: 1fr;
  }

  .pcd-surface-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 640px) {
  .pcd-portal {
    border-left: 0;
    border-right: 0;
    margin: 0;
    max-width: none;
    padding: 14px;
  }

  .pcd-product {
    gap: 14px;
  }

  .pcd-product-header,
  .pcd-header,
  .pcd-identity,
  .pcd-surface,
  .pcd-panel,
  .pcd-form {
    padding: 18px;
  }

  .pcd-product-header h2,
  .pcd-header h2 {
    font-size: 32px;
    line-height: 1.05;
  }

  .pcd-product-header p,
  .pcd-header p {
    font-size: 14px;
  }

  .pcd-module-nav {
    gap: 12px 22px;
    overflow: visible;
    padding: 18px 22px;
  }

  .pcd-identity-form,
  .pcd-empty-search .pcd-identity-form,
  .pcd-search {
    grid-template-columns: 1fr;
  }

  .pcd-button,
  .pcd-identity-form .pcd-button,
  .pcd-empty-search .pcd-button {
    width: 100%;
  }

  .pcd-accordion summary {
    gap: 10px;
    grid-template-columns: 1fr;
    padding: 16px 0;
  }

  .pcd-payment-card summary {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .pcd-payment-card.is-paid summary {
    grid-template-columns: 1fr;
  }

  .pcd-payment-card summary .pcd-accordion-cue {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .pcd-payment-meta,
  .pcd-stepper {
    grid-template-columns: 1fr;
  }

  .pcd-payment-meta,
  .pcd-payment-observations {
    margin-left: 0;
    margin-right: 0;
  }

  .pcd-accordion-body p,
  .pcd-definition div {
    grid-template-columns: 1fr;
  }

  .pcd-case-timeline {
    margin-left: 4px;
    padding-left: 16px;
  }

  .pcd-case-timeline li::before {
    left: -22px;
  }

  .pcd-checkout-side b {
    font-size: 24px;
  }

  .pcd-qr svg {
    height: 132px;
    width: 132px;
  }

  .pcd-modal {
    align-items: end;
    padding: 12px;
  }

  .pcd-modal-panel {
    padding: 26px 20px 20px;
  }

  .pcd-modal-panel h3 {
    font-size: 25px;
  }

  .pcd-modal-close {
    right: 20px;
    top: 18px;
  }
}
