/* Shell aligned with disco.html and it-wallet.html (iam-proxy-italia static/css/style.css). */

.it-header-slim-wrapper.bg-primary {
  background-color: #004D99 !important;
}

.it-header-slim-wrapper.bg-primary .navbar-brand,
.it-header-slim-wrapper.bg-primary .navbar-brand strong {
  font-size: 14px !important;
  font-weight: 400 !important;
  white-space: normal;
  line-height: 1.3;
}

.it-header-slim-right-zone {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  align-items: center;
}

/* Language dropdown: same metrics as disco.html (static/css/style.css). */
.it-header-slim-wrapper.bg-primary .it-header-lang-dropdown .nav-link.dropdown-toggle,
.it-header-slim-wrapper.bg-primary .it-header-lang-dropdown button.nav-link.dropdown-toggle,
.it-header-slim-wrapper.bg-primary .it-header-slim-logout {
  color: #fff !important;
  font-size: 0.875rem;
  font-weight: 400;
  padding: 0.35rem 0.25rem;
  border: none;
  background: transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  line-height: 1.5;
}

.it-header-slim-wrapper.bg-primary .it-header-slim-logout {
  margin-left: 0.75rem;
}

.it-header-slim-wrapper.bg-primary .it-header-lang-dropdown .nav-link.dropdown-toggle:hover,
.it-header-slim-wrapper.bg-primary .it-header-lang-dropdown .nav-link.dropdown-toggle:focus,
.it-header-slim-wrapper.bg-primary .it-header-lang-dropdown button.nav-link.dropdown-toggle:hover,
.it-header-slim-wrapper.bg-primary .it-header-lang-dropdown button.nav-link.dropdown-toggle:focus,
.it-header-slim-wrapper.bg-primary .it-header-slim-logout:hover,
.it-header-slim-wrapper.bg-primary .it-header-slim-logout:focus {
  color: #fff !important;
}

.it-header-slim-wrapper.bg-primary .it-header-slim-logout:hover,
.it-header-slim-wrapper.bg-primary .it-header-slim-logout:focus {
  text-decoration: underline;
}

.it-header-slim-wrapper.bg-primary .it-header-lang-dropdown .nav-link.dropdown-toggle::after,
.it-header-slim-wrapper.bg-primary .it-header-lang-dropdown button.nav-link.dropdown-toggle::after {
  display: none !important;
}

.it-header-slim-wrapper.bg-primary .it-header-lang-dropdown .nav-link .icon,
.it-header-slim-wrapper.bg-primary .it-header-lang-dropdown button.nav-link .icon {
  color: #fff;
  fill: currentcolor;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: all 0.3s;
  transform-origin: center;
}

.it-header-slim-wrapper.bg-primary .it-header-lang-dropdown .nav-link.dropdown-toggle[aria-expanded="true"] > .icon:last-of-type,
.it-header-slim-wrapper.bg-primary .it-header-lang-dropdown button.nav-link.dropdown-toggle[aria-expanded="true"] > .icon:last-of-type {
  transform: scaleY(-1);
}

.it-header-lang-dropdown .dropdown-menu {
  z-index: 1050;
}

.it-header-lang-dropdown .dropdown-menu .dropdown-item,
.it-header-lang-dropdown .dropdown-menu .dropdown-item.active,
.it-header-lang-dropdown .dropdown-menu .dropdown-item:active {
  font-weight: 400;
}

.it-header-lang-dropdown .link-list-wrapper ul.link-list li button.list-item {
  font-size: 1rem;
  line-height: 2rem;
  display: block;
  width: 100%;
  padding: 0.25rem 24px;
  text-align: left;
  text-decoration: none;
  position: relative;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: inherit;
  color: inherit;
  appearance: none;
}

.it-header-lang-dropdown .link-list-wrapper ul.link-list li button.list-item span {
  color: hsl(210deg 100% 40%);
  display: inline-block;
  margin-right: 24px;
  line-height: normal;
}

.it-header-lang-dropdown .link-list-wrapper ul.link-list li button.list-item:hover:not(.disabled) span {
  color: hsl(210deg 100% 40%);
  text-decoration: underline;
}

.it-header-lang-dropdown .link-list-wrapper ul.link-list li button.list-item.active span,
.it-header-lang-dropdown .link-list-wrapper ul.link-list li button.list-item.active:hover span {
  color: hsl(210deg 100% 15%);
  text-decoration: none;
}

.it-header-lang-dropdown .dropdown-menu button.dropdown-item.active,
.it-header-lang-dropdown .dropdown-menu button.dropdown-item:active,
.it-header-lang-dropdown .dropdown-menu button.dropdown-item:hover,
.it-header-lang-dropdown .dropdown-menu button.dropdown-item:focus {
  background-color: transparent;
  color: inherit;
}

@media (width <= 576px) {
  .it-header-lang-dropdown .nav-link.dropdown-toggle,
  .it-header-lang-dropdown button.nav-link.dropdown-toggle {
    padding-left: 0 !important;
  }
}

.field-error {
  color: #a31f34;
  font-size: 0.875rem;
  margin: 0.25rem 0 0;
}

.catalog-section .catalog-issuer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: calc(2 * var(--bs-it-card-title-spacer-y));
  padding: 0 var(--bs-it-card-spacer-x);
}

.catalog-section .catalog-issuer-heading .it-card-title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.catalog-section .catalog-issuer-heading .chip {
  flex: 0 0 auto;
  margin: 0;
}

.catalog-section .catalog-issuer-heading .chip-label {
  white-space: nowrap;
}

.catalog-section .it-card-title,
.catalog-section .it-card-text {
  overflow-wrap: anywhere;
}

.catalog-section .catalog-obtain {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
}

.catalog-section .select-wrapper {
  flex: 1 1 auto;
  min-width: 0;
}

.catalog-section .select-wrapper label {
  position: static;
  transform: none;
  display: block;
  margin: 0 0 0.35rem;
  padding: 0;
  line-height: 1.4;
  font-size: 0.875rem;
  font-weight: 600;
}

.catalog-section .select-wrapper select {
  padding-right: 2.5rem;
}

.catalog-section .obtain-one {
  flex: 0 0 auto;
  align-self: flex-end;
  height: 2.5rem;
  margin: 0;
  padding: 0 1.5rem;
  border: 0;
  border-radius: 4px;
  line-height: 1.5;
}

.attestation-detail:empty {
  display: none;
}

.credential-offer-qr {
  display: block;
  width: 11.25rem;
  height: auto;
  background: #fff;
}

.attestation-preview {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0.75rem 0 0;
  padding: 1rem 1.25rem;
  background: #f2f7fc;
  border: 1px solid #d9e6f2;
  border-radius: 4px;
}

.attestation-preview-row {
  display: grid;
  grid-template-columns: 12.5rem minmax(0, 1fr);
  column-gap: 1rem;
  row-gap: 0.2rem;
  align-items: start;
}

.attestation-preview dt {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  color: #17324d;
}

.attestation-preview dd {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #1a1a1a;
}

.attestation-config-id,
.attestation-source {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875rem;
  word-break: break-all;
}

.attestation-claims {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.attestation-claims li {
  position: relative;
  margin: 0;
  padding-left: 0.95rem;
}

.attestation-claims li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: #0066cc;
}

@media (width <= 576px) {
  .attestation-preview-row {
    grid-template-columns: 1fr;
  }
}

.diagnostic-layout {
  display: grid;
  grid-template-columns: 16.5rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.diagnostic-nav {
  position: sticky;
  top: 1rem;
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  padding: 1rem;
  border: 1px solid #d9e6f2;
  border-radius: 4px;
  background: #fff;
}

.diagnostic-nav .h6 {
  margin: 0 0 0.75rem;
}

.diagnostic-nav-group + .diagnostic-nav-group {
  margin-top: 1rem;
}

.diagnostic-nav-group h3 {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  color: #17324d;
}

.diagnostic-nav-group ul,
.credential-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.diagnostic-nav-group a,
.credential-nav a {
  display: block;
  padding: 0.2rem 0;
  color: #0066cc;
  font-size: 0.875rem;
  line-height: 1.4;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.diagnostic-nav-group a:hover,
.diagnostic-nav-group a:focus-visible,
.credential-nav a:hover,
.credential-nav a:focus-visible {
  text-decoration: underline;
}

.diagnostic-nav-group a[aria-current="true"],
.credential-nav a[aria-current="true"] {
  font-weight: 600;
  color: #17324d;
}

.credential-nav li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.35rem;
}

.credential-nav li > a {
  flex: 1 1 auto;
  min-width: 0;
}

.credential-nav form {
  margin: 0;
  flex: 0 0 auto;
}

.credential-nav-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #d9364f;
  cursor: pointer;
}

.credential-nav-remove .icon {
  width: 1.125rem;
  height: 1.125rem;
  fill: currentcolor;
}

.credential-nav-remove:hover,
.credential-nav-remove:focus-visible {
  background: #fde8ec;
}

.credential-nav-remove:focus-visible {
  outline: 2px solid #d9364f;
  outline-offset: 2px;
}

.diagnostic-failure-icon {
  flex: 0 0 auto;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.12rem;
  fill: #d9364f;
  color: #d9364f;
}

.diagnostic-nav-group a.is-failed,
.diagnostic-nav-group a.is-failed:hover,
.diagnostic-nav-group a.is-failed:focus-visible,
.diagnostic-nav-group a.is-failed[aria-current="true"] {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  color: #d9364f;
}

.diagnostic-exchange-heading h2.is-failed {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.copy-field {
  position: relative;
}

.copy-field-button {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 1;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #d9e6f2;
  border-radius: 4px;
  background: #fff;
  color: #0066cc;
  cursor: pointer;
}

.copy-field-button .icon {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentcolor;
}

.copy-field-button:hover,
.copy-field-button:focus-visible {
  background: #f2f7fc;
}

.copy-field-button.is-copied {
  color: #008055;
  border-color: #008055;
}

.copy-field > pre,
.copy-field > textarea,
.copy-field > .long-text {
  display: block;
  padding-right: 2.75rem !important;
}

.input-group > .copy-field {
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
}

.copy-field-input .copy-field-button {
  top: 50%;
  transform: translateY(-50%);
}

.diagnostic-log-column {
  min-width: 0;
}

.diagnostic-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.diagnostic-select-all {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.875rem;
}

.diagnostic-exchange-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.diagnostic-exchange-heading h2 {
  margin: 0;
}

.diagnostic-exchange-heading label {
  margin: 0.15rem 0 0;
}

.diagnostic-exchange,
.diagnostic-exchange h2 {
  scroll-margin-top: 1rem;
}

@media (width <= 768px) {
  .diagnostic-layout {
    grid-template-columns: 1fr;
  }

  .diagnostic-nav {
    position: static;
    max-height: none;
  }
}

#diagnostic-log pre {
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 16rem;
  overflow: auto;
}

.diagnostic-jwt-path {
  font-size: 0.875rem;
  color: #5c6f82;
}

.diagnostic-exchange .nav-tabs.nav-tabs-cards {
  flex-wrap: wrap;
  gap: 0.25rem;
  overflow: visible;
  background: transparent;
  border: 0;
}

.diagnostic-exchange .nav-tabs.nav-tabs-cards::after {
  display: none;
}

.diagnostic-exchange .nav-tabs.nav-tabs-cards .nav-item {
  margin: 0;
}

.diagnostic-exchange .nav-tabs.nav-tabs-cards .nav-link {
  margin: 0;
  border: 1px solid hsl(210deg 4% 78%);
  border-radius: 4px;
  background-color: #fff;
  font-size: 0.875rem;
}

.diagnostic-exchange .nav-tabs.nav-tabs-cards .nav-link:hover {
  border-color: #06c;
}

.diagnostic-exchange .nav-tabs.nav-tabs-cards .nav-link.active {
  border-color: #06c;
  border-bottom-color: #06c;
  background-color: #f2f7fc;
}

.diagnostic-exchange .diagnostic-jwt-panes {
  margin-top: 0.5rem;
  border: 1px solid hsl(210deg 4% 78%);
  border-radius: 4px;
  background: #fff;
  padding: 0.75rem 1rem;
}

.diagnostic-jwt-panes {
  border: 1px solid #d9e6f2;
  border-top: 0;
  border-radius: 0 0 4px 4px;
  background: #fff;
  padding: 0.75rem 1rem;
}

.diagnostic-jwt-panes pre {
  max-height: 24rem;
}

.header-title-section {
  background-color: #F2F7FC;
}

.header-title-section .navbar-separator {
  display: inline-block;
  width: 1px;
  height: 32px;
  background-color: #BFCAD5;
  margin: 0 16px;
}

html.it-wallet-html {
  overflow-y: scroll;
  height: auto;
  min-height: 100%;
}

.header-title-section .container.py-3,
.wallet-sections .container {
  padding-left: calc(var(--bs-gutter-x, 2rem) * 1 + 0.5rem);
}

footer {
  margin: 0;
  padding: 1rem 0;
  background-color: #004C99;
  color: white;
  position: relative;
  width: 100%;
  height: auto;
}

.issuer-load-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
}

.issuer-load-row .issuer-url-field,
.issuer-load-row .issuer-trust-field {
  flex: 1 1 18rem;
  min-width: 0;
}

.issuer-load-row .issuer-discovery-field {
  flex: 0 1 18rem;
  min-width: 12rem;
}

.issuer-load-row .issuer-url-field label,
.issuer-load-row .issuer-trust-field label,
.issuer-load-row .issuer-discovery-field label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}

.issuer-load-row .btn {
  height: 2.5rem;
  margin: 0;
  padding: 0 1.5rem;
  border: 0;
  border-radius: 4px;
  line-height: 1.5;
}

.issuer-load-row .form-control,
.issuer-load-row select.issuer-discovery-select {
  height: 2.5rem;
  border: 0;
  border-bottom: 1px solid #5c6f82;
  border-radius: 0;
  background-color: #fff;
  box-shadow: none;
}

.issuer-load-row select.issuer-discovery-select {
  appearance: none;
  padding-right: 2.25rem;
  padding-left: 0.5rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='hsl%280, 0%, 15%%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
  background-size: 16px 12px !important;
}

.issuer-load-row .form-control:focus,
.issuer-load-row select.issuer-discovery-select:focus {
  border-bottom-color: #0066cc;
  outline: 0;
  box-shadow: none;
}

.issuer-discovery-select.discovery-pending,
.issuer-discovery-select option.discovery-pending {
  color: #5c6f82;
}

html.hide-credential-persistence .credential-persistence {
  display: none;
}

.credential-persistence {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  background: #f2f7fc;
  border: 1px solid #d9e6f2;
  border-radius: 4px;
}

.credential-persistence p {
  margin: 0 0 0.35rem;
}

.credential-persistence p:last-child {
  margin-bottom: 0;
}

.credential-persistence .btn {
  flex: 0 0 auto;
  margin: 0;
}

.wallet-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.wallet-footer p {
  max-width: 46rem;
  margin-bottom: 0;
}

.wallet-footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.875rem;
}

footer .wallet-footer-meta a {
  color: #fff;
}

html.it-wallet-html body.it-wallet-body {
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.it-wallet-body > .it-header-wrapper {
  flex-shrink: 0;
  max-width: 100%;
  overflow-x: clip;
}

.it-wallet-body .header-title-section .container.py-3 > .d-flex {
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
}

.it-wallet-body .header-title-section .it-wallet-navbar-logo {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  height: 32px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.it-wallet-navbar-product {
  color: #0066cc;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.it-wallet-body > main.it-wallet-page {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
}

.it-wallet-body > footer {
  flex-shrink: 0;
  width: 100%;
  margin-top: auto;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}

.it-wallet-page {
  min-height: 0;
}

.it-wallet-title-row {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  min-height: 2.75rem;
}

.it-wallet-title-slot {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 0 1 auto;
  max-width: 38%;
  position: relative;
  z-index: 2;
}

.it-wallet-title-slot-start {
  justify-content: flex-start;
}

.it-wallet-title-slot-end {
  justify-content: flex-end;
}

.it-wallet-title-heading {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0 0.25rem;
  text-align: center;
  width: max-content;
  max-width: min(20rem, calc(100% - 9.5rem));
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 700;
  z-index: 1;
}

.it-wallet-title-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wallet-page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--bs-border-color);
}

.wallet-page-heading-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.wallet-page-heading .lead {
  max-width: 48rem;
  font-size: 1.125rem;
  line-height: 1.5;
}

.wallet-page-heading-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.5rem;
}

.it-wallet-title-centered {
  justify-content: center;
}

.it-wallet-title-centered .it-wallet-title-heading {
  position: static;
  transform: none;
  width: auto;
  max-width: 100%;
}

.it-wallet-title-wide .it-wallet-title-slot {
  flex: 0 0 2.75rem;
  max-width: none;
}

.it-wallet-title-wide .it-wallet-title-heading {
  position: static;
  left: auto;
  top: auto;
  transform: none;
  flex: 1 1 auto;
  width: auto;
  max-width: none;
  white-space: nowrap;
}

.it-wallet-icon-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  border: 1px solid #0066CC;
  border-radius: 8px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 1;
}

.it-wallet-icon-btn:focus-visible {
  outline: 2px solid #0066CC;
  outline-offset: 2px;
}

.it-wallet-icon-btn .icon,
.it-wallet-icon-btn img {
  width: 1.15rem;
  height: 1.15rem;
  color: #0066CC;
  fill: currentcolor;
  display: block;
  object-fit: contain;
}

.it-wallet-subtitle {
  color: #17324D;
}

.it-wallet-subtitle a {
  color: #0066cc;
}

.wallet-access-form {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.wallet-access-panel {
  width: min(100%, 42rem);
  border-color: var(--bs-border-color);
  border-radius: var(--bs-border-radius-lg, 0.5rem);
  box-shadow: var(--bs-box-shadow-sm);
}

.wallet-access-form .input-group {
  align-items: flex-end;
}

.wallet-access-form .input-group > .password-field {
  position: relative;
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
}

.wallet-access-form .password-field .form-control {
  width: 100%;
  height: 2.5rem;
  padding-right: 2.75rem;
}

.wallet-access-form .password-icon {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  margin: 0;
  padding: 0 0.75rem;
  border: 0;
  background: transparent;
}

.wallet-access-form .input-group-append .btn {
  height: 2.5rem;
  margin: 0;
  padding: 0 1.5rem;
  border: 0;
  border-radius: 4px;
  line-height: 1.5;
}

#trash-popup,
#presentation-reset-dialog {
  border: 1px solid #BFCAD5;
  border-radius: 0.5rem;
  padding: 1.5rem;
  max-width: 22rem;
  width: calc(100% - 2rem);
}

#presentation-reset-dialog {
  max-width: 36rem;
}

#trash-popup::backdrop,
#presentation-reset-dialog::backdrop {
  background-color: rgb(0 45 90 / 0.45);
}

#trash-popup p,
#presentation-reset-dialog p {
  margin-bottom: 1rem;
}

@media (width <= 575.98px) {
  .wallet-page-heading {
    gap: 0.75rem;
  }

  .wallet-page-heading .h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .wallet-page-heading-actions {
    padding-top: 0.125rem;
  }

  .it-wallet-body .header-title-section .container.py-3,
  .it-wallet-body .wallet-sections .container {
    padding-left: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
    padding-right: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
  }

  .it-wallet-body .header-title-section .it-wallet-navbar-logo {
    max-height: 28px;
    height: 28px;
  }

  header .it-header-slim-wrapper-content {
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap;
  }

  header .it-header-slim-wrapper-content .navbar-brand {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .it-wallet-title-row {
    padding-top: 2rem;
  }
}

.wallet-sections {
  background: #fff;
  border-bottom: 1px solid #d9e6f2;
}

.wallet-sections ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0.75rem 0 0;
  list-style: none;
}

.presentation-section + .presentation-section {
  margin-top: 1.5rem;
}

.presentation-section h6 {
  margin: 0 0 0.75rem;
}

.presentation-fields {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.presentation-credential + .presentation-credential {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #d9e6f2;
}

.presentation-row {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  column-gap: 0.75rem;
  align-items: start;
}

.presentation-label {
  color: #17324d;
  font-weight: 600;
}

.presentation-value {
  overflow-wrap: anywhere;
}

.presentation-values {
  margin: 0;
  padding-left: 1.1rem;
}

.presentation-rp img {
  display: block;
  max-height: 2.5rem;
  width: auto;
  margin-bottom: 0.75rem;
}

.presentation-rp {
  color: #17324d;
}

@media (width <= 576px) {
  .presentation-row {
    grid-template-columns: 1fr;
    row-gap: 0.15rem;
  }
}

.wallet-sections a {
  display: inline-block;
  padding-bottom: 0.65rem;
  color: #0066cc;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

.wallet-sections a[aria-current="page"] {
  color: #17324d;
  border-bottom-color: #0066cc;
}

.credential-status-card,
.credential-status-card h2 {
  scroll-margin-top: 1rem;
}

.credential-status-card + .credential-status-card {
  margin-top: 1.5rem;
}

.credential-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.credential-actions form {
  margin: 0;
}

.credential-actions .credential-remove {
  background-color: #d9364f;
  border-color: #d9364f;
  color: #fff;
}

.credential-actions .credential-remove:hover,
.credential-actions .credential-remove:focus {
  background-color: #b02a37;
  border-color: #b02a37;
  color: #fff;
}

@media (width <= 900px) {
  .it-wallet-page.container {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .it-wallet-title-heading {
    font-weight: 700 !important;
    font-size: 28px !important;
    line-height: 120% !important;
    text-align: center !important;
  }

  .it-wallet-title-wide .it-wallet-title-heading {
    font-size: clamp(1.25rem, 5.5vw, 1.75rem) !important;
  }

  .it-wallet-subtitle {
    font-weight: 400 !important;
    font-size: 20px !important;
    line-height: 32px !important;
    text-align: center !important;
  }
}

#qr-scanner-modal .modal-dialog {
  --bs-modal-width: 800px;
}

#qr-stage {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: none;
  touch-action: none;
}

#qr-canvas {
  display: block;
  width: 100%;
  height: auto;
  min-height: 360px;
  background: #f2f7fc;
  border: 2px solid #0066cc;
  border-radius: 4px;
}

#qr-stage.qr-selecting {
  cursor: crosshair;
}

#qr-selection {
  position: absolute;
  border: 2px solid #06c;
  background: rgb(0 102 204 / 0.16);
  pointer-events: none;
}

.qr-source-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
