/**
 * Pricing-page checkout modal.
 * Existing Shufflrr tokens are the only color source for this component.
 */
.shuf-checkout-modal {
  --shuf-orange: #FF5300;
  --shuf-orange-dark: #AF3900;
  --shuf-blue: #0B81FF;
  --shuf-blue-mid: #3C83F6;
  --shuf-navy: #1E1B4B;
  --shuf-header: #000130;
  --shuf-body: #4B5563;
  --shuf-border: #D1D5DB;
  --shuf-bg-orange: #FFF8F5;
  --shuf-white: #FFFFFF;
  --shuf-success: #15803D;
  --shuf-error: #DC2626;
  --shuf-error-bg: #FEF2F2;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  color: var(--shuf-navy);
}
.shuf-checkout-modal, .shuf-checkout-modal * { box-sizing: border-box; }
body.shuf-checkout-modal-open { overflow: hidden !important; }
.shuf-checkout-modal[hidden], .shuf-checkout-modal [hidden] { display: none !important; }
.shuf-checkout-modal:not([hidden]) {
  position: fixed; inset: 0; z-index: 100000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.shuf-checkout-modal__backdrop {
  position: absolute; inset: 0;
  background: color-mix(in srgb, var(--shuf-header) 50%, transparent);
}
.shuf-checkout-modal__shell {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  width: min(100%, 420px); max-height: calc(100vh - 40px);
  overflow: hidden;
  border: 1px solid var(--shuf-border); border-radius: 0;
  background: var(--shuf-white);
  box-shadow: 0 18px 48px color-mix(in srgb, var(--shuf-header) 22%, transparent);
}
.shuf-checkout-modal__header {
  position: relative; z-index: 12;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 46px; padding: 9px 14px;
  border-bottom: 2px solid var(--shuf-blue);
  background: var(--shuf-white); color: var(--shuf-navy);
}
.shuf-checkout-modal__header-title {
  margin: 0; color: var(--shuf-navy) !important;
  font-size: 15px !important; font-weight: 700 !important; line-height: 1.2 !important;
}
.shuf-checkout-modal__close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; margin: 0; padding: 0;
  border: 1px solid var(--shuf-border); border-radius: 0;
  background: var(--shuf-white) !important; color: var(--shuf-body) !important;
  font-size: 11px !important; cursor: pointer !important;
}
.shuf-checkout-modal__close:hover, .shuf-checkout-modal__close:focus {
  border-color: var(--shuf-navy); color: var(--shuf-navy); outline: none;
}
.shuf-checkout-modal[data-product="addin"] .shuf-checkout-modal__header {
  border-bottom: 0; background: var(--shuf-header); color: var(--shuf-white);
}
.shuf-checkout-modal[data-product="addin"] .shuf-checkout-modal__header-title { color: var(--shuf-white) !important; }
.shuf-checkout-modal[data-product="addin"] .shuf-checkout-modal__close {
  border-color: color-mix(in srgb, var(--shuf-white) 25%, transparent);
  background: color-mix(in srgb, var(--shuf-white) 16%, transparent);
  color: var(--shuf-white);
}
.shuf-checkout-modal.is-processing .shuf-checkout-modal__close,
.shuf-checkout-modal.is-processing [data-shuf-modal-dismiss] { pointer-events: none; }
.shuf-checkout-modal__body { display: flex; flex-direction: column; overflow: auto; background: var(--shuf-white); }
.shuf-checkout-modal__view[data-view="form"] {
  display: flex; flex-direction: column; gap: 9px;
  padding: 12px 14px 14px;
}
.shuf-checkout-modal__view[hidden] { display: none !important; }
.shuf-checkout-modal__toolbar {
  display: flex; align-items: center; justify-content: space-between;
  /* gap: 10px;  */
  min-height: 28px;
}
.shuf-checkout-modal__product { position: relative; display: inline-flex; align-items: center; min-width: 0; flex: 1 1 auto; }
.shuf-modal-product-trigger {
  display: inline-flex; align-items: center; gap: 7px;
  margin: 0; padding: 0; border: 0 !important;
  background: transparent !important; box-shadow: none !important;
  color: var(--shuf-navy) !important;
  font: inherit; font-size: 15px !important; font-weight: 700 !important;
  line-height: 1.2 !important; cursor: pointer; text-align: left;
}
.shuf-modal-product-trigger:hover, .shuf-modal-product-trigger:focus {
  background: transparent !important; color: var(--shuf-header) !important;
  box-shadow: none !important; outline: none !important;
}
.shuf-modal-product-caret { flex: 0 0 auto; color: var(--shuf-navy); font-size: 10px; margin-top: 2px; transition: transform .2s ease; }
.shuf-checkout-modal__product.is-open .shuf-modal-product-caret { transform: rotate(180deg); }
.shuf-modal-product-menu {
  position: absolute; top: calc(100% + 7px); left: 0; z-index: 40;
  min-width: 180px; margin: 0; padding: 4px 0; list-style: none;
  border: 1px solid var(--shuf-border); border-radius: 0;
  background: var(--shuf-white);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--shuf-header) 14%, transparent);
}
.shuf-modal-product-menu [role="option"] {
  padding: 8px 12px; color: var(--shuf-navy);
  font-size: 12px !important; font-weight: 500 !important; cursor: pointer;
}
.shuf-modal-product-menu [role="option"]:hover,
.shuf-modal-product-menu [role="option"].is-selected { background: var(--shuf-blue); color: var(--shuf-white) !important; }
.shuf-modal-select--product, .shuf-modal-select-label-hidden,
.shuf-modal-field > label:not(.shuf-modal-terms):not(.shuf-modal-select-label) {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}
.shuf-checkout-modal__billing { display: inline-flex; align-items: center; gap: 12px; background: var(--shuf-white); }
.shuf-modal-toggle { display: inline-flex; align-items: center; gap: 5px; }
.shuf-modal-toggle__label {
  color: var(--shuf-body); font-size: 12px; font-weight: 500;
  cursor: pointer; user-select: none; white-space: nowrap;
}
.shuf-modal-toggle__label.is-active { color: var(--shuf-navy) !important; font-weight: 700; }
.shuf-checkout-modal .shuf-modal-toggle__switch {
  position: relative; flex: 0 0 28px; width: 28px; height: 16px;
  margin: 0; padding: 0; border: 0; border-radius: 999px;
  background: var(--shuf-border) !important; box-shadow: none !important; cursor: pointer;
}
.shuf-checkout-modal .shuf-modal-toggle__switch.is-yearly { background: var(--shuf-blue) !important; }
.shuf-modal-toggle__thumb {
  position: absolute; top: 2px; left: 2px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--shuf-white); transition: transform .2s ease; pointer-events: none;
}
.shuf-modal-toggle__switch.is-yearly .shuf-modal-toggle__thumb { transform: translateX(12px); }
.shuf-modal-save-badge {
  display: inline-flex; align-items: center; padding: 3px 5px;
  border-radius: 0; background: var(--shuf-orange); color: var(--shuf-white);
  font-size: 10px; font-weight: 700; line-height: 1.2; white-space: nowrap;
}
.shuf-checkout-modal__summary {
  display: block; margin: 0; padding: 10px 12px;
  border: 1px solid var(--shuf-border); border-left: 3px solid var(--shuf-orange); border-radius: 0;
  background: var(--shuf-bg-orange);
}
.shuf-checkout-modal__summary-icon { display: none; }
.shuf-checkout-modal__summary-price,
.shuf-checkout-modal__summary-note { margin: 0; line-height: 1.45; }
.shuf-checkout-modal__summary-price { color: var(--shuf-navy); font-size: 12.5px; font-weight: 700 !important; }
.shuf-checkout-modal .shuf-checkout-modal__summary-price { color: #081238 !important; font-weight: 600 !important; }
.shuf-checkout-modal .shuf-checkout-modal__summary-price-lead { font-weight: 800; }
.shuf-checkout-modal .shuf-checkout-modal__summary-date { color: var(--shuf-blue); font-weight: 700; }
.shuf-checkout-modal__summary-note { margin-top: 2px; color: var(--shuf-body); font-size: 10.5px; font-weight: 500 !important; }
.shuf-checkout-modal[data-product="addin"] .shuf-checkout-modal__summary { padding-left: 45px; min-height: 78px; position: relative; }
.shuf-checkout-modal[data-product="addin"] .shuf-checkout-modal__summary::before {
  content: "$"; position: absolute; left: 13px; top: 10px;
  display: grid; place-items: center; width: 24px; height: 28px;
  background: var(--shuf-white); color: var(--shuf-orange); font-weight: 700;
}
.shuf-checkout-modal__banner {
  padding: 9px 12px; border-left: 3px solid var(--shuf-error);
  background: var(--shuf-error-bg); color: var(--shuf-error); font-size: 12px; font-weight: 600;
}
.shuf-checkout-modal__form, .shuf-modal-fields, .shuf-modal-payment { display: flex; flex-direction: column; }
.shuf-checkout-modal__form { margin: 0; gap: 9px; }
.shuf-modal-fields { gap: 9px; }
.shuf-modal-payment { gap: 8px; }
.shuf-modal-field { min-width: 0; }
.shuf-modal-field-row { display: grid; grid-template-columns: 1fr; gap: 9px; }
.shuf-checkout-modal[data-product="addin"] .shuf-modal-field-row { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 7px; }
.shuf-modal-select {
  width: 100%; height: 29px; padding: 0 30px 0 12px;
  border: 1px solid var(--shuf-border); border-radius: 0;
  background: var(--shuf-white); color: var(--shuf-navy);
  font: inherit; font-size: 11px; font-weight: 500; appearance: auto;
}
.shuf-modal-select-label { display: block; margin-bottom: 4px; color: var(--shuf-body); font-size: 11px; font-weight: 700; }
#shuf-modal-blob-tier-wrap, #shuf-modal-addin-tier-wrap { display: grid; grid-template-columns: 1fr; }
#shuf-modal-blob-tier { border-color: var(--shuf-blue); background: var(--shuf-white); }
.shuf-checkout-modal input[type="text"],
.shuf-checkout-modal input[type="email"],
.shuf-checkout-modal input[type="password"],
.shuf-checkout-modal input[type="tel"] {
  width: 100%; height: 42px; margin: 0; padding: 0 12px;
  border: 1px solid var(--shuf-border); border-radius: 0;
  background: var(--shuf-white); color: var(--shuf-navy);
  font: inherit; font-size: 13px; font-weight: 500;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.shuf-checkout-modal input:hover { border-color: var(--shuf-blue); }
.shuf-checkout-modal input:focus {
  outline: none; border-color: var(--shuf-blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--shuf-blue) 14%, transparent);
}
.shuf-checkout-modal input::placeholder { color: var(--shuf-body); opacity: .55; font-weight: 400; }
.shuf-checkout-modal input.shuf-field-error {
  border-color: var(--shuf-error) !important; background: var(--shuf-error-bg) !important; box-shadow: none !important;
}
.shuf-checkout-modal input.shuf-field-success { border-color: var(--shuf-success) !important; }
.shuf-modal-site-wrap, .shuf-modal-pw-wrap { position: relative; display: flex; align-items: center; }
.shuf-modal-site-wrap input { padding-right: 105px; }
.shuf-modal-site-suffix {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--shuf-body); font-size: 12px; font-weight: 500; pointer-events: none;
}
.shuf-modal-input-status { position: absolute; right: 105px; font-size: 10px; }
.shuf-modal-input-status.ok { color: var(--shuf-success); }
.shuf-modal-input-status.taken, .shuf-modal-input-status.error { color: var(--shuf-error); }
.shuf-modal-input-status.checking { color: var(--shuf-body); }
.shuf-modal-pw-wrap input { padding-right: 40px; }
.shuf-checkout-modal .shuf-modal-pw-toggle {
  position: absolute; right: 6px; display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; padding: 0; border: 0; border-radius: 0;
  background: transparent !important; color: var(--shuf-body) !important; box-shadow: none !important; cursor: pointer;
}
.shuf-modal-field-hint { display: none; margin-top: 3px; color: var(--shuf-body); font-size: 10.5px; font-weight: 500; }
.shuf-modal-field-hint.error, .shuf-modal-field-hint.success { display: block; }
.shuf-modal-field-hint.error { color: var(--shuf-error); }
.shuf-modal-field-hint.success { color: var(--shuf-success); }
.shuf-checkout-modal .shuf-phone-field { height: 42px; border-color: var(--shuf-border); border-radius: 0; background: var(--shuf-white); }
.shuf-checkout-modal .shuf-phone-field:focus-within,
.shuf-checkout-modal .shuf-phone-field.is-open {
  border-color: var(--shuf-blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--shuf-blue) 14%, transparent);
}
.shuf-checkout-modal .shuf-phone-field:has(.shuf-field-error) { border-color: var(--shuf-error); background: var(--shuf-error-bg); box-shadow: none; }
.shuf-checkout-modal .shuf-phone-field__country {
  height: 40px; padding: 0 9px; border-right: 1px solid var(--shuf-border);
  background: transparent !important; color: var(--shuf-body) !important;
  font-family: inherit; font-size: 12px;
}
.shuf-checkout-modal .shuf-phone-field__input {
  height: 40px !important; background: transparent !important; color: var(--shuf-navy) !important;
  font-family: inherit !important; font-size: 13px !important;
}
.shuf-checkout-modal .shuf-phone-field__dropdown {
  border-color: var(--shuf-border); border-radius: 0; background: var(--shuf-white);
}
.shuf-checkout-modal .shuf-phone-field__search {
  height: 42px !important;
  width: 100% !important;
  margin: 0 !important;
}
.shuf-modal-terms {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 3px 1px 2px; color: var(--shuf-body);
  font-size: 12px; font-weight: 400; line-height: 1.5; cursor: pointer;
}
.shuf-checkout-modal .shuf-modal-terms input[type="checkbox"] {
  width: 14px; height: 14px; flex: 0 0 14px; margin: 2px 0 0;
  border: 1px solid var(--shuf-border); border-radius: 0;
  accent-color: var(--shuf-orange); box-shadow: none;
}
.shuf-modal-terms a { color: var(--shuf-navy); font-weight: 700; text-decoration: underline; }
.shuf-modal-email-note {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 0; padding: 9px 12px;
  border-left: 2px solid var(--shuf-orange); border-radius: 0;
  background: var(--shuf-bg-orange); color: var(--shuf-body);
  font-size: 10.5px; font-weight: 500; line-height: 1.45;
}
.shuf-modal-email-note i { margin-top: 2px; color: var(--shuf-orange); }
.shuf-modal-payment__title { margin: 0; color: var(--shuf-navy); font-size: 12px; font-weight: 700; }
.shuf-modal-card-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 6px; }
.shuf-modal-stripe-el { height: 42px; padding: 0 12px; border: 1px solid var(--shuf-border); background: var(--shuf-white); }
.shuf-checkout-modal__footer { display: flex; align-items: center; gap: 8px; }
.shuf-checkout-modal .shuf-modal-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; min-height: 44px; margin: 0; padding: 0 18px;
  border: 1px solid transparent; border-radius: 0 !important;
  font-family: inherit !important; font-size: 13.5px !important; font-weight: 700 !important;
  box-shadow: none !important; cursor: pointer;
}
.shuf-checkout-modal .shuf-modal-btn--primary,
.shuf-checkout-modal .shuf-modal-btn--primary:not(:disabled) {
  border-color: var(--shuf-orange) !important; background: var(--shuf-orange) !important;
  color: var(--shuf-white) !important;
}
.shuf-checkout-modal .shuf-modal-btn--primary:not(:disabled):hover,
.shuf-checkout-modal .shuf-modal-btn--primary:not(:disabled):focus {
  border-color: var(--shuf-orange-dark) !important; background: var(--shuf-orange-dark) !important; outline: none;
}
.shuf-checkout-modal .shuf-modal-btn--primary:disabled {
  border-color: var(--shuf-border) !important; background: var(--shuf-border) !important;
  color: var(--shuf-white) !important; cursor: not-allowed;
}
.shuf-checkout-modal[data-product="addin"] .shuf-modal-btn--primary:not(:disabled) {
  border-color: var(--shuf-blue) !important; background: var(--shuf-blue) !important;
}
.shuf-modal-btn__spinner { display: none; width: 14px; height: 14px; border: 2px solid color-mix(in srgb, var(--shuf-white) 45%, transparent); border-top-color: var(--shuf-white); border-radius: 50%; animation: shuf-modal-spin .7s linear infinite; }
.shuf-modal-btn.is-busy .shuf-modal-btn__label { display: none; }
.shuf-modal-btn.is-busy .shuf-modal-btn__spinner { display: block; }
.shuf-checkout-modal__cancel { margin: 1px 0 0; color: var(--shuf-body); font-size: 10.5px; font-weight: 400; text-align: center; }
.shuf-checkout-modal[data-product="addin"] .shuf-checkout-modal__cancel { display: none !important; }
.shuf-checkout-modal__loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 300px; padding: 40px 24px; gap: 14px; text-align: center;
}
.shuf-modal-spinner {
  width: 32px; height: 32px; border: 3px solid var(--shuf-border);
  border-top-color: var(--shuf-orange); border-radius: 50%; animation: shuf-modal-spin .8s linear infinite;
}
@keyframes shuf-modal-spin { to { transform: rotate(360deg); } }
.shuf-checkout-modal__loading-text { margin: 0; color: var(--shuf-navy); font-size: 13px; font-weight: 700; }
.shuf-checkout-modal__result { padding: 6px 10px 16px; }
.shuf-checkout-modal .shuf-thank-you-screen { min-height: 300px; padding: 12px 8px 8px !important; }
.shuf-checkout-modal .shuf-thank-you-card { width: 100% !important; padding: 16px 8px 8px !important; box-shadow: none !important; }
.shuf-checkout-modal .shuf-thank-you-download-btn { width: auto !important; min-width: 180px !important; max-width: max-content !important; margin-inline: auto !important; }
.shuf-checkout-modal .shuf-thank-you-try-card,
.shuf-checkout-modal .shuf-thank-you-home-link,
.shuf-checkout-modal .shuf-thank-you-try-again { display: none !important; }
.shuf-checkout-modal .shuf-thank-you-try-again-inline {
  width: 100% !important; min-height: 42px !important; border: 0 !important; border-radius: 0 !important;
  background: var(--shuf-blue) !important; color: var(--shuf-white) !important;
}
@media (max-width: 480px) {
  .shuf-checkout-modal:not([hidden]) { padding: 0; align-items: stretch; }
  .shuf-checkout-modal__shell { width: 100%; height: 100%; max-height: 100vh; border-inline: 0; }
  .shuf-checkout-modal__view[data-view="form"] { padding-inline: 14px; }
  .shuf-checkout-modal__toolbar { flex-wrap: wrap; }
  .shuf-checkout-modal__billing { margin-left: auto; }
  .shuf-checkout-modal[data-product="addin"] .shuf-modal-field-row,
  .shuf-modal-card-row { grid-template-columns: 1fr; }
}

/* Cloud and Blob use the toolbar itself as the single top header row. */
.shuf-checkout-modal:not([data-product="addin"]) .shuf-checkout-modal__header {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 40px;
  min-height: 46px;
  padding: 11px 14px 11px 0;
  border: 0;
  background: transparent;
  pointer-events: none;
}
.shuf-checkout-modal:not([data-product="addin"]) .shuf-checkout-modal__header-title { display: none; }
.shuf-checkout-modal:not([data-product="addin"]) .shuf-checkout-modal__close { pointer-events: auto; }
.shuf-checkout-modal:not([data-product="addin"]) .shuf-checkout-modal__view[data-view="form"] { padding-top: 0; }
.shuf-checkout-modal:not([data-product="addin"]) .shuf-checkout-modal__toolbar {
  min-height: 65px;
  margin: 0 -14px 0;
  padding: 0 20px 0 14px;
  border-bottom: 1px solid var(--shuf-blue);
}
.shuf-modal-product-icon { font-size: 14px; color: var(--shuf-navy); }
.shuf-checkout-modal[data-product="addin"] .shuf-modal-product-icon { display: none; }
.shuf-checkout-modal .shuf-modal-terms input[type="checkbox"]:checked {
  border-color: var(--shuf-orange);
  background: var(--shuf-orange);
}
.shuf-checkout-modal .shuf-modal-terms input[type="checkbox"]:checked::after {
  border-color: var(--shuf-white);
}


/* Final shared layout rules for Cloud, Blob, and Add-in. */
.shuf-checkout-modal__footer {
  display: flex !important;
  width: 100% !important;
}
.shuf-checkout-modal__footer .shuf-modal-btn,
.shuf-checkout-modal__footer #shuf-modal-submit,
.shuf-checkout-modal__footer .secondary-btn {
  display: inline-flex !important;
  flex: 1 1 100% !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}
.shuf-checkout-modal[data-product="addin"] .shuf-modal-field-row,
.shuf-checkout-modal[data-product="blob"] .shuf-modal-field-row {
  grid-template-columns: 1fr;
  gap: 9px;
}
.shuf-checkout-modal .shuf-modal-terms input[type="checkbox"] {
  position: relative;
  display: block;
  appearance: none;
  -webkit-appearance: none;
  width: 14px !important;
  height: 14px !important;
  min-width: 14px;
  padding: 0 !important;
  border: 1px solid var(--shuf-border) !important;
  border-radius: 0 !important;
  background: var(--shuf-white) !important;
}
.shuf-checkout-modal .shuf-modal-terms input[type="checkbox"]:checked {
  border-color: var(--shuf-orange) !important;
  background: var(--shuf-orange) !important;
}
.shuf-checkout-modal .shuf-modal-terms input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid var(--shuf-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}


/* All products share one toolbar header; the close button stays on that row. */
.shuf-checkout-modal .shuf-checkout-modal__header {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 30;
  width: 40px;
  min-height: 46px;
  padding: 11px 14px 11px 0;
  border: 0;
  background: transparent;
  color: var(--shuf-navy);
  pointer-events: none;
}
.shuf-checkout-modal .shuf-checkout-modal__header-title {
  display: none;
}
.shuf-checkout-modal .shuf-checkout-modal__close,
.shuf-checkout-modal[data-product="addin"] .shuf-checkout-modal__close {
  border-color: var(--shuf-border);
  background: var(--shuf-white);
  color: var(--shuf-body);
  pointer-events: auto;
}
.shuf-checkout-modal .shuf-checkout-modal__close:hover,
.shuf-checkout-modal[data-product="addin"] .shuf-checkout-modal__close:hover {
  border-color: var(--shuf-navy);
  background: var(--shuf-white);
  color: var(--shuf-navy);
}
.shuf-checkout-modal .shuf-checkout-modal__view[data-view="form"] {
  padding-top: 0;
}
.shuf-checkout-modal .shuf-checkout-modal__toolbar {
  min-height: 46px;
  margin: 0 -14px 3px;
  padding: 0 48px 0 14px;
  border-bottom: 2px solid var(--shuf-blue);
}


/* Add-in polish: clean info panel, full-width plan control, roomier shared header. */
.shuf-checkout-modal .shuf-checkout-modal__header,
.shuf-checkout-modal[data-product="addin"] .shuf-checkout-modal__header {
  min-height: 52px;
  width: 42px;
  padding: 14px 14px 14px 0;
  background: transparent !important;
}
.shuf-checkout-modal .shuf-checkout-modal__toolbar {
  min-height: 52px;
  padding-right: 50px;
}
.shuf-checkout-modal[data-product="addin"] .shuf-checkout-modal__summary {
  min-height: 0;
  padding: 10px 12px;
}
.shuf-checkout-modal[data-product="addin"] .shuf-checkout-modal__summary::before {
  content: none;
  display: none;
}
.shuf-checkout-modal #shuf-modal-addin-tier-wrap,
.shuf-checkout-modal #shuf-modal-blob-tier-wrap,
.shuf-checkout-modal #shuf-modal-addin-tier,
.shuf-checkout-modal #shuf-modal-blob-tier {
  width: 100% !important;
  max-width: none !important;
}


/* Unified header spacing and field alignment for every product. */
.shuf-checkout-modal {
  --shuf-modal-gutter: 14px;
}
.shuf-checkout-modal .shuf-checkout-modal__view[data-view="form"] {
  padding-right: var(--shuf-modal-gutter);
  padding-bottom: var(--shuf-modal-gutter);
  padding-left: var(--shuf-modal-gutter);
}
.shuf-checkout-modal .shuf-checkout-modal__toolbar {
  min-height: 52px;
  margin-right: calc(var(--shuf-modal-gutter) * -1);
  margin-left: calc(var(--shuf-modal-gutter) * -1);
  padding-right: 50px;
  padding-left: var(--shuf-modal-gutter);
}
.shuf-checkout-modal .shuf-modal-product-icon {
  display: none !important;
}
.shuf-checkout-modal__summary,
.shuf-checkout-modal__banner,
.shuf-checkout-modal__form,
.shuf-checkout-modal__footer,
.shuf-checkout-modal .shuf-modal-fields,
.shuf-checkout-modal .shuf-modal-field,
.shuf-checkout-modal #shuf-modal-addin-tier-wrap,
.shuf-checkout-modal #shuf-modal-blob-tier-wrap {
  width: 100%;
  max-width: 100%;
}


/* Stable modal height and input-matched plan selectors. */
.shuf-checkout-modal__shell {
  height: min(560px, calc(100vh - 40px));
}
.shuf-checkout-modal__body {
  flex: 1 1 auto;
  min-height: 0;
}
.shuf-checkout-modal__view[data-view="form"] {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}
.shuf-checkout-modal__footer {
  margin-top: auto !important;
}
.shuf-checkout-modal .shuf-modal-select:not(.shuf-modal-select--product),
.shuf-checkout-modal #shuf-modal-addin-tier,
.shuf-checkout-modal #shuf-modal-blob-tier {
  height: 42px !important;
  min-height: 42px !important;
  padding-top: 0;
  padding-bottom: 0;
  font-size: 13px;
}
@media (max-width: 480px) {
  .shuf-checkout-modal__shell {
    height: 100%;
  }
}


/* Content-sized modal; scroll only when content exceeds the viewport. */
.shuf-checkout-modal__shell {
  height: auto;
  max-height: calc(100vh - 40px);
}
.shuf-checkout-modal__body {
  flex: 0 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}
.shuf-checkout-modal__view[data-view="form"] {
  flex: 0 0 auto;
  min-height: auto;
  overflow: visible;
}
.shuf-checkout-modal__footer {
  margin-top: 0 !important;
}
@media (max-width: 480px) {
  .shuf-checkout-modal__shell {
    height: auto;
    max-height: 100vh;
  }
}


/* Compact stable card: plan changes scroll internally instead of resizing. */
.shuf-checkout-modal__shell {
  height: min(480px, calc(100vh - 40px));
  max-height: calc(100vh - 40px);
}
.shuf-checkout-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.shuf-checkout-modal__view[data-view="form"] {
  min-height: 100%;
}
.shuf-modal-product-menu [role="option"] {
  padding-top: 6px;
  padding-bottom: 6px;
  font-size: 11px !important;
  line-height: 1.25 !important;
}
.shuf-checkout-modal .shuf-phone-field__dropdown {
  max-height: 200px;
}
.shuf-checkout-modal .shuf-phone-field__list li {
  padding-top: 5px;
  padding-bottom: 5px;
  font-size: 11px;
  line-height: 1.25;
}
@media (max-width: 480px) {
  .shuf-checkout-modal__shell {
    height: min(480px, 100vh);
    max-height: 100vh;
  }
}


/* Enforce the compact cap: larger product forms must scroll, never grow the card. */
.shuf-checkout-modal__shell {
  flex: 0 1 480px;
  width: min(100%, 420px);
  height: 480px !important;
  min-height: 0 !important;
  max-height: calc(100vh - 40px) !important;
}
.shuf-checkout-modal__body {
  flex: 1 1 0;
  height: 100%;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: scroll !important;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--shuf-border) transparent;
}
.shuf-checkout-modal__view[data-view="form"] {
  flex: 0 0 auto;
  height: auto;
  min-height: 0 !important;
  overflow: visible;
}
.shuf-checkout-modal__body::-webkit-scrollbar {
  width: 7px;
}
.shuf-checkout-modal__body::-webkit-scrollbar-track {
  background: transparent;
}
.shuf-checkout-modal__body::-webkit-scrollbar-thumb {
  background: var(--shuf-border);
}
@media (max-width: 480px) {
  .shuf-checkout-modal__shell {
    flex-basis: auto;
    width: 100%;
    height: min(480px, 100vh) !important;
    max-height: 100vh !important;
  }
}


/* Softer information tint and equal content spacing for every product. */
.shuf-checkout-modal {
  --shuf-modal-gutter: 20px;
  --shuf-modal-section-gap: 10px;
}
.shuf-checkout-modal .shuf-checkout-modal__view[data-view="form"] {
  gap: var(--shuf-modal-section-gap);
  padding-right: var(--shuf-modal-gutter);
  padding-bottom: var(--shuf-modal-gutter);
  padding-left: var(--shuf-modal-gutter);
}
.shuf-checkout-modal .shuf-checkout-modal__toolbar {
  margin-right: calc(var(--shuf-modal-gutter) * -1);
  margin-left: calc(var(--shuf-modal-gutter) * -1);
  padding-right: 50px;
  padding-left: var(--shuf-modal-gutter);
}
.shuf-checkout-modal .shuf-checkout-modal__summary,
.shuf-checkout-modal[data-product="addin"] .shuf-checkout-modal__summary,
.shuf-checkout-modal[data-product="blob"] .shuf-checkout-modal__summary {
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 8px 11px;
  background: color-mix(in srgb, var(--shuf-orange) 5%, var(--shuf-white));
}
.shuf-checkout-modal .shuf-checkout-modal__summary-price {
  font-size: 12px;
  line-height: 1.35;
}
.shuf-checkout-modal .shuf-checkout-modal__summary-note {
  margin-top: 1px;
  font-size: 10px;
  line-height: 1.35;
}
.shuf-checkout-modal .shuf-checkout-modal__form,
.shuf-checkout-modal .shuf-modal-fields {
  gap: var(--shuf-modal-section-gap);
}
.shuf-checkout-modal .shuf-modal-field-row {
  gap: var(--shuf-modal-section-gap);
}
.shuf-checkout-modal .shuf-modal-email-note {
  padding: 8px 11px;
  background: color-mix(in srgb, var(--shuf-orange) 5%, var(--shuf-white));
}


/* Narrower card, balanced header columns, and roomier form-field rhythm. */
.shuf-checkout-modal__shell {
  width: min(100%, 450px);
}
.shuf-checkout-modal .shuf-checkout-modal__toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 34px;
  column-gap: 12px;
  align-items: center;
  justify-content: initial;
  padding-right: var(--shuf-modal-gutter);
}
.shuf-checkout-modal .shuf-checkout-modal__toolbar::after {
  content: "";
  display: block;
  width: 34px;
  height: 1px;
}
.shuf-checkout-modal .shuf-checkout-modal__product {
  width: 100%;
  min-width: 0;
}
.shuf-checkout-modal .shuf-checkout-modal__billing {
  justify-self: center;
}
.shuf-checkout-modal .shuf-checkout-modal__header,
.shuf-checkout-modal[data-product="addin"] .shuf-checkout-modal__header {
  right: 6px;
}
.shuf-checkout-modal {
  --shuf-modal-section-gap: 14px;
}
.shuf-checkout-modal .shuf-modal-fields,
.shuf-checkout-modal .shuf-modal-field-row,
.shuf-checkout-modal[data-product="addin"] .shuf-modal-field-row,
.shuf-checkout-modal[data-product="blob"] .shuf-modal-field-row {
  gap: var(--shuf-modal-section-gap);
}
.shuf-checkout-modal .shuf-checkout-modal__form {
  gap: var(--shuf-modal-section-gap);
}
@media (max-width: 480px) {
  .shuf-checkout-modal__shell {
    width: 100%;
  }
  .shuf-checkout-modal .shuf-checkout-modal__toolbar {
    grid-template-columns: minmax(0, 1fr) auto 30px;
    column-gap: 7px;
  }
}


/* Let every checkout modal grow to its full content height; only the outer overlay may scroll. */
.shuf-checkout-modal:not([hidden]) {
  align-items: flex-start;
  overflow-x: hidden;
  overflow-y: auto;
}
.shuf-checkout-modal .shuf-checkout-modal__shell {
  flex: 0 0 auto;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible;
}
.shuf-checkout-modal .shuf-checkout-modal__body {
  flex: 0 0 auto;
  height: auto;
  min-height: 0 !important;
  overflow: visible !important;
  scrollbar-gutter: auto;
}
.shuf-checkout-modal .shuf-checkout-modal__view[data-view="form"] {
  flex: 0 0 auto;
  height: auto;
  min-height: 0 !important;
  overflow: visible;
}


/* Keep the product controls above the scrolling form and carry the divider edge to edge. */
.shuf-checkout-modal .shuf-checkout-modal__toolbar {
  position: sticky;
  top: 0;
  z-index: 25;
  background: var(--shuf-white);
  border-bottom: 0 !important;
}
.shuf-checkout-modal .shuf-checkout-modal__toolbar::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--shuf-blue);
}


/* Valid and active fields use Shufflrr blue, never green. */
.shuf-checkout-modal input.shuf-field-success,
.shuf-checkout-modal input.shuf-field-success:hover,
.shuf-checkout-modal input.shuf-field-success:focus {
  border-color: var(--shuf-blue) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--shuf-blue) 14%, transparent) !important;
}
.shuf-checkout-modal .shuf-phone-field:has(.shuf-field-success),
.shuf-checkout-modal .shuf-phone-field:has(.shuf-field-success):hover,
.shuf-checkout-modal .shuf-phone-field:has(.shuf-field-success):focus-within {
  border-color: var(--shuf-blue) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--shuf-blue) 14%, transparent) !important;
}
.shuf-checkout-modal .shuf-modal-field-hint.success,
.shuf-checkout-modal .shuf-modal-input-status.ok {
  color: var(--shuf-blue);
}


/* Roomier modal proportions with a stronger header and compact supporting copy. */
.shuf-checkout-modal .shuf-checkout-modal__shell {
  width: min(100%, 480px);
}
.shuf-checkout-modal .shuf-modal-product-trigger {
  font-size: 18px !important;
  font-weight: 800 !important;
}
.shuf-checkout-modal .shuf-checkout-modal__view[data-view="form"] {
  font-size: 12px;
}
.shuf-checkout-modal input[type="text"],
.shuf-checkout-modal input[type="email"],
.shuf-checkout-modal input[type="password"],
.shuf-checkout-modal input[type="tel"],
.shuf-checkout-modal .shuf-phone-field,
.shuf-checkout-modal .shuf-phone-field__search,
.shuf-checkout-modal .shuf-modal-select:not(.shuf-modal-select--product),
.shuf-checkout-modal #shuf-modal-addin-tier,
.shuf-checkout-modal #shuf-modal-blob-tier,
.shuf-checkout-modal .shuf-modal-stripe-el {
  height: 38px !important;
  min-height: 38px !important;
}
.shuf-checkout-modal .shuf-modal-btn--primary:disabled {
  border-color: color-mix(in srgb, var(--shuf-orange) 65%, var(--shuf-body)) !important;
  background: color-mix(in srgb, var(--shuf-orange) 65%, var(--shuf-body)) !important;
  color: color-mix(in srgb, var(--shuf-white) 82%, transparent) !important;
  cursor: not-allowed;
}


/* Add-in uses the same orange primary CTA as Cloud and Blob. */
.shuf-checkout-modal[data-product="addin"] .shuf-modal-btn--primary:not(:disabled) {
  border-color: var(--shuf-orange) !important;
  background: var(--shuf-orange) !important;
  color: var(--shuf-white) !important;
}
.shuf-checkout-modal[data-product="addin"] .shuf-modal-btn--primary:not(:disabled):hover,
.shuf-checkout-modal[data-product="addin"] .shuf-modal-btn--primary:not(:disabled):focus {
  border-color: var(--shuf-orange-dark) !important;
  background: var(--shuf-orange-dark) !important;
  color: var(--shuf-white) !important;
}


/* Shared clean visual system for Cloud, Blob, and PowerPoint Add-in. */
.shuf-checkout-modal .shuf-checkout-modal__shell {
  border-color: #c8d0dc;
  background: var(--shuf-white);
  box-shadow: 0 20px 55px color-mix(in srgb, var(--shuf-header) 28%, transparent);
}
.shuf-checkout-modal .shuf-checkout-modal__toolbar {
  min-height: 56px;
  background: #f8fbff;
}
.shuf-checkout-modal .shuf-checkout-modal__toolbar::before {
  height: 1px;
}
.shuf-checkout-modal .shuf-checkout-modal__view[data-view="form"] {
  gap: 12px;
  padding-right: 20px;
  padding-bottom: 22px;
  padding-left: 20px;
}
.shuf-checkout-modal .shuf-checkout-modal__summary,
.shuf-checkout-modal[data-product="addin"] .shuf-checkout-modal__summary,
.shuf-checkout-modal[data-product="blob"] .shuf-checkout-modal__summary {
  padding: 10px 12px;
  border-color: #d6dce5;
  border-left-color: var(--shuf-orange);
  background: color-mix(in srgb, var(--shuf-orange) 5%, var(--shuf-white));
}
.shuf-checkout-modal .shuf-modal-fields,
.shuf-checkout-modal .shuf-modal-field-row,
.shuf-checkout-modal .shuf-checkout-modal__form {
  gap: 12px;
}
.shuf-checkout-modal .shuf-modal-toggle__switch.is-yearly {
  background: var(--shuf-orange) !important;
}


/* Consistent breathing room and close-button indentation across every product. */
.shuf-checkout-modal .shuf-checkout-modal__view[data-view="form"] {
  gap: 16px;
}
.shuf-checkout-modal .shuf-modal-fields,
.shuf-checkout-modal .shuf-modal-field-row,
.shuf-checkout-modal .shuf-checkout-modal__form {
  gap: 14px;
}
.shuf-checkout-modal .shuf-checkout-modal__header,
.shuf-checkout-modal[data-product="addin"] .shuf-checkout-modal__header {
  right: 20px;
  width: 24px;
  min-height: 56px;
  padding: 16px 0;
}


/* Edge-to-edge header stripe and equal content gutters for every checkout plan. */
.shuf-checkout-modal {
  --shuf-modal-gutter: 20px;
}
.shuf-checkout-modal .shuf-checkout-modal__shell::before { content: none; }
.shuf-checkout-modal .shuf-checkout-modal__toolbar::before {
  content: "";
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--shuf-blue);
  box-shadow: 0 4px 10px color-mix(in srgb, var(--shuf-blue) 16%, transparent);
  pointer-events: none;
}
.shuf-checkout-modal .shuf-checkout-modal__toolbar {
  padding-right: var(--shuf-modal-gutter);
  padding-left: var(--shuf-modal-gutter);
}
.shuf-checkout-modal .shuf-checkout-modal__view[data-view="form"] {
  padding-right: var(--shuf-modal-gutter);
  padding-left: var(--shuf-modal-gutter);
}
.shuf-checkout-modal .shuf-checkout-modal__summary,
.shuf-checkout-modal .shuf-checkout-modal__form,
.shuf-checkout-modal .shuf-checkout-modal__footer,
.shuf-checkout-modal .shuf-modal-fields,
.shuf-checkout-modal .shuf-modal-field {
  width: 100%;
  max-width: 100%;
}


/* More breathable section and field rhythm, with a truly edge-to-edge header rule. */
.shuf-checkout-modal .shuf-checkout-modal__view[data-view="form"] {
  gap: 20px;
}
.shuf-checkout-modal .shuf-modal-fields,
.shuf-checkout-modal .shuf-modal-field-row,
.shuf-checkout-modal .shuf-checkout-modal__form {
  gap: 18px;
}
.shuf-checkout-modal .shuf-checkout-modal__toolbar::before {
  right: 0;
  left: 0;
}


/* Explicit vertical breathing room for every modal section and field. */
.shuf-checkout-modal .shuf-checkout-modal__toolbar {
  min-height: 64px;
}
.shuf-checkout-modal .shuf-checkout-modal__header,
.shuf-checkout-modal[data-product="addin"] .shuf-checkout-modal__header {
  min-height: 64px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.shuf-checkout-modal .shuf-checkout-modal__view[data-view="form"] {
  gap: 24px !important;
  padding-bottom: 30px;
}
.shuf-checkout-modal .shuf-modal-fields,
.shuf-checkout-modal .shuf-modal-field-row,
.shuf-checkout-modal .shuf-checkout-modal__form {
  gap: 20px !important;
}


/* Prevent the shared header row from shrinking below its intended height. */
.shuf-checkout-modal .shuf-checkout-modal__toolbar {
  flex: 0 0 64px;
  height: 64px;
  min-height: 64px;
}


/* Keep the close control attached to the sticky toolbar while the outer modal scrolls. */
.shuf-checkout-modal .shuf-checkout-modal__header,
.shuf-checkout-modal[data-product="addin"] .shuf-checkout-modal__header {
  position: sticky;
  top: 0;
  right: auto;
  align-self: flex-end;
  z-index: 35;
  height: 64px;
  margin-right: 20px;
  margin-bottom: -64px;
}

/* Blue processing surface shown after the primary CTA is submitted. */
.shuf-checkout-modal .shuf-checkout-modal__view[data-view="loading"] {
  width: 100%;
  background: var(--shuf-blue);
}
.shuf-checkout-modal .shuf-checkout-modal__loading {
  min-height: 320px;
  background: var(--shuf-blue);
}
.shuf-checkout-modal .shuf-modal-spinner {
  border-color: color-mix(in srgb, var(--shuf-white) 42%, transparent);
  border-top-color: var(--shuf-white);
}
.shuf-checkout-modal .shuf-checkout-modal__loading-text {
  color: var(--shuf-white);
}


/* The complete header scrolls naturally with the modal content. */
.shuf-checkout-modal .shuf-checkout-modal__toolbar {
  position: relative;
  top: auto;
}
.shuf-checkout-modal .shuf-checkout-modal__header,
.shuf-checkout-modal[data-product="addin"] .shuf-checkout-modal__header {
  position: absolute;
  top: 0;
  right: 20px;
  align-self: auto;
  height: 64px;
  margin: 0;
}


/* Compact all plans to fit the viewport without unnecessary modal scrolling. */
.shuf-checkout-modal .shuf-checkout-modal__toolbar {
  flex: 0 0 56px;
  height: 65px;
  min-height: 65px;
}
.shuf-checkout-modal .shuf-checkout-modal__header,
.shuf-checkout-modal[data-product="addin"] .shuf-checkout-modal__header {
  height: 56px;
  min-height: 56px;
  padding-top: 16px;
  padding-bottom: 10px;
}
.shuf-checkout-modal .shuf-checkout-modal__view[data-view="form"] {
  gap: 14px !important;
  padding-bottom: 20px;
}
.shuf-checkout-modal .shuf-modal-fields,
.shuf-checkout-modal .shuf-modal-field-row,
.shuf-checkout-modal .shuf-checkout-modal__form {
  gap: 14px !important;
}


/* Active billing switch uses blue inside while retaining its orange track. */
.shuf-checkout-modal .shuf-modal-toggle__label.is-active {
  color: var(--shuf-blue) !important;
  font-weight: 700;
}
.shuf-checkout-modal .shuf-modal-toggle__switch.is-yearly .shuf-modal-toggle__thumb {
  background: var(--shuf-blue);
}


/* Billing toggle: blue active track, white thumb, and dark labels. */
.shuf-checkout-modal .shuf-modal-toggle__label,
.shuf-checkout-modal .shuf-modal-toggle__label.is-active {
  color: var(--shuf-navy) !important;
}
.shuf-checkout-modal .shuf-modal-toggle__switch.is-yearly {
  background: var(--shuf-blue) !important;
}
.shuf-checkout-modal .shuf-modal-toggle__switch .shuf-modal-toggle__thumb,
.shuf-checkout-modal .shuf-modal-toggle__switch.is-yearly .shuf-modal-toggle__thumb {
  background: var(--shuf-white);
}


/* Keep long product names on one line and truncate them with an ellipsis. */
.shuf-checkout-modal .shuf-modal-product-trigger {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.shuf-checkout-modal .shuf-modal-product-trigger #shuf-modal-product-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* Identical edge-to-edge header width and shadow for every product. */
.shuf-checkout-modal .shuf-checkout-modal__toolbar {
  width: calc(100% + var(--shuf-modal-gutter) + var(--shuf-modal-gutter));
  max-width: none;
  margin-right: calc(var(--shuf-modal-gutter) * -1);
  margin-left: calc(var(--shuf-modal-gutter) * -1);
  box-shadow: 0 6px 12px color-mix(in srgb, var(--shuf-header) 10%, transparent);
}
.shuf-checkout-modal .shuf-checkout-modal__toolbar::before {
  right: 0;
  left: 0;
}


/* One identical header implementation for Cloud, Blob, and PowerPoint Add-in. */
.shuf-checkout-modal:not([data-product="addin"]) .shuf-checkout-modal__toolbar,
.shuf-checkout-modal[data-product="addin"] .shuf-checkout-modal__toolbar {
  position: relative;
  top: auto;
  width: calc(100% + var(--shuf-modal-gutter) + var(--shuf-modal-gutter));
  max-width: none;
  height: 65px;
  min-height: 65px;
  margin: 0 calc(var(--shuf-modal-gutter) * -1);
  padding: 0 var(--shuf-modal-gutter);
  border: 0 !important;
  background: #f8fbff;
  box-shadow: 0 6px 12px color-mix(in srgb, var(--shuf-header) 10%, transparent);
}
.shuf-checkout-modal:not([data-product="addin"]) .shuf-checkout-modal__toolbar::before,
.shuf-checkout-modal[data-product="addin"] .shuf-checkout-modal__toolbar::before {
  right: 0;
  left: 0;
  height: 1px;
}


/* Translucent blurred loading state instead of an opaque blue panel. */
.shuf-checkout-modal.is-processing .shuf-checkout-modal__backdrop {
  background: color-mix(in srgb, var(--shuf-header) 35%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.shuf-checkout-modal.is-processing .shuf-checkout-modal__shell {
  background: color-mix(in srgb, var(--shuf-blue) 74%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.shuf-checkout-modal.is-processing .shuf-checkout-modal__body,
.shuf-checkout-modal.is-processing .shuf-checkout-modal__view[data-view="loading"],
.shuf-checkout-modal.is-processing .shuf-checkout-modal__loading {
  background: transparent !important;
}
.shuf-checkout-modal.is-processing .shuf-checkout-modal__loading-text {
  color: var(--shuf-white) !important;
}
.shuf-checkout-modal.is-processing .shuf-modal-spinner {
  border-color: color-mix(in srgb, var(--shuf-white) 42%, transparent);
  border-top-color: var(--shuf-white);
}


/* Center the shorter loading and result screens in the viewport. */
.shuf-checkout-modal[data-current-view="loading"]:not([hidden]),
.shuf-checkout-modal[data-current-view="result"]:not([hidden]) {
  align-items: center;
}


/* Center every modal without changing the chosen field spacing. */
.shuf-checkout-modal:not([hidden]) {
  align-items: center;
  overflow-y: hidden;
}
.shuf-checkout-modal .shuf-checkout-modal__body {
  overflow: visible !important;
}

/* Clear glass loading surface: visible backdrop blur without a solid blue fill. */
.shuf-checkout-modal.is-processing .shuf-checkout-modal__shell {
  background: rgba(240, 247, 255, .68) !important;
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  backdrop-filter: blur(16px) saturate(125%);
}
.shuf-checkout-modal.is-processing .shuf-checkout-modal__body,
.shuf-checkout-modal.is-processing .shuf-checkout-modal__view[data-view="loading"],
.shuf-checkout-modal.is-processing .shuf-checkout-modal__loading {
  background: transparent !important;
}
.shuf-checkout-modal.is-processing .shuf-checkout-modal__loading-text {
  color: var(--shuf-navy) !important;
}
.shuf-checkout-modal.is-processing .shuf-modal-spinner {
  border-color: rgba(11, 129, 255, .24);
  border-top-color: var(--shuf-blue);
}
.shuf-checkout-modal .shuf-checkout-modal__toolbar {
  box-shadow: 0 3px 7px color-mix(in srgb, var(--shuf-header) 5%, transparent);
}
.shuf-checkout-modal .shuf-checkout-modal__toolbar::before {
  box-shadow: 0 2px 5px color-mix(in srgb, var(--shuf-blue) 8%, transparent);
}


/* Very light blue glass treatment for the processing screen. */
.shuf-checkout-modal.is-processing .shuf-checkout-modal__backdrop {
  background: rgba(11, 129, 255, .08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.shuf-checkout-modal.is-processing .shuf-checkout-modal__shell {
  background: rgba(255, 255, 255, .58) !important;
  -webkit-backdrop-filter: blur(14px) saturate(110%);
  backdrop-filter: blur(14px) saturate(110%);
}


/* Let the same blurred backdrop continue through the loader panel. */
.shuf-checkout-modal.is-processing .shuf-checkout-modal__shell {
  background: transparent !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.shuf-checkout-modal.is-processing .shuf-checkout-modal__body,
.shuf-checkout-modal.is-processing .shuf-checkout-modal__view[data-view="loading"],
.shuf-checkout-modal.is-processing .shuf-checkout-modal__loading {
  background: transparent !important;
}


/* Darkened page overlay with a more visible frosted loader panel. */
.shuf-checkout-modal.is-processing .shuf-checkout-modal__backdrop {
  background: rgba(0, 1, 48, .18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.shuf-checkout-modal.is-processing .shuf-checkout-modal__shell {
  border-color: rgba(255, 255, 255, .48);
  background: rgba(255, 255, 255, .10) !important;
  box-shadow: 0 22px 60px rgba(0, 1, 48, .28);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
  backdrop-filter: blur(18px) saturate(115%);
}


/* Refined neutral loader glass: mask distracting shapes while retaining backdrop depth. */
.shuf-checkout-modal.is-processing .shuf-checkout-modal__backdrop {
  background: rgba(0, 1, 48, .14);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.shuf-checkout-modal.is-processing .shuf-checkout-modal__shell {
  border-color: rgba(255, 255, 255, .72);
  background: rgba(248, 250, 255, .76) !important;
  box-shadow: 0 18px 45px rgba(0, 1, 48, .20);
  -webkit-backdrop-filter: blur(12px) saturate(105%);
  backdrop-filter: blur(12px) saturate(105%);
}
.shuf-checkout-modal.is-processing .shuf-checkout-modal__loading {
  min-height: 260px;
}


/* Slightly darker page overlay with a lighter blur inside the loader panel. */
.shuf-checkout-modal.is-processing .shuf-checkout-modal__backdrop {
  background: rgba(0, 1, 28, .22);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}
.shuf-checkout-modal.is-processing .shuf-checkout-modal__shell {
  background: rgba(248, 250, 255, .74) !important;
  -webkit-backdrop-filter: blur(8px) saturate(103%);
  backdrop-filter: blur(8px) saturate(103%);
}


/* Availability feedback stays success green while the active field border stays blue. */
.shuf-checkout-modal .shuf-modal-field-hint.success,
.shuf-checkout-modal .shuf-modal-input-status.ok,
.shuf-checkout-modal .shuf-modal-input-status.ok i,
.shuf-checkout-modal .shuf-modal-input-status.ok svg {
  color: var(--shuf-success) !important;
}
.shuf-checkout-modal .shuf-modal-input-status.ok svg {
  fill: currentColor;
}


/* Compact password visibility icon; preserve the accessible click target. */
.shuf-checkout-modal .shuf-modal-pw-toggle {
  font-size: 12px !important;
}
.shuf-checkout-modal .shuf-modal-pw-toggle i,
.shuf-checkout-modal #shuf-modal-pw-icon {
  font-size: 12px !important;
  line-height: 1 !important;
}

