/* Profile scanner UI for the standalone PLAMTV sign-in flow. */
.profile-account-row--plamtv-login {
  display: block;
}

.profile-account-tv-login {
  box-sizing: border-box;
  width: 100%;
  min-height: 54px;
  padding: 10px 16px;
  border: 2px solid #ff7300;
  border-radius: 19px;
  background: rgba(10, 25, 47, .3);
  color: #ff9a32;
  font: 900 17px/1.1 inherit;
  cursor: pointer;
}

.profile-account-tv-login:focus-visible,
.profile-plamtv-overlay button:focus-visible {
  outline: 3px solid rgba(255, 154, 50, .65);
  outline-offset: 2px;
}

.profile-plamtv-overlay [hidden] {
  display: none !important;
}

.profile-plamtv-overlay {
  position: fixed;
  z-index: 2147483645;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px));
  background: rgba(1, 9, 19, .78);
  backdrop-filter: blur(8px);
}

.profile-plamtv-sheet {
  position: relative;
  width: min(390px, 100%);
  max-height: min(690px, calc(100dvh - 32px));
  padding: 22px;
  overflow: auto;
  border: 1px solid rgba(151, 205, 255, .3);
  border-radius: 26px;
  background: linear-gradient(160deg, #0d2341, #142f51);
  color: #f7fbff;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .6);
}

.profile-plamtv-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font: 400 30px/34px Arial, sans-serif;
  cursor: pointer;
}

.profile-plamtv-title {
  margin: 4px 42px 8px;
  font-size: 23px;
  line-height: 1.15;
  text-align: center;
}

.profile-plamtv-hint {
  max-width: 310px;
  margin: 0 auto 14px;
  color: #c5d4e8;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.profile-plamtv-camera {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 22px;
  background: #020812;
}

.profile-plamtv-camera video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-plamtv-camera__frame {
  position: absolute;
  inset: 15%;
  border: 3px solid rgba(255, 154, 50, .9);
  border-radius: 20px;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, .2);
  pointer-events: none;
}

.profile-plamtv-confirm h4 {
  margin: 10px 32px 16px;
  font-size: 19px;
  line-height: 1.2;
  text-align: center;
}

.profile-plamtv-confirm dl {
  display: grid;
  gap: 9px;
  margin: 0;
}

.profile-plamtv-confirm dl div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .07);
}

.profile-plamtv-confirm dt {
  color: #9eb0c8;
  font-size: 12px;
  font-weight: 800;
}

.profile-plamtv-confirm dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.profile-plamtv-code {
  display: grid;
  gap: 5px;
  margin: 16px 0 10px;
  text-align: center;
}

.profile-plamtv-code span {
  color: #b9c9df;
  font-size: 12px;
  font-weight: 800;
}

.profile-plamtv-code strong {
  color: #ff9a32;
  font-size: 29px;
  letter-spacing: .11em;
}

.profile-plamtv-warning {
  margin: 0;
  color: #f4c38e;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.profile-plamtv-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: 9px;
  margin-top: 16px;
}

.profile-plamtv-actions button,
.profile-plamtv-retry {
  min-height: 46px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 16px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font: 900 14px/1.1 inherit;
  cursor: pointer;
}

.profile-plamtv-actions [data-plamtv-approve],
.profile-plamtv-retry {
  border-color: #ff7300;
  background: #ff7300;
}

.profile-plamtv-status {
  min-height: 20px;
  margin: 14px 0 0;
  color: #b9c9df;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.profile-plamtv-status[data-kind="error"] {
  color: #ff9b9b;
}

.profile-plamtv-status[data-kind="success"] {
  color: #66dfa0;
}

.profile-plamtv-retry {
  display: block;
  margin: 12px auto 0;
}

.modal--stack:has(.profile-account-popup) .modal__dialog {
  height: 723px;
}
