/* Keep legacy purchase controls out of the tab order while the course/store
   constructs a dialog. The host still reads the verified value on submit. */
.sl-checkout-form input.sl-contact,
.sl-checkout-form label[for="sl-contact"],
.sc-form #sc-contact[name="contact"],
.sc-form label[for="sc-contact"],
.sol-live-form[data-ready="1"] #sol-live-gmail,
.sol-live-form[data-ready="1"] label[for="sol-live-gmail"],
.sol-checkout-google [hidden] {
  display: none !important;
}

form .sol-checkout-google {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 0;
  color: #17271e;
  font: 400 15px/1.45 system-ui, sans-serif;
  text-align: left;
}
.sol-checkout-google-title {
  display: block;
  font-size: 16px;
  line-height: 1.4;
}
form .sol-checkout-google .sol-checkout-google-hint,
form .sol-checkout-google .sol-checkout-google-status {
  margin: 4px 0 8px;
  color: #44534a;
  font: inherit;
  font-size: 14px;
}
form .sol-checkout-google .sol-checkout-google-status:empty { display: none; }
form .sol-checkout-google[data-state="error"] .sol-checkout-google-status,
form .sol-checkout-google[data-state="expired"] .sol-checkout-google-status { color: #882b16; }
.sol-checkout-google-chooser { width: 100%; min-width: 0; max-width: 420px; }
/* These dialogs scroll when the content exceeds their available height.
   Reserve their native scrollbar width while the Google button is loading
   so its placeholder and final face receive the same horizontal space. */
#sol-courses #sc-dialog:has(.sol-checkout-google, .sol-or-course-google),
.sl-checkout:has(.sl-checkout-entry:not([hidden]) .sol-checkout-google) {
  scrollbar-gutter: stable;
}
form .sol-checkout-google-frame {
  display: block;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.sol-checkout-google-account { display: flex; flex-wrap: wrap; gap: 0 14px; align-items: center; }
.sol-checkout-google-email { min-width: 0; overflow-wrap: anywhere; }
form .sol-checkout-google button {
  display: inline-flex;
  width: auto;
  min-height: 44px;
  align-items: center;
  margin: 0;
  padding: 0 2px;
  border: 0;
  border-radius: 3px;
  color: #18503c;
  background: transparent;
  font: 600 14px/1.4 system-ui, sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.sol-checkout-google button:focus-visible,
.sol-checkout-google-frame:focus-visible { outline: 2px solid #146343; outline-offset: 2px; }
form fieldset.sol-checkout-google-gate {
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}
.sol-checkout-google-gate:disabled button[type="submit"] { opacity: .58; cursor: default; }
