:root {
  --kyc-student-header-height: 54px;
}

body.kyc-student-shell-ready {
  padding-top: calc(var(--kyc-student-header-height) + 16px) !important;
}

body.kyc-student-shell-ready > a[href="../index.html"][style*="position:fixed"],
body.kyc-student-shell-ready > a.home-btn {
  top: calc(var(--kyc-student-header-height) + 18px) !important;
}

.kyc-student-header,
.kyc-student-header *,
.kyc-student-feedback,
.kyc-student-feedback * {
  box-sizing: border-box;
}

.kyc-student-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2147483000;
  height: var(--kyc-student-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 18px;
  background: #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

.kyc-student-brand {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.kyc-student-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.kyc-student-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.kyc-student-link:hover,
.kyc-student-link:focus-visible {
  color: #dbeafe;
  outline: none;
}

.kyc-student-fab {
  position: fixed;
  left: 30px;
  bottom: 30px;
  z-index: 2147482990;
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  background: #fff;
  color: #111;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.kyc-student-fab:hover,
.kyc-student-fab:focus-visible {
  transform: scale(1.1);
  outline: none;
}

.kyc-student-feedback {
  position: fixed;
  left: 30px;
  bottom: 100px;
  z-index: 2147482991;
  width: min(320px, calc(100vw - 48px));
  max-height: calc(100vh - 126px);
  overflow: auto;
  border: 1px solid #111;
  border-radius: 14px;
  background: #fff;
  color: #111827;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  font-family: Arial, Helvetica, sans-serif;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.kyc-student-feedback.kyc-student-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.kyc-student-widget-header {
  background: #000;
  color: #fff;
  padding: 16px 18px;
  text-align: center;
  font-size: 17px;
  font-weight: 800;
}

.kyc-student-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #e5e7eb;
}

.kyc-student-tab {
  appearance: none;
  border: 0;
  border-bottom: 2px solid transparent;
  background: #f8fafc;
  color: #111;
  cursor: pointer;
  padding: 12px 8px;
  font-size: 14px;
  font-weight: 800;
}

.kyc-student-tab.kyc-student-active {
  background: #fff;
  border-bottom-color: #111;
}

.kyc-student-panel {
  display: none;
  padding: 18px 16px 20px;
}

.kyc-student-panel.kyc-student-active {
  display: block;
}

.kyc-student-note {
  margin: 0 0 14px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.kyc-student-app-label {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #f9fafb;
  color: #111827;
  font-size: 14px;
  line-height: 1.3;
}

.kyc-student-field {
  width: 100%;
  margin-bottom: 12px;
  padding: 11px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font: inherit;
  font-size: 14px;
}

.kyc-student-field:focus {
  border-color: #111827;
  outline: none;
  box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.12);
}

.kyc-student-textarea {
  min-height: 104px;
  resize: vertical;
}

.kyc-student-submit {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: #111;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.kyc-student-submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

.kyc-student-message {
  min-height: 18px;
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
}

.kyc-student-message.kyc-student-success {
  color: #047857;
}

.kyc-student-message.kyc-student-error {
  color: #b91c1c;
}

@media (max-width: 640px) {
  .kyc-student-header {
    padding: 0 12px;
  }

  .kyc-student-brand {
    font-size: 17px;
  }

  .kyc-student-actions {
    gap: 12px;
  }

  .kyc-student-link {
    font-size: 13px;
  }

  .kyc-student-fab {
    left: 24px;
    bottom: 24px;
  }

  .kyc-student-feedback {
    left: 24px;
    right: 24px;
    bottom: 94px;
    width: auto;
  }
}
