.fo-card {
  border: 1px solid var(--fo-color-border);
  border-radius: var(--fo-radius);
  background: var(--fo-color-background);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
}

.fo-checkout-page {
  background: linear-gradient(180deg, color-mix(in srgb, var(--fo-color-primary) 4%, #ffffff), var(--fo-color-background) 38%);
}

.fo-checkout-shell {
  width: min(100% - 32px, 1180px);
}

.fo-checkout-eyebrow {
  margin-bottom: 14px;
}

.fo-checkout-title {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3.35rem);
  line-height: 1.06;
}

.fo-checkout-lead {
  max-width: 760px;
  margin-top: 16px;
  margin-bottom: 0;
}

.fo-checkout-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
  margin-top: 34px;
}

.fo-checkout-main,
.fo-checkout-form {
  padding: clamp(20px, 3vw, 30px);
}

.fo-checkout-form {
  gap: 22px;
}

.fo-checkout-fieldset {
  display: grid;
  gap: 12px;
  border: 1px solid color-mix(in srgb, var(--fo-color-border) 80%, var(--fo-color-secondary));
  border-radius: var(--fo-radius);
  padding: 16px;
  background: color-mix(in srgb, var(--fo-color-surface) 72%, #ffffff);
}

.fo-checkout-fieldset legend {
  padding: 0 6px;
  margin-left: -6px;
  color: var(--fo-color-text);
  font-size: 0.95rem;
}

.fo-radio-row,
.fo-checkout-choice {
  min-height: 52px;
  align-items: flex-start;
  border-color: color-mix(in srgb, var(--fo-color-border) 88%, var(--fo-color-secondary));
  background: #ffffff;
  line-height: 1.35;
}

.fo-radio-row input {
  margin-top: 4px;
  flex: 0 0 auto;
}

.fo-radio-row small {
  display: block;
  margin-top: 3px;
  color: var(--fo-color-muted);
  font-weight: 700;
}

.fo-form-grid,
.fo-checkout-grid {
  gap: 16px;
}

.fo-field-full {
  grid-column: 1 / -1;
}

.fo-field {
  min-width: 0;
}

.fo-field span {
  color: var(--fo-color-text);
}

.fo-field input,
.fo-field select,
.fo-field textarea,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  width: 100%;
  min-height: 48px;
  border: 1px solid color-mix(in srgb, var(--fo-color-border) 86%, var(--fo-color-secondary));
  border-radius: var(--fo-radius);
  padding: 11px 13px;
  background: #ffffff;
  color: var(--fo-color-text);
  font: inherit;
}

.fo-field textarea {
  min-height: 96px;
}

.fo-alert,
.fo-checkout-notice {
  display: grid;
  gap: 4px;
  border: 1px solid color-mix(in srgb, var(--fo-color-accent) 45%, #ffffff);
  border-radius: var(--fo-radius);
  padding: 13px 15px;
  background: color-mix(in srgb, var(--fo-color-accent) 9%, #ffffff);
  color: var(--fo-color-secondary);
}

.fo-alert--success,
.fo-checkout-notice--success {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.fo-alert--error,
.fo-checkout-notice--error {
  border-color: color-mix(in srgb, var(--fo-color-primary) 42%, #ffffff);
  background: color-mix(in srgb, var(--fo-color-primary) 9%, #ffffff);
  color: var(--fo-color-primary);
}

.fo-button-primary,
.wc-block-components-button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  border-radius: var(--fo-radius);
  background: var(--fo-color-primary);
  color: #ffffff;
  font-weight: 900;
}

.fo-checkout-sidebar,
.fo-order-summary,
.fo-checkout-summary {
  padding: clamp(20px, 3vw, 28px);
}

.fo-checkout-receipt {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 28px);
}

.fo-checkout-receipt h3 {
  margin: 0;
}

.fo-checkout-receipt__lead {
  margin: 0;
  color: var(--fo-color-muted);
}

.fo-checkout-receipt__details,
.fo-checkout-receipt__items {
  display: grid;
  gap: 12px;
}

.fo-checkout-receipt__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--fo-color-border) 82%, var(--fo-color-secondary));
  border-radius: calc(var(--fo-radius) - 2px);
  background: color-mix(in srgb, var(--fo-color-surface) 70%, #ffffff);
}

.fo-checkout-receipt__label {
  min-width: 0;
  color: var(--fo-color-muted);
  font-weight: 700;
  line-height: 1.35;
}

.fo-checkout-receipt__value {
  text-align: right;
  white-space: nowrap;
  line-height: 1.35;
}

.fo-checkout-receipt__item .fo-checkout-receipt__label {
  color: var(--fo-color-text);
}

.fo-checkout-receipt__item .fo-checkout-receipt__value {
  color: var(--fo-color-text);
  font-weight: 900;
}

.fo-checkout-receipt__total {
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--fo-color-border) 76%, var(--fo-color-secondary));
}

.fo-checkout-receipt__total span {
  color: var(--fo-color-text);
  font-weight: 800;
}

.fo-checkout-receipt__total strong {
  color: var(--fo-color-primary);
}

.fo-checkout-receipt__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.fo-checkout-summary h3 {
  margin-bottom: 18px;
}

.fo-checkout-summary__item,
.fo-checkout-summary__total {
  align-items: flex-start;
}

.fo-order-submit {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.woocommerce,
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout,
.wc-block-cart,
.wc-block-checkout {
  color: var(--fo-color-text);
}

.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout {
  max-width: 100%;
}

.wc-block-cart,
.wc-block-checkout {
  display: grid;
  gap: 22px;
}

.wc-block-cart__main,
.wc-block-cart__sidebar,
.wc-block-checkout__main,
.wc-block-checkout__sidebar,
.wc-block-components-sidebar,
.wc-block-components-main {
  border: 1px solid var(--fo-color-border);
  border-radius: var(--fo-radius);
  background: #ffffff;
  padding: clamp(18px, 3vw, 28px);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
}

.wc-block-components-title,
.wc-block-components-checkout-step__title,
.woocommerce h2,
.woocommerce h3 {
  color: var(--fo-color-text);
  line-height: 1.15;
}

.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
.wc-block-components-form .wc-block-components-text-input input[type="text"],
.wc-block-components-form .wc-block-components-text-input input[type="email"],
.wc-block-components-form .wc-block-components-text-input input[type="tel"] {
  border-radius: var(--fo-radius);
  border-color: color-mix(in srgb, var(--fo-color-border) 86%, var(--fo-color-secondary));
}

.wc-block-components-button {
  min-height: 48px;
  padding: 12px 20px;
  text-decoration: none;
}

@media (max-width: 860px) {
  .fo-checkout-layout,
  .fo-form-grid,
  .fo-checkout-grid,
  .fo-checkout-choice-grid {
    grid-template-columns: 1fr;
  }

  .fo-checkout-sidebar,
  .fo-checkout-summary {
    position: static;
  }

  .fo-checkout-receipt__row {
    flex-direction: column;
    gap: 6px;
  }

  .fo-checkout-receipt__value {
    text-align: left;
    white-space: normal;
  }
}


.fo-checkout-receipt__status-shell {
  display: grid;
}

.fo-checkout-receipt .roosm-status-card {
  gap: 18px;
  padding: clamp(18px, 3vw, 26px);
  box-shadow: none;
}

.fo-checkout-receipt .roosm-status-card__title {
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
}

.fo-checkout-receipt .roosm-status-card__details {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
