/*
 * Keep the native Gravity Forms product-choice fields in the DOM for pricing,
 * conditional logic and submission, but never expose their radio controls in
 * the branded checkout UI. These exact selectors also prevent a render flash.
 */
#field_1_19,
#field_1_20,
#field_2_19,
#field_2_31,
.gform_wrapper .lcdb-native-plan-field {
  position: absolute !important;
  left: -99999px !important;
  top: auto !important;
  display: block !important;
  visibility: visible !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 1px !important;
  min-height: 1px !important;
  max-width: 1px !important;
  max-height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -1 !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

#field_1_19 *,
#field_1_20 *,
#field_2_19 *,
#field_2_31 *,
.gform_wrapper .lcdb-native-plan-field * {
  max-width: 1px !important;
}

/*
 * LegalCover checkout promo field.
 * The visible control uses a 70/30 split: a wider promo input and compact Apply button.
 * Selectors are scoped to the LegalCover checkout summaries so theme and
 * page-builder CSS cannot collapse or distort the controls.
 */
#lc-checkout-summary .lcdb-promo-checkout,
#lc-business-checkout-summary .lcdb-promo-checkout {
  display: grid !important;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr) !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 28px 0 20px !important;
  padding: 16px !important;
  border: 1px solid #dce4ee !important;
  border-radius: 14px !important;
  background: #f8fafc !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  font-family: inherit !important;
}

/* Make the input and button direct items of the parent grid. */
#lc-checkout-summary .lcdb-promo-controls,
#lc-business-checkout-summary .lcdb-promo-controls {
  display: contents !important;
}

#lc-checkout-summary .lcdb-promo-input,
#lc-business-checkout-summary .lcdb-promo-input {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 46px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 1px solid #d8e1ec !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  color: #102b52 !important;
  font-family: inherit !important;
  font-size: 12px !important;
  line-height: 46px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease !important;
}

#lc-checkout-summary .lcdb-promo-input::placeholder,
#lc-business-checkout-summary .lcdb-promo-input::placeholder {
  color: #9aa8bb !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  opacity: 1 !important;
}

#lc-checkout-summary .lcdb-promo-input:hover,
#lc-business-checkout-summary .lcdb-promo-input:hover {
  border-color: #c7d3e1 !important;
}

#lc-checkout-summary .lcdb-promo-input:focus,
#lc-business-checkout-summary .lcdb-promo-input:focus {
  outline: none !important;
  border-color: #f5b418 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(245, 180, 24, 0.15) !important;
}

#lc-checkout-summary .lcdb-promo-apply,
#lc-business-checkout-summary .lcdb-promo-apply {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 46px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 1px solid #f5b418 !important;
  border-radius: 10px !important;
  background: #f5b418 !important;
  box-shadow: 0 8px 18px rgba(245, 180, 24, 0.18) !important;
  box-sizing: border-box !important;
  color: #102b52 !important;
  font-family: inherit !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  text-transform: none !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease !important;
}

#lc-checkout-summary .lcdb-promo-apply:hover,
#lc-business-checkout-summary .lcdb-promo-apply:hover,
#lc-checkout-summary .lcdb-promo-apply:focus-visible,
#lc-business-checkout-summary .lcdb-promo-apply:focus-visible {
  border-color: #e8a807 !important;
  background: #e8a807 !important;
  color: #102b52 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 10px 22px rgba(245, 180, 24, 0.24) !important;
  outline: none !important;
}

#lc-checkout-summary .lcdb-promo-apply:active,
#lc-business-checkout-summary .lcdb-promo-apply:active {
  transform: translateY(0) !important;
}

#lc-checkout-summary .lcdb-promo-apply:disabled,
#lc-business-checkout-summary .lcdb-promo-apply:disabled {
  cursor: wait !important;
  opacity: 0.68 !important;
  transform: none !important;
  box-shadow: none !important;
}

#lc-checkout-summary .lcdb-promo-status,
#lc-business-checkout-summary .lcdb-promo-status {
  display: block !important;
  grid-column: 1 / -1 !important;
  min-height: 0 !important;
  margin: 0 2px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #63748c !important;
  font-family: inherit !important;
  font-size: 11px !important;
  line-height: 1.4 !important;
  font-weight: 600 !important;
  text-align: center !important;
}

#lc-checkout-summary .lcdb-promo-status:empty,
#lc-business-checkout-summary .lcdb-promo-status:empty {
  display: none !important;
}

#lc-checkout-summary .lcdb-promo-status.is-success,
#lc-business-checkout-summary .lcdb-promo-status.is-success {
  color: #177245 !important;
}

#lc-checkout-summary .lcdb-promo-status.is-error,
#lc-business-checkout-summary .lcdb-promo-status.is-error {
  color: #b42318 !important;
}

#lc-checkout-summary .lcdb-promo-status.is-loading,
#lc-business-checkout-summary .lcdb-promo-status.is-loading {
  color: #63748c !important;
}

@media (max-width: 420px) {
  #lc-checkout-summary .lcdb-promo-checkout,
  #lc-business-checkout-summary .lcdb-promo-checkout {
    gap: 8px !important;
    padding: 12px !important;
  }

  #lc-checkout-summary .lcdb-promo-input,
  #lc-business-checkout-summary .lcdb-promo-input,
  #lc-checkout-summary .lcdb-promo-apply,
  #lc-business-checkout-summary .lcdb-promo-apply {
    height: 44px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}
