#kc-totp-content {
  position: relative;
}

#kc-container #kc-container-wrapper #kc-totp-content {
  width: fit-content;
  word-wrap: break-word;
  white-space: normal;
  min-height: 428px;
  max-height: fit-content;
  background: #fff;
  box-shadow: 0 0 8px 0 rgba(22, 15, 91, 0.16);
  border: 1px solid #C7C4BF;
  border-radius: 10px;
  padding: 28px 40px 24px 40px;
  color: #1A1917;
  display: flex;
  font-weight: 400;
  flex-flow: column;
  margin-top: 30vh;
  margin-bottom: 8vh;
}

#kc-totp-header {
  overflow: visible;
}

#kc-container #kc-container-wrapper #kc-totp-header {
  font-size: 14px;
  color: #1A1917;
  line-height: 24px;
  font-weight: 400;
}

#kc-totp-header-wrapper-strong {
  font-family: "AirPlus Serif", "Verdana", "Arial", sans-serif;
  font-size: 24px;
  font-weight: 400;
  margin-top: 2px;
  color: #000000;
  margin-bottom: 16px;
}

#kc-container #kc-totp-container-wrapper #kc-totp-header strong {
  font-weight: 500;
  display: block;
}

#totp-management {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  align-self: stretch;
}

#totp-add-authenticator {
  display: flex;
  align-self: stretch;
  justify-content: flex-end;
}

#totp-management a {
  color: #4D4A46;
  display: block;
  background: none;
  text-decoration: none;
}

#totp-management a:hover {
  color: #000000;
  background-color: #F0ECEB;
}

#totp-management .device-no-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  #height: 186px;
  padding: 20px 0;
}

.device-no-item .device-no-item-content-text {
  color: #4D4A46;
  margin: 10px 0;
  font-size: 12px;
}

#totp-setup-authenticator {
  width: fit-content;
  min-width: 230px;
}

#totp-management .device-item {
  display: flex;
  width: 100%;
  height: 96px;
  border-radius: 6px;
  border: 1px solid #C7C4BF;
  padding: 24px 4px 24px 24px;
}

#totp-management .device-item:hover {
  color: #000000;
  background-color: #F0ECEB;
}

.device-item .device-item-content {
  display: flex;
  width: 100%;
  height: 48px;
  gap: 16px;
}

.device-item .device-item-content-icon {
  display: flex;
  width: 24px;
  padding: 8px 0;
  justify-content: center;
  align-items: flex-start;
  align-self: stretch;
}

.device-item .device-item-content-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 0 0;
  align-self: stretch;
}

.device-item .device-item-content-text-headline {
  display: flex;
  align-items: center;
  gap: 6px;
  align-self: stretch;
}

.device-item .device-item-content-text-headline-text {
  color: #000;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
}

.device-item .device-item-content-text-headline-paragraph {
  color: #4D4A46;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px; /* 150% */
}

.device-item .device-item-arrow {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  margin: 0 15px;
  padding: 8px 0;
}

#kc-totp-settings {
  width: fit-content;
  max-width: 480px;
  margin-block-start: 5px;
  margin-block-end: 5px;
  padding-inline-start: 16px;
}

#kc-totp-settings > li {
  margin: 15px 0;
}

#kc-totp-settings li p,
#kc-totp-settings li img {
  margin: 0;
  display: flex;
}

#kc-totp-settings li button {
  display: flex;
  height: fit-content;
  width: fit-content;
}

#kc-totp-settings li p button:hover {
  background-color: #F0ECEB;
  border-radius: 10px;
}

#kc-totp-secret-qr-code {
  height: 120px;
  width: 120px;
}

#kc-totp-secret-key {
  margin: 7px 5px;
}

#kc-totp-settings > li ul li {
  list-style-type: disc;
}

.form-input {
  width: 100%;
  margin-bottom: 16px;
}

/* ===============================
   TOTP delete modal
   =============================== */

.kc-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.kc-modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.35);
}

.kc-modal-dialog {
  position: relative;
  background: #fff;
  width: 600px;
  max-width: calc(100% - 32px);
  margin: 35vh auto auto auto;
  padding: 32px;
  box-sizing: border-box;
}

.kc-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 20px;
}

.kc-modal-body p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.kc-modal-divider {
  border: none;
  border-top: 1px solid #d0cec9;
  margin: 24px 0;
}

.kc-modal-actions {
  text-align: center;
  display: flex;
  flex-direction: column; /* stack buttons vertically */
  align-items: center;
}

.kc-modal-actions button {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  text-decoration: underline;
  display: block;
  margin: 12px auto;
}

.kc-modal-remove {
  font-weight: 500;
  color: #000;
}

.kc-modal-cancel {
  color: #000;
}
