webform-component.webform-component {
  all: initial;
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 490px;
  min-height: 345px;
  border-radius: 24px;
  background-color: #064771;
  box-shadow: 4px 4px 16px 12px rgba(85, 204, 255, 0.16);
  color: #212529;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}

webform-component.webform-component[stylesheet] {
  display: flex;
  height: auto;
}

webform-component.webform-component:focus,
webform-component.webform-component:focus-within {
  outline: none;
}

webform-component.webform-component *,
webform-component.webform-component *::before,
webform-component.webform-component *::after {
  box-sizing: border-box;
}

/* Neutralize host theme element styles that cannot reach the shadow DOM. */
webform-component.webform-component a,
webform-component.webform-component a:hover {
  overflow-wrap: inherit;
  box-shadow: none;
  transition: initial;
}

webform-component.webform-component img {
  display: inline;
  max-width: none;
}

webform-component.webform-component input {
  max-width: none;
  border-radius: 0;
  appearance: auto;
}

webform-component.webform-component .drupal-cms .field {
  margin: 0;
}

webform-component.webform-component button,
webform-component.webform-component input,
webform-component.webform-component select,
webform-component.webform-component textarea {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

webform-component.webform-component button {
  border-radius: 0;
}

webform-component.webform-component button:not(:disabled) {
  cursor: pointer;
}

webform-component.webform-component img,
webform-component.webform-component svg {
  vertical-align: middle;
}

webform-component.webform-component .d-flex {
  display: flex !important;
}

webform-component.webform-component .d-none,
webform-component.webform-component .hidden {
  display: none !important;
}

webform-component.webform-component.loading .drupal-cms .drupal-container {
  visibility: hidden;
}

webform-component.webform-component .drupal-logo img {
  max-width: 100%;
  height: auto;
}

webform-component.webform-component .drupal-cms .drupal-container .drupal-title {
  color: #fff;
  font-family: "Ubuntu", sans-serif;
  font-size: 36px;
  font-weight: 500;
  line-height: 54px;
  padding-bottom: 20px;
  text-align: left;
}

webform-component.webform-component .drupal-cms .drupal-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
}

webform-component.webform-component .drupal-form > form {
  margin: 20px 0;
}

webform-component.webform-component .dialog-off-canvas-main-canvas,
webform-component.webform-component .dialog-off-canvas-main-canvas > div,
webform-component.webform-component #block-devpanel-starshot-content,
webform-component.webform-component .drupal-cms,
webform-component.webform-component .drupal-container {
  height: 100%;
}

webform-component.webform-component .widget-loading {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  border-radius: 24px;
  background-color: #064771;
  color: #fff;
  text-align: center;
}

webform-component.webform-component .widget-loading .loading-gif .loader {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
  margin: 15px auto;
  border-radius: 50%;
  background: #fff;
  box-shadow: -60px 0 #fff, -30px 0 #fff, 30px 0 #fff, 60px 0 #fff;
  animation: drupalForgeWebformShadowPulse 2s linear infinite;
}

@keyframes drupalForgeWebformShadowPulse {
  20% { background: #fff; box-shadow: -60px 0 #064771, -30px 0 #fff, 30px 0 #fff, 60px 0 #fff; }
  40% { background: #fff; box-shadow: -60px 0 #fff, -30px 0 #064771, 30px 0 #fff, 60px 0 #fff; }
  60% { background: #064771; box-shadow: -60px 0 #fff, -30px 0 #fff, 30px 0 #fff, 60px 0 #fff; }
  80% { background: #fff; box-shadow: -60px 0 #fff, -30px 0 #fff, 30px 0 #064771, 60px 0 #fff; }
  100% { background: #fff; box-shadow: -60px 0 #fff, -30px 0 #fff, 30px 0 #fff, 60px 0 #064771; }
}

webform-component.webform-component .widget-loading .loading-text {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  margin: 15px 0;
  overflow: hidden;
  font-size: 20px;
}

webform-component.webform-component .widget-loading .loading-text span {
  position: absolute;
  opacity: 0;
  animation: drupalForgeWebformFadeInOut 6s linear infinite;
}

@keyframes drupalForgeWebformFadeInOut {
  0% { opacity: 0; }
  8.33% { opacity: 1; }
  16.67% { opacity: 0; }
}

webform-component.webform-component .widget-loading .loading-text span:nth-child(1) { animation-delay: 0s; }
webform-component.webform-component .widget-loading .loading-text span:nth-child(2) { animation-delay: 2s; }
webform-component.webform-component .widget-loading .loading-text span:nth-child(3) { animation-delay: 4s; }

webform-component.webform-component .widget-loading .loading-logo {
  max-width: 200px;
}

webform-component.webform-component .widget-loading .loading-logo img {
  max-width: 100%;
  height: auto;
}

webform-component.webform-component .message {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0 20px;
  color: #fff;
}

/* Equivalent of the Bootstrap 5 popover styles used on Drupal Forge. The
   popover body and button colors come from the embed theme layout.css. */
webform-component.webform-component .popover {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1070;
  display: block;
  max-width: 276px;
  margin: 0;
  border: 1px solid rgba(0, 0, 0, 0.176);
  border-radius: 8px;
  background-color: #fff;
  background-clip: padding-box;
  color: #495057;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.5;
  text-align: start;
  text-decoration: none;
  text-shadow: none;
  text-transform: none;
  white-space: normal;
  word-break: normal;
  word-spacing: normal;
  overflow-wrap: break-word;
}

webform-component.webform-component .popover.fade {
  transition: opacity 0.15s linear;
}

webform-component.webform-component .popover.fade:not(.show) {
  opacity: 0;
}

webform-component.webform-component .popover .popover-arrow {
  position: absolute;
  left: 0;
  display: block;
  width: 16px;
  height: 8px;
}

webform-component.webform-component .popover .popover-arrow::before,
webform-component.webform-component .popover .popover-arrow::after {
  position: absolute;
  display: block;
  border-color: transparent;
  border-style: solid;
  border-width: 0;
  content: "";
}

webform-component.webform-component .bs-popover-auto[data-popper-placement^="top"] > .popover-arrow {
  bottom: -9px;
}

webform-component.webform-component .bs-popover-auto[data-popper-placement^="top"] > .popover-arrow::before,
webform-component.webform-component .bs-popover-auto[data-popper-placement^="top"] > .popover-arrow::after {
  border-width: 8px 8px 0;
}

webform-component.webform-component .bs-popover-auto[data-popper-placement^="top"] > .popover-arrow::before {
  bottom: 0;
  border-top-color: rgba(0, 0, 0, 0.176);
}

webform-component.webform-component .bs-popover-auto[data-popper-placement^="top"] > .popover-arrow::after {
  bottom: 1px;
  border-top-color: #fff;
}

webform-component.webform-component .popover .popover-header {
  margin: 0;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.176);
  border-top-left-radius: 7px;
  border-top-right-radius: 7px;
  background-color: #f0f0f0;
  color: inherit;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: normal;
  line-height: 1.5;
  text-transform: none;
}

webform-component.webform-component .popover .popover-body {
  color: #495057;
}

webform-component.webform-component .popover .btn {
  display: inline-block;
  margin: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  user-select: none;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
