/**
 * Sweepstake Manager — public form styles (mobile-first).
 */

.sm-wrap {
  /* max-width: 72rem;
  margin: 1.5rem auto;
  padding: 1.25rem; */
  --sm-surface-bg: #f6f7f7;
  --sm-surface-border: 1px solid #c3c4c7;
  --sm-surface-radius: 4px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #1a1a1a;
  box-sizing: border-box;
  width: 100%;
  container-type: inline-size;
  container-name: sm-wrap;
}

.sm-wrap *,
.sm-wrap *::before,
.sm-wrap *::after {
  box-sizing: border-box;
}

.sm-sections {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.sm-jump-to-enter {
  display: none;
}

@media (max-width: 767px) {
  .sm-jump-to-enter {
    display: block;
    margin: 0 0 1rem;
    padding: 0.65rem 1rem;
    background: var(--sm-surface-bg);
    border: var(--sm-surface-border);
    border-radius: var(--sm-surface-radius);
    text-align: center;
  }

  .sm-jump-to-enter__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-weight: 600;
    color: #2271b1;
    text-decoration: none;
  }

  .sm-jump-to-enter__arrow {
    font-size: 1.125rem;
    line-height: 1;
  }

  .sm-jump-to-enter__link:hover,
  .sm-jump-to-enter__link:focus {
    color: #135e96;
    text-decoration: underline;
  }
}

.sm-section--sweepstake .sm-layout {
  margin-bottom: 0;
}

.sm-section--intro .sm-intro {
  margin-bottom: 0;
}

.sm-section--contact-charity .sm-intro {
  margin-bottom: 0;
}

.sm-public-stats-panel,
.sm-intro-cost-payment,
.sm-options-banner,
.sm-form-payment-info,
.sm-form-panel,
.sm-lookup-list > li {
  background: var(--sm-surface-bg);
  border: var(--sm-surface-border);
  border-radius: var(--sm-surface-radius);
}

.sm-public-stats-panel--inline {
  width: 100%;
  padding: 1rem 1.125rem;
}

.sm-public-stats-outer {
  width: 100%;
}

.sm-public-stats-outer--payment {
  container-type: inline-size;
  container-name: sm-payment-stats;
}

.sm-public-stats-outer--payment .sm-public-stats-panel--inline {
  margin: 0;
}

.sm-public-stats-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-evenly;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  gap: 0;
}

.sm-public-stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  flex: 0 1 auto;
  min-width: 0;
  text-align: center;
}

.sm-public-stats__label {
  font-size: 0.8125rem;
  line-height: 1.3;
  color: #50575e;
  white-space: nowrap;
}

.sm-public-stats__value {
  font-size: 1.25rem;
  line-height: 1.3;
  color: #1a1a1a;
  white-space: nowrap;
}

.sm-public-stats-bar--payment {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
  row-gap: 1rem;
  column-gap: 0.75rem;
}

.sm-public-stats-bar--payment .sm-public-stats__item {
  flex: 1 1 calc(50% - 0.375rem);
  min-width: 0;
  max-width: 100%;
}

.sm-public-stats-bar--payment .sm-public-stats__label,
.sm-public-stats-bar--payment .sm-public-stats__value {
  white-space: normal;
  overflow-wrap: anywhere;
}

.sm-public-stats-bar--payment .sm-public-stats__value {
  font-size: 1.125rem;
}

@container sm-payment-stats (max-width: 19.99rem) {
  .sm-public-stats-bar--payment .sm-public-stats__item {
    flex: 1 1 100%;
  }

  .sm-public-stats-outer--payment .sm-public-stats-panel--inline {
    padding: 0.75rem 0.875rem;
  }
}

@container sm-payment-stats (min-width: 26rem) {
  .sm-public-stats-bar--payment:not(:has(.sm-public-stats__item:nth-child(4))) {
    flex-wrap: nowrap;
    justify-content: space-evenly;
    row-gap: 0;
    column-gap: 0.5rem;
  }

  .sm-public-stats-bar--payment:not(:has(.sm-public-stats__item:nth-child(4))) .sm-public-stats__item {
    flex: 1 1 0;
  }

  .sm-public-stats-bar--payment:not(:has(.sm-public-stats__item:nth-child(4))) .sm-public-stats__value {
    font-size: 1.25rem;
  }
}

@container sm-payment-stats (min-width: 38rem) {
  .sm-public-stats-bar--payment {
    flex-wrap: nowrap;
    justify-content: space-evenly;
    row-gap: 0;
    column-gap: 0.5rem;
  }

  .sm-public-stats-bar--payment .sm-public-stats__item {
    flex: 1 1 0;
  }

  .sm-public-stats-bar--payment .sm-public-stats__value {
    font-size: 1.25rem;
  }
}

@media (max-width: 767px) {
  .sm-public-stats-bar {
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 1rem;
    column-gap: 0.75rem;
  }

  .sm-public-stats__item {
    flex: 0 1 calc(33.333% - 0.5rem);
  }

  .sm-public-stats__label,
  .sm-public-stats__value {
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .sm-public-stats-bar {
    justify-content: center;
  }
  .sm-public-stats__item {
    flex: 0 1 calc(50% - 0.375rem);
  }
}

.sm-contact-details {
  margin: 0;
}

.sm-contact-details__row {
  display: grid;
  grid-template-columns: minmax(5rem, 7rem) 1fr;
  gap: 0.35rem 1rem;
  margin-bottom: 0.65rem;
}

.sm-contact-details__row:last-child {
  margin-bottom: 0;
}

.sm-contact-details dt {
  margin: 0;
  font-weight: 600;
  color: #1a1a1a;
}

.sm-contact-details dd {
  margin: 0;
}

.sm-contact-reveal {
  padding: 0;
  border: 0;
  background: none;
  color: #2271b1;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.sm-contact-reveal:hover,
.sm-contact-reveal:focus {
  color: #135e96;
}

.sm-contact-details__extra {
  margin: 0.75rem 0 0;
  color: #444;
}

.sm-contact-details__extra > :last-child {
  margin-bottom: 0;
}

.sm-intro {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  gap: 1.25rem;
}

.sm-intro-col {
  color: #444;
}

.sm-intro-panel > :last-child {
  margin-bottom: 0;
}

.sm-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sm-option-label--placeholder {
  display: block;
  color: transparent;
  text-shadow: 0 0 10px rgba(26, 26, 26, 0.55);
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.sm-intro-heading {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
}

.sm-duplicate-confirm {
  margin: 1rem 0;
  padding: 1rem;
  background: #fff8e5;
  border: 1px solid #dba617;
  border-radius: 4px;
}

.sm-duplicate-confirm-message {
  margin: 0 0 1rem;
  color: #3a3a3a;
}

.sm-duplicate-confirm-actions {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0.75rem;
}

.sm-button-secondary {
  width: auto;
}

.sm-duplicate-confirm-actions .sm-button,
.sm-duplicate-confirm-actions .sm-button.sm-button-secondary {
  width: 100%;
  flex: none;
  min-width: 0;
}

.sm-intro--split {
  display: flex;
  flex-flow: row wrap;
  gap: 1.25rem;
  align-items: flex-start;
}

.sm-intro--split .sm-intro-col {
  flex: 1 1 calc(50% - 0.625rem);
  min-width: 0;
  max-width: calc(50% - 0.625rem);
  box-sizing: border-box;
}

.sm-intro:not(.sm-intro--split) .sm-intro-col {
  width: 100%;
}

.sm-intro-cost-payment {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 0.75rem;
  margin: 0;
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  line-height: 1.4;
  text-align: left;
}

.sm-intro-cost-payment--stacked {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sm-intro-cost-payment--stacked .sm-payment-detail--stacked {
  width: 100%;
}

.sm-payment-details-row--pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
  gap: 0.75rem 1rem;
}

.sm-payment-detail {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.sm-payment-detail--reference {
  width: 100%;
}

.sm-payment-detail__label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #50575e;
}

.sm-payment-detail__value {
  font-weight: 600;
  color: #1a1a1a;
  word-break: break-word;
}

.sm-intro-cost-payment--other .sm-payment-detail__value--block {
  font-size: 0.95rem;
  line-height: 1.5;
}

.sm-intro-cost-payment--other .sm-payment-detail__value--block p:last-child {
  margin-bottom: 0;
}

.sm-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sm-options-panel {
  flex: 2;
  min-width: 0;
}

.sm-options-banners {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.sm-options-banner {
  margin: 0;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #50575e;
  width: 100%;
  box-sizing: border-box;
}

.sm-options-banner--cost {
  font-weight: 600;
  color: #1a1a1a;
  text-align: center;
  container-type: inline-size;
  container-name: sm-cost-banner;
}

.sm-options-banner--stats {
  padding: 1rem 1.125rem;
}

.sm-form-payment-info {
  padding: 1rem;
}

.sm-form-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
  min-width: 0;
}

.sm-payment-info-outer {
  width: 100%;
}

.sm-form-payment-info__heading {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
}

.sm-form-payment-info__instructions {
  overflow-wrap: anywhere;
  word-break: break-all;
}

.sm-form-payment-info__instructions > :first-child {
  margin-top: 0;
}

.sm-form-payment-info__instructions > :last-child {
  margin-bottom: 0;
}

.sm-form-payment-info .sm-intro-cost-payment {
  margin-top: 0.75rem;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.sm-form-panel {
  min-width: 0;
  padding: 1.25rem;
  container-type: inline-size;
  container-name: sm-form-panel;
}

.sm-panel-heading {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.sm-schedule {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 1rem;
  margin: 1rem 0;
  padding: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #50575e;
  text-align: left;
}

.sm-schedule-label {
  font-weight: 600;
  color: #1a1a1a;
}

.sm-schedule-value {
  text-align: left;
}

.sm-options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}

@container sm-wrap (min-width: 30rem) {
  .sm-options-grid {
    grid-template-columns: repeat(var(--sm-grid-columns, 3), minmax(0, 1fr));
  }
}

.sm-option-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 3.25rem;
  padding: 0.65rem 0.5rem;
  text-align: center;
  border-radius: 6px;
  border: 1px solid #c3c4c7;
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.sm-option-card--available {
  border-color: #68de7c;
  background: #edfaef;
}

.sm-option-card--allocated {
  border-color: #dcdcde;
  background: #f0f0f1;
  opacity: 0.75;
}

.sm-option-card--winner {
  border-color: #dba617;
  border-width: 2px;
  background: #fcf9e8;
  opacity: 1;
  box-shadow: 0 0 0 1px rgba(219, 166, 23, 0.25);
}

.sm-option-card--winner.sm-option-card--allocated {
  opacity: 1;
}

.sm-option-badge--winner {
  color: #8a6d1d;
  background: #f6e8a5;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  /*position: absolute;
  top: 5px;
  right: 3px;
  z-index: 1;*/
}

.sm-option-label {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 2.5em;
}

.sm-option-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #646970;
}

.sm-options-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  color: #646970;
}

.sm-legend-item::before {
  content: "";
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  margin-right: 0.35rem;
  border-radius: 3px;
  vertical-align: middle;
}

.sm-legend-available::before {
  background: #edfaef;
  border: 1px solid #68de7c;
}

.sm-legend-taken::before {
  background: #f0f0f1;
  border: 1px solid #dcdcde;
}

.sm-legend-selected::before {
  background: #e8f4fd;
  border: 2px solid #2271b1;
}

.sm-legend-winner::before {
  background: #fcf9e8;
  border: 2px solid #dba617;
}

.sm-lookup-you-won {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #8a6d1d;
  background: #f6e8a5;
  border-radius: 999px;
}

.sm-option-card--selectable {
  cursor: pointer;
}

.sm-options-grid--pick-locked .sm-option-card--selectable {
  cursor: default;
  pointer-events: none;
}

.sm-option-card--selectable:focus {
  outline: 2px solid #2271b1;
  outline-offset: 2px;
}

.sm-option-card--selected {
  border-color: #2271b1;
  border-width: 2px;
  background: #e8f4fd;
  box-shadow: inset 0 0 0 1px #2271b1;
}

.sm-option-selected-badge {
  display: none;
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: #2271b1;
  color: #fff;
  font-size: 0.6875rem;
  line-height: 1;
  pointer-events: none;
}

.sm-option-card--selected .sm-option-selected-badge {
  display: inline-flex;
}

.sm-selection-summary-wrap,
.sm-more-selection-summary-wrap {
  margin-bottom: 1rem;
}

.sm-selection-summary-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.9375rem;
}

.sm-selection-summary,
.sm-more-selection-summary {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.sm-selection-hint,
.sm-more-pick-hint {
  display: block;
}

.sm-name-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 0;
}

@container sm-form-panel (min-width: 22rem) {
  .sm-name-row {
    grid-template-columns: 1fr 1fr;
  }
}

.sm-form--submitting {
  opacity: 0.85;
}

.sm-form-status {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  color: #50575e;
}

.sm-form-status:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sm-form-status::before {
  content: "";
  width: 1rem;
  height: 1rem;
  border: 2px solid #c3c4c7;
  border-top-color: #2271b1;
  border-radius: 50%;
  animation: sm-spin 0.8s linear infinite;
  flex-shrink: 0;
}

.sm-button__label,
.sm-button__spinner {
  pointer-events: none;
}

.sm-button__spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: sm-spin 0.8s linear infinite;
  flex-shrink: 0;
}

.sm-button__spinner:not([hidden]) {
  display: inline-block;
}

.sm-button.is-loading .sm-button__spinner {
  display: inline-block;
}

@keyframes sm-spin {
  to {
    transform: rotate(360deg);
  }
}

.sm-field {
  margin: 0 0 1rem;
}

.sm-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.9375rem;
}

.sm-required {
  color: #b32d2e;
}

.sm-field input[type="text"],
.sm-field input[type="email"],
.sm-field input[type="tel"],
.sm-field input[type="number"] {
  width: 100%;
  max-width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid #8c8f94;
  border-radius: 4px;
  font-size: 1rem;
}

.sm-field input:focus {
  border-color: #2271b1;
  outline: 2px solid transparent;
  box-shadow: 0 0 0 1px #2271b1;
}

.sm-hint {
  display: block;
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: #646970;
}

.sm-actions {
  margin-top: 1.25rem;
}

.sm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: #2271b1;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.sm-button:hover,
.sm-button:focus {
  background: #135e96;
}

.sm-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.sm-button.sm-button-secondary {
  background: #fef2f2;
  color: #8a2424;
  border: 1px solid #d63638;
  box-shadow: none;
  width: auto;
}

.sm-button.sm-button-secondary:hover,
.sm-button.sm-button-secondary:focus {
  background: #fce4e4;
  border-color: #b32d2e;
  color: #8a2424;
}

.sm-message {
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin: 0;
}

.sm-message.sm-success {
  background: #edfaef;
  border: 1px solid #68de7c;
  color: #1e4620;
}

.sm-message.sm-error,
.sm-form-message.sm-error {
  background: #fcf0f1;
  border: 1px solid #d63638;
  color: #3c1010;
}

.sm-form-message.sm-notice,
.sm-more-message.sm-notice {
  background: #f0f6fc;
  border: 1px solid #72aee6;
  color: #1d2327;
}

.sm-message.sm-notice {
  background: #f0f6fc;
  border: 1px solid #72aee6;
  color: #1d2327;
}

.sm-form-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

.sm-more-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

.sm-panel-tabs {
  display: flex;
  gap: 0;
  margin: -0.25rem 0 1rem;
  border-bottom: var(--sm-surface-border);
}

.sm-panel-tab {
  flex: 1;
  margin: 0;
  padding: 0.65rem 1rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #646970;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.sm-panel-tab:hover,
.sm-panel-tab:focus {
  color: #1a1a1a;
  outline: none;
}

.sm-panel-tab.is-active {
  color: #2271b1;
  border-bottom-color: #2271b1;
}

.sm-panel-tab:disabled,
.sm-panel-tab[aria-disabled="true"] {
  color: #a7aaad;
  cursor: not-allowed;
  opacity: 0.65;
}

.sm-panel-tab:disabled:hover,
.sm-panel-tab:disabled:focus,
.sm-panel-tab[aria-disabled="true"]:hover,
.sm-panel-tab[aria-disabled="true"]:focus {
  color: #a7aaad;
}

.sm-panel-tab-panel[hidden] {
  display: none !important;
}

.sm-option-badge--name {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.2;
  max-width: 100%;
  word-break: break-word;
}

.sm-confirmation .sm-message {
  margin-bottom: 1rem;
}

.sm-confirmation-allocation + .sm-confirmation-allocation {
  margin-top: 0.75rem;
}

.sm-enter-more {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: var(--sm-surface-border);
}

.sm-enter-more-lead {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: #3a3a3a;
}

.sm-enter-more .sm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sm-enter-more .sm-actions .sm-button {
  width: auto;
  flex: 1 1 auto;
  min-width: min(100%, 14rem);
}

.sm-enter-more-step-confirm .sm-actions {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0.75rem;
}

.sm-enter-more-step-confirm .sm-actions .sm-button,
.sm-enter-more-step-confirm .sm-actions .sm-button.sm-button-secondary {
  width: 100%;
  flex: none;
  min-width: 0;
}

.sm-more-message {
  margin-top: 1rem;
}

.sm-more-message.sm-error {
  padding: 0.75rem 1rem;
  border-radius: 4px;
  background: #fcf0f1;
  border: 1px solid #d63638;
  color: #3c1010;
}

.sm-lookup-results {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: var(--sm-surface-border);
}

.sm-lookup-results-heading {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}

.sm-lookup-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sm-lookup-list > li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
}

.sm-lookup-list > li:last-child {
  margin-bottom: 0;
}

.sm-lookup-paid {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #c3c4c7;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.sm-lookup-paid-text {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transform: rotate(-38deg);
  transform-origin: center center;
}

.sm-lookup-paid--unpaid {
  color: #8c8f94;
  background: #f0f0f1;
  border-color: #c3c4c7;
}

.sm-lookup-paid--unpaid .sm-lookup-paid-text {
  font-size: 0.75rem;
  letter-spacing: 0.01em;
}

.sm-lookup-paid--paid {
  color: #00a32a;
  background: #edfaef;
  border-color: #68de7c;
}

.sm-lookup-entry-text {
  flex: 1;
  min-width: 0;
  font-weight: 500;
}

.sm-lookup-entry-date-line {
  margin: 0 0 0.25rem;
}

.sm-lookup-allocations {
  list-style: disc;
  margin: 0;
  padding-left: 1.25rem;
}

.sm-lookup-allocations li {
  display: list-item;
  margin: 0 0 0.15rem;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  font-weight: 400;
}

.sm-lookup-allocations li:last-child {
  margin-bottom: 0;
}

.sm-lookup-entry-cost {
  margin: 0.35rem 0 0;
  font-weight: 500;
}

.sm-lookup-entry-date {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: #646970;
}

.sm-lookup-total {
  margin: 0;
  padding-top: 0.5rem;
  border-top: var(--sm-surface-border);
  font-weight: 600;
}

.sm-turnstile {
  margin: 0.75rem 0;
  min-height: 65px;
}

/* Narrow content (mobile or standard narrow page template): stack payment, entry, then options */
@container sm-wrap (max-width: 47.9375rem) {
  .sm-intro--split {
    flex-direction: column;
  }

  .sm-intro--split .sm-intro-col {
    flex: 1 1 100%;
    max-width: 100%;
    width: 100%;
  }

  .sm-layout {
    display: flex;
    flex-direction: column;
  }

  .sm-options-banners--cost-mobile {
    order: 0;
  }

  .sm-options-banners--options-panel:not(:has(.sm-options-banner--reveal)):not(:has(.sm-options-banner--stats)) {
    display: none;
  }

  .sm-options-banners--options-panel .sm-options-banner--cost-desktop {
    display: none;
  }

  .sm-form-column {
    order: 1;
  }

  .sm-options-panel {
    order: 2;
  }
}

/* Wide content: options beside entry column (payment stacks within the form column) */
@container sm-wrap (min-width: 48rem) {
  .sm-options-banners--cost-mobile {
    display: none;
  }

  .sm-options-banners--options-panel .sm-options-banner--cost-desktop {
    display: block;
  }

  .sm-layout {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
  }

  .sm-options-panel {
    flex: 2;
    min-width: 0;
  }

  .sm-form-column {
    flex: 1;
    min-width: 0;
  }

  .sm-form-column,
  .sm-options-panel {
    order: unset;
  }
}

@container sm-wrap (min-width: 30rem) {
  .sm-button {
    width: 100%;
  }
}

.sm-entry-total-cost-wrap,
.sm-more-total-cost-wrap {
  margin-top: 0.25rem;
}

.sm-entry-total-cost-label {
  margin-right: 0.35rem;
}

.sm-entry-total-cost,
.sm-more-total-cost {
  font-size: 1.05rem;
}

.sm-cost-banner-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0.75rem;
}

.sm-cost-banner-items__item {
  flex: 1 1 100%;
  min-width: 0;
  margin: 0;
  padding: 0.65rem 1rem;
  border: 1px solid #c3c4c7;
  border-radius: 4px;
  text-align: center;
  box-sizing: border-box;
  align-content: center;
}

.sm-cost-banner-items__item + .sm-cost-banner-items__item {
  margin-top: 0;
}

.sm-cost-banner-items__label {
  display: block;
  margin: 0 0 0.25rem;
  font-size: 0.8125rem;
  font-weight: 400;
  color: #50575e;
}

.sm-cost-banner-items__value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
}

.sm-cost-banner-items--single {
  gap: 0;
}

.sm-cost-banner-items--single .sm-cost-banner-items__item {
  flex: none;
  min-width: 0;
  padding: 0;
  border: none;
  border-radius: 0;
}

.sm-cost-banner-items--single .sm-cost-banner-items__label {
  display: inline;
  margin: 0 0.35rem 0 0;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.sm-cost-banner-items--single .sm-cost-banner-items__value {
  display: inline;
  font-size: inherit;
  color: inherit;
  font-weight: 700;
}

@container sm-cost-banner (min-width: 18rem) {
  .sm-cost-banner-items:not(.sm-cost-banner-items--single) .sm-cost-banner-items__item {
    flex: 1 1 calc(50% - 0.375rem);
  }
}

@container sm-cost-banner (min-width: 38rem) {
  .sm-cost-banner-items:not(.sm-cost-banner-items--single) .sm-cost-banner-items__item {
    flex: 1 1 0;
    min-width: 7rem;
  }

  .sm-cost-banner-items:not(.sm-cost-banner-items--single) .sm-cost-banner-items__value {
    font-size: 1.45rem;
  }
}

.sm-lookup-total-cost {
  font-weight: 600;
}

.sm-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.sm-modal[hidden] {
  display: none !important;
}

.sm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.sm-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  padding: 1.25rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.sm-modal__title {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.sm-submit-confirm-message {
  margin: 0 0 1rem;
  line-height: 1.5;
}

.sm-submit-confirm-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
}

.sm-submit-confirm-actions .sm-button {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
}

.sm-more-total-cost-wrap {
  margin-top: 0.25rem;
}
