.bz-transaction {
  --bz-field: #171412;
  --bz-panel: #211b18;
  --bz-field-line: #645448;
  min-height: 65vh;
}

.bz-transaction-heading,
.bz-transaction-content {
  width: min(1280px, calc(100% - 96px));
  margin-inline: auto;
}

.bz-transaction-heading {
  padding-block: 30px 27px;
  border-bottom: 1px solid var(--bz-line);
}

.bz-transaction-kicker {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 9px 22px;
}

.bz-transaction-steps {
  display: flex;
  align-items: center;
  gap: 9px;
}

.bz-transaction-kicker :is(.bz-transaction-steps, .bz-transaction-note) {
  margin: 0;
  color: var(--bz-muted);
  font-size: 13px;
}

.bz-transaction-steps a { color: var(--bz-muted); text-underline-offset: 3px; }
.bz-transaction-steps [aria-current="step"] { color: var(--bz-paper); font-weight: 700; }
.bz-step-divider { color: var(--bz-ember); }
.bz-transaction-heading h1 {
  margin: 12px 0 0;
  color: var(--bz-paper);
  font-size: clamp(48px, 6.6vw, 96px);
  line-height: .99;
  letter-spacing: -.065em;
  font-weight: 700;
}

.bz-transaction-content { padding-block: 27px 60px; }
.bz-transaction-content :is(.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout) {
  margin-inline: 0;
  max-width: none;
  color: var(--bz-paper);
}

.bz-transaction .wc-block-components-sidebar-layout {
  margin-bottom: 0;
  align-items: flex-start;
}

.bz-transaction .wc-block-components-sidebar {
  min-width: 0;
  padding: clamp(15px, 2vw, 26px);
  border: 1px solid var(--bz-line);
  border-radius: 4px;
  background: var(--bz-panel);
}

.bz-transaction .wc-block-components-main { min-width: 0; }

.bz-transaction .wc-block-components-checkout-step {
  min-width: 0;
  margin: 0 0 15px;
  padding: clamp(14px, 2vw, 24px);
  border: 1px solid var(--bz-line);
  border-radius: 4px;
  background: var(--bz-panel);
}
.bz-transaction .wc-block-components-checkout-step__container:after { border-color: var(--bz-line); }

.bz-transaction :is(.wc-block-components-checkout-step__heading, .wc-block-components-totals-wrapper, .wc-block-components-order-summary-item) {
  border-color: var(--bz-line);
}

.bz-transaction :is(.wc-block-components-title, .wc-block-components-checkout-step__heading-content, .wc-block-cart__totals-title) {
  color: var(--bz-paper);
  font-weight: 700;
  letter-spacing: -.025em;
}

.bz-transaction :is(.wc-block-components-checkout-step__description, .wc-block-components-product-metadata, .wc-block-components-totals-item__description, .wc-block-cart-item__remove-link) {
  color: var(--bz-muted);
}

.bz-transaction :is(.wc-block-components-product-name, .wc-block-checkout__return-to-cart) {
  color: var(--bz-paper);
  text-decoration: underline;
  text-decoration-color: var(--bz-ember);
  text-underline-offset: 4px;
}

.bz-transaction :is(.wc-block-cart-item__image img, .wc-block-components-order-summary-item__image img) {
  display: block;
  padding: 3px;
  border-radius: 3px;
  background: var(--bz-studio);
  object-fit: contain;
}

.bz-transaction .wc-block-cart-items :is(th, td),
.bz-transaction .wc-block-cart-items .wc-block-cart-items__row {
  border-color: var(--bz-line);
}

.bz-transaction .wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image { width: 88px; }
.bz-transaction .wc-block-cart-items .wc-block-cart-item__remove-link { min-height: 38px; }

.bz-transaction .wc-block-components-quantity-selector {
  background: var(--bz-field);
  color: var(--bz-paper);
  border-radius: 3px;
}
.bz-transaction .wc-block-components-quantity-selector::after { border-color: var(--bz-field-line); opacity: 1; }
.bz-transaction .wc-block-components-quantity-selector input,
.bz-transaction .wc-block-components-quantity-selector button { color: var(--bz-paper); }

.bz-transaction .wc-block-components-text-input input,
.bz-transaction .wc-block-components-combobox .components-combobox-control__input,
.bz-transaction .wc-blocks-components-select .wc-blocks-components-select__select,
.bz-transaction .wc-block-components-select .wc-block-components-select__select,
.bz-transaction .wc-block-components-checkbox .wc-block-components-checkbox__input,
.bz-transaction textarea {
  background-color: var(--bz-field);
  color: var(--bz-paper);
  border-color: var(--bz-field-line);
  border-radius: 3px;
  font-size: 16px;
}

.bz-transaction :is(.wc-block-components-text-input, .wc-blocks-components-select, .wc-block-components-select, .wc-block-components-combobox) label {
  color: var(--bz-muted);
}

.bz-transaction .wc-block-components-select svg,
.bz-transaction .wc-blocks-components-select svg,
.bz-transaction .wc-block-components-panel__button svg {
  fill: currentColor;
}

.bz-transaction :is(.wc-block-components-radio-control__option, .wc-block-components-radio-control__option-checked) {
  color: var(--bz-paper);
  border-color: var(--bz-field-line);
  background: var(--bz-field);
}
.bz-transaction :is(input[type="checkbox"], input[type="radio"]) { accent-color: var(--bz-ember); }

.bz-transaction .wc-block-components-notice-banner {
  background: #2c2119;
  border-color: #956247;
  color: var(--bz-paper);
}
.bz-transaction .wc-block-components-notice-banner :is(a, button) { color: inherit; }

.bz-transaction :is(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--bz-ember);
  outline-offset: 3px;
}

.bz-transaction :is(.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button, .wc-block-components-button.contained) {
  min-height: 48px;
  color: var(--bz-coal);
  background: var(--bz-ember);
  border: 1px solid var(--bz-ember);
  border-radius: 3px;
  font-weight: 750;
  text-decoration: none;
}

.bz-transaction :is(.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button, .wc-block-components-button.contained):hover {
  background: #ff8659;
}

.bz-transaction .wc-block-components-checkout-place-order-button[disabled] { opacity: .65; }
.bz-transaction :is(.wc-block-cart__submit-container, .wc-block-checkout__actions) { background: var(--bz-panel); }
.bz-transaction .wc-block-components-panel__button { color: var(--bz-paper); }

.bz-transaction .wc-block-cart__empty-cart__title {
  margin-block: 24px 21px;
  color: var(--bz-paper);
  font-size: clamp(26px, 4.5vw, 48px);
  letter-spacing: -.04em;
}

@media (max-width: 800px) {
  .bz-transaction-heading, .bz-transaction-content { width: calc(100% - 32px); }
  .bz-transaction-heading { padding-block: 22px 20px; }
  .bz-transaction-content { padding-block: 17px 35px; }
  .bz-transaction .wc-block-components-sidebar-layout { align-items: stretch; }
  .bz-transaction .wc-block-components-sidebar { margin-top: 12px; }
  .bz-transaction .wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image { width: 60px; }
  .bz-transaction .wc-block-checkout__actions_row { gap: 10px; }
}

/* Match WooCommerce's typed-input selectors on rendered checkout forms. */
.bz-transaction .wc-block-components-form .wc-block-components-text-input input:is([type="text"], [type="email"], [type="tel"], [type="password"]),
.bz-transaction .wc-block-components-text-input input:is([type="text"], [type="email"], [type="tel"], [type="password"]):focus {
  background-color: var(--bz-field);
  color: var(--bz-paper);
  border-color: var(--bz-field-line);
  box-shadow: none;
}

.bz-transaction .wc-block-components-form .wc-block-components-text-input input:focus {
  border-color: var(--bz-ember);
}

.bz-transaction .wc-block-components-form .wc-block-components-text-input label {
  color: var(--bz-muted);
}

.bz-transaction .wc-block-components-text-input.has-error input:not(:focus) {
  border-color: #f99a82;
}

.bz-transaction :is(.wc-block-components-validation-error, .wc-block-components-validation-error p) {
  color: #ffac93;
}

.bz-transaction .wc-block-cart__empty-cart .wc-block-grid__product-image img,
.bz-transaction .wc-block-woocommerce-empty-cart-block .wc-block-grid__product-image img {
  aspect-ratio: 1;
  width: 100%;
  object-fit: contain;
  background: var(--bz-studio);
}

.bz-transaction .wc-block-components-order-summary-item__quantity {
  background: var(--bz-ember);
  border-color: var(--bz-ember);
  color: var(--bz-coal);
  font-weight: 750;
  box-shadow: none;
}

.bz-transaction .wc-block-components-order-summary-item__quantity [aria-hidden="true"] { color: inherit; }
