.bfg-wrap {
  max-width: 520px;
}

.bfg-title {
  margin: 0 0 10px;
}

.bfg-description {
  margin: 0 0 16px;
}

.bfg-field {
  margin-bottom: 12px;
}

.bfg-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.bfg-field input[type="text"],
.bfg-field input[type="email"],
.bfg-field input[type="tel"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccd0d4;
  border-radius: 6px;
}

.bfg-consents {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.bfg-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.bfg-submit {
  min-width: 180px;
  padding: 10px 18px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: center;
  line-height: 1.25;
}

.bfg-message {
  margin-top: 10px;
  font-weight: 600;
}

.bfg-message.is-success {
  color: #0f8a46;
}

.bfg-message.is-error {
  color: #c62828;
}

.bfg-form.is-loading .bfg-submit {
  opacity: 0.7;
  pointer-events: none;
}

.bfg-notice {
  padding: 10px 12px;
  background: #fff3cd;
  border: 1px solid #ffe69c;
  border-radius: 6px;
}

.bfg-open-popup {
  min-width: 180px;
  padding: 10px 18px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: center;
  line-height: 1.25;
}

.bfg-popup {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 99999;
}

.bfg-popup.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bfg-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.bfg-popup-dialog {
  position: relative;
  z-index: 2;
  max-width: 560px;
  width: calc(100% - 32px);
  margin: 0;
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: #fff;
  border-radius: 10px;
  padding: 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.bfg-popup-close-icon {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 28px;
  line-height: 1;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0 solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  user-select: none;
}

.bfg-popup-close-icon:focus {
  outline: none;
}

.bfg-popup-close-icon i,
.bfg-popup-close-icon svg {
  width: 1em;
  height: 1em;
  display: block;
  pointer-events: none;
}

body.bfg-popup-lock {
  overflow: hidden;
}

.bfg-portal-root {
  position: static;
}
