.gc-es-panel {
  background: #fff;
  border: 1px solid #d8e0e5;
  border-top: 3px solid var(--link_color, #4f9ba4);
  border-radius: 10px;
  box-sizing: border-box;
  color: var(--link_hover_color, #586282);
  font-family: var(--awb-typography2-font-family, Afacad, Arial, Helvetica, sans-serif);
  font-size: 20px;
  line-height: 1.35;
  margin: 1rem 0;
  max-width: 100%;
  min-width: 0;
  padding: 1.25rem;
  scroll-margin-top: 24px;
}

.gc-es-panel h3 {
  color: #4c709b;
  font-family: inherit;
  font-size: 30px !important;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.18 !important;
  margin: 0 0 10px !important;
}

.gc-es-introduction {
  font-size: 20px;
  line-height: 1.35;
  margin: 0 0 14px !important;
}

.gc-es-panel[aria-busy="true"] {
  opacity: 0.75;
}

.gc-es-documents {
  display: grid;
  gap: 1rem;
  margin-top: 0.9rem;
  min-width: 0;
}

.gc-es-document {
  border-top: 1px solid #e3e7eb;
  min-width: 0;
  padding-top: 0.85rem;
}

.gc-es-document h4 {
  color: #233944;
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0 0 0.55rem;
}

.gc-es-document p {
  font-size: 0.92rem;
  line-height: 1.45;
  margin: 0.4rem 0;
}

.gc-es-viewer {
  border: 1px solid #c8ced5;
  box-sizing: border-box;
  display: block;
  height: clamp(340px, 55vh, 540px);
  margin: 0.6rem 0;
  max-width: 100%;
  width: 100%;
}

.gc-es-signature {
  border: 1px solid #68737d;
  border-radius: 4px;
  box-sizing: border-box;
  display: block;
  height: 125px;
  max-width: 640px;
  touch-action: none;
  width: 100%;
}

.gc-es-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.6rem;
}

.gc-es-status {
  color: #63717a;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.35;
  margin: 12px 0 0 !important;
}

.gc-es-error {
  color: #a12a25;
}

.gc-es-success {
  color: #287343;
}

.gc-es-choice {
  display: block;
  font-size: 0.92rem;
  line-height: 1.4;
  margin: 0.4rem 0;
}

.gc-es-panel .gc-es-primary-button,
.gc-es-panel .gc-es-submit-button,
.gc-es-panel .gc-es-retry-button {
  border-radius: 5px;
  font-family: var(--awb-typography1-font-family, Afacad, Arial, Helvetica, sans-serif);
  font-size: 17px !important;
  font-weight: 700;
  line-height: 1.2 !important;
  min-height: 48px;
  padding: 10px 21px !important;
}

.gc-es-panel .gc-es-primary-button {
  background: #17677c;
  border-color: #17677c;
  color: #fff;
}

.gc-es-panel .gc-es-primary-button:hover,
.gc-es-panel .gc-es-primary-button:focus-visible {
  background: #105569;
  border-color: #105569;
  color: #fff;
}

.gc-es-panel .gc-es-submit-button,
.gc-es-panel .gc-es-retry-button {
  background: #fff;
  border: 1px solid #17677c;
  color: #17677c;
  margin-top: 0.75rem;
}

.gc-es-panel .gc-es-submit-button:hover,
.gc-es-panel .gc-es-submit-button:focus-visible,
.gc-es-panel .gc-es-retry-button:hover,
.gc-es-panel .gc-es-retry-button:focus-visible {
  background: #eff7f9;
  color: #105569;
}

.gc-es-panel button[hidden],
.gc-es-native-submit[hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  .gc-es-panel {
    border-radius: 8px;
    font-size: 20px;
    margin: 0.75rem 0;
    padding: 1rem;
  }

  .gc-es-panel h3 {
    font-size: 26px !important;
  }

  .gc-es-introduction {
    font-size: 20px;
    margin-bottom: 14px;
  }

  .gc-es-status {
    font-size: 20px;
  }

  .gc-es-viewer {
    height: clamp(300px, 45vh, 420px);
  }

  .gc-es-signature {
    height: 110px;
  }

  .gc-es-panel .gc-es-primary-button,
  .gc-es-panel .gc-es-submit-button,
  .gc-es-panel .gc-es-retry-button {
    width: 100%;
  }
}
