body.atf-purchase-page {
  --purchase-bg: #0e0e0f;
  --purchase-panel: #181819;
  --purchase-field: #101011;
  --purchase-line: #343236;
  --purchase-text: #f7f5f5;
  --purchase-muted: #bcb8bd;
  --purchase-red: #f0435e;
  background: var(--purchase-bg);
}

body.atf-purchase-page main.site-main {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
}

body.atf-purchase-page #masthead .elementor-sticky__spacer {
  margin-bottom: 0 !important;
}

.atf-purchase {
  color: var(--purchase-text);
  background: var(--purchase-bg);
}

.atf-purchase-inner {
  box-sizing: border-box;
  width: min(1240px, calc(100% - 64px));
  margin-inline: auto;
}

.atf-purchase-hero {
  background: radial-gradient(ellipse at 95% 10%, #3d1921 0, transparent 58%), #151415;
  border-bottom: 1px solid var(--purchase-line);
}

.atf-purchase-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, .78fr);
  align-items: end;
  gap: 28px;
  padding-block: clamp(26px, 4vw, 54px);
}

.atf-purchase .atf-purchase-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 15px;
  color: var(--purchase-muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.atf-purchase-back span { color: var(--purchase-red); }

.atf-purchase .atf-purchase-back:hover,
.atf-purchase .atf-purchase-information a:hover,
.atf-purchase .atf-purchase-support a:hover {
  color: white;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.atf-purchase h1 {
  margin: 0;
  font: italic 400 clamp(36px, 5vw, 64px)/1.04 "Russo One", Inter, Arial, sans-serif;
  letter-spacing: -.035em;
  color: var(--purchase-text);
}

.atf-purchase .atf-commerce-steps {
  align-self: end;
  justify-self: end;
  box-sizing: border-box;
  width: min(100%, 420px);
  margin: 0;
  padding: 12px;
  gap: 8px;
  border: 1px solid #ffffff24;
  border-radius: 11px;
  background: #0c0a0bb0;
}

.atf-purchase .atf-commerce-step {
  gap: 8px;
  justify-content: center;
  min-width: 0;
  padding: 6px 7px;
  color: var(--purchase-muted);
  white-space: nowrap;
  border-radius: 6px;
}

.atf-purchase .atf-commerce-step::before { content: none; }
.atf-purchase .atf-commerce-step.is-current { color: #fff; background: #581e2a96; }
.atf-purchase .atf-commerce-step.is-complete { color: #eee9ec; }
.atf-purchase .atf-commerce-step-number {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  border-color: #ffffff40;
  color: inherit;
}
.atf-purchase .atf-commerce-step.is-current .atf-commerce-step-number {
  background: #b82041;
  border-color: #ed5470;
}

.atf-purchase-information {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  flex-wrap: wrap;
  padding-block: 15px;
  margin-bottom: clamp(18px, 3vw, 34px);
  border-bottom: 1px solid var(--purchase-line);
  font-size: 13px;
  line-height: 1.5;
  color: var(--purchase-muted);
}

.atf-purchase-information p,
.atf-purchase-support p { margin: 0; }

.atf-purchase .atf-purchase-information a {
  color: #f7dfe5;
  font-weight: 650;
  text-decoration: none;
}

.atf-purchase .atf-purchase-content > :is(.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout) {
  width: 100%;
  max-width: none;
  margin: 0;
}

body.atf-purchase-page .atf-purchase .wc-block-components-sidebar-layout {
  grid-template-columns: minmax(0, 1fr) minmax(315px, .54fr);
  gap: clamp(18px, 2.5vw, 32px) !important;
}

body.atf-purchase-page .atf-purchase :is(.wc-block-cart__main, .wc-block-components-sidebar, .wc-block-components-checkout-step) {
  border: 1px solid var(--purchase-line) !important;
  border-radius: 14px;
  background: var(--purchase-panel) !important;
  padding: clamp(18px, 2.4vw, 30px) !important;
}

body.atf-purchase-page .atf-purchase .wc-block-cart__main,
body.atf-purchase-page .atf-purchase .wc-block-components-sidebar {
  box-shadow: 0 14px 30px #0003;
}

body.atf-purchase-page .atf-purchase :is(.wc-block-cart__main, .wc-block-components-sidebar)::before {
  content: none;
}

body.atf-purchase-page .atf-purchase .wc-block-components-sidebar {
  top: 106px;
  border-top: 2px solid #b7354b !important;
}

body.admin-bar.atf-purchase-page .atf-purchase .wc-block-components-sidebar { top: 138px; }

body.atf-purchase-page .atf-purchase .wc-block-checkout__main { gap: 14px; }

body.atf-purchase-page .atf-purchase .wc-block-checkout__form {
  display: grid;
  gap: 14px;
}

body.atf-purchase-page .atf-purchase .wc-block-components-checkout-step__heading { margin-bottom: 17px !important; }
.atf-purchase .wc-block-components-checkout-step__title { font-size: clamp(18px, 2.1vw, 23px); letter-spacing: -.025em; }

.atf-purchase :is(.wc-block-components-totals-wrapper, .wc-block-components-checkout-order-summary__title, .wc-block-cart-items td, .wc-block-cart-items th) {
  border-color: var(--purchase-line);
}

.atf-purchase .wp-block-woocommerce-checkout-order-summary-block {
  border: 0;
  border-radius: 0;
}

body.atf-purchase-page .atf-purchase .wc-block-components-sidebar .wc-block-components-totals-wrapper {
  padding-block: 12px;
}

.atf-purchase .wc-block-components-sidebar .wc-block-components-totals-wrapper:empty {
  display: none;
}

.atf-purchase .wc-block-components-order-summary .wc-block-components-order-summary-item__quantity {
  background: #292529;
  border-color: #514551;
  color: #fff;
}

.atf-purchase .wc-block-components-product-name { font-size: 16px; }
.atf-purchase .wc-block-cart-item__wrap .wc-block-components-product-name { font-size: clamp(18px, 2vw, 23px); }
.atf-purchase .wc-block-components-product-name:hover { color: #ff9aac; }

.atf-purchase :is(.wc-block-cart-item__wrap, .wc-block-components-order-summary-item__description) .wc-block-components-product-metadata__description {
  display: none;
}

body.atf-purchase-page .atf-purchase .wc-block-cart-item__image img {
  border-radius: 9px;
  border-color: #ffffff24;
  background: #222;
}

.atf-purchase :is(.wc-block-components-quantity-selector, .wc-block-components-quantity-selector::after) {
  border-color: #565057;
  border-radius: 7px;
  background-color: var(--purchase-field);
}

.atf-purchase .wc-block-components-quantity-selector::after { background-color: transparent; }

.atf-purchase .wc-block-cart-item__remove-link {
  min-height: 36px;
  color: #e2d7df !important;
  text-underline-offset: 3px;
}

body.atf-purchase-page .atf-purchase .wc-block-cart__submit-container--sticky {
  position: static;
  display: block !important;
  padding: 0;
  background: transparent;
}

.atf-purchase .wc-block-cart__submit-container--sticky::before { content: none; }

.atf-purchase .wc-block-components-totals-footer-item {
  background: #252023;
  border-radius: 8px;
  padding: 12px !important;
}

body.atf-purchase-page .atf-purchase .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  color: var(--purchase-text);
  white-space: nowrap;
  font-size: clamp(18px, 2.2vw, 24px);
}

/* WooCommerce renders its country select over a separate, white container. */
body.atf-purchase-page .atf-purchase :is(
  .wc-blocks-components-select__container,
  .wc-block-components-combobox .components-combobox-control__suggestions-container
) {
  background: var(--purchase-field);
  border-radius: 11px;
  box-shadow: none;
  color-scheme: dark;
}

body.atf-purchase-page .atf-purchase :is(
  .wc-block-components-text-input input,
  .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
  .wc-block-components-form textarea,
  .wc-block-components-form select
) {
  box-sizing: border-box;
  min-height: 56px;
  background: var(--purchase-field) !important;
  border: 1px solid #565157 !important;
  border-radius: 11px;
  color-scheme: dark;
  color: var(--purchase-text) !important;
  font-size: 16px;
  line-height: 1.35;
  transition: border-color .15s ease, box-shadow .15s ease;
}

body.atf-purchase-page .atf-purchase :is(
  .wc-block-components-text-input input,
  .wc-blocks-components-select__select
) { margin: 0; }

body.atf-purchase-page .atf-purchase .wc-blocks-components-select__select { padding: 20px 42px 4px 14px; }
body.atf-purchase-page .atf-purchase .wc-blocks-components-select__label { left: 14px; top: 7px; }
body.atf-purchase-page .atf-purchase .wc-blocks-components-select .wc-blocks-components-select__expand { fill: #d4cdd2; right: 14px; }

body.atf-purchase-page .atf-purchase :is(
  .wc-block-components-text-input label,
  .wc-blocks-components-select__label
) { color: var(--purchase-muted); }

body.atf-purchase-page .atf-purchase :is(input, textarea, select):focus {
  border-color: #ff8399 !important;
  box-shadow: 0 0 0 2px #f0435e28 !important;
}

.atf-purchase :is(a, button, input, select, textarea):focus-visible {
  outline: 2px solid #ff8ea3;
  outline-offset: 3px;
}

body.atf-purchase-page .atf-purchase .has-error :is(input, select) { border-color: #ff8399 !important; }

body.atf-purchase-page .atf-purchase .wc-block-components-address-form__address_2-toggle {
  flex: 0 0 100%;
  width: 100%;
  min-height: 40px;
  margin-top: 4px;
  padding: 4px 0;
  color: #f7b1bf;
  font-weight: 600;
}

body.atf-purchase-page .atf-purchase .wc-block-components-address-form__address_2-toggle:hover {
  color: #fff;
  text-underline-offset: 4px;
}

.atf-purchase .wc-block-components-combobox :is([role="listbox"], [role="option"]) {
  background: var(--purchase-field);
  color: var(--purchase-text);
}

.atf-purchase .wc-block-components-combobox [role="option"]:is(:hover, [aria-selected="true"]) {
  background: #49232e;
}

.atf-purchase .wc-block-components-validation-error,
.atf-purchase .wc-block-components-validation-error p { color: #ff9eb1; }

.atf-purchase .wc-block-components-checkbox__input {
  accent-color: #c82248;
}

/* Give each checkout method one border. WooCommerce layers its own group outline and selected inset ring. */
.atf-purchase .wp-block-woocommerce-checkout .wc-block-components-radio-control--highlight-checked {
  display: grid;
  gap: 8px;
  color: var(--purchase-text);
}

.atf-purchase .wp-block-woocommerce-checkout .wc-block-components-radio-control--highlight-checked::after,
.atf-purchase .wp-block-woocommerce-checkout .wc-block-components-radio-control--highlight-checked > :is(
  .wc-block-components-radio-control__option,
  .wc-block-components-radio-control-accordion-option
)::after { content: none; }

.atf-purchase .wp-block-woocommerce-checkout .wc-block-components-radio-control--highlight-checked > :is(
  .wc-block-components-radio-control__option,
  .wc-block-components-radio-control-accordion-option
) {
  box-sizing: border-box;
  border: 1px solid #383438;
  border-radius: 10px;
  background: #151416;
  box-shadow: none;
}

.atf-purchase .wp-block-woocommerce-checkout .wc-block-components-radio-control--highlight-checked > :is(
  .wc-block-components-radio-control__option--checked-option-highlighted,
  .wc-block-components-radio-control-accordion-option--checked-option-highlighted
) {
  border-color: #9a4a5d;
  background: linear-gradient(105deg, #362029, #21191e 78%);
  box-shadow: inset 2px 0 #f06b86;
}

.atf-purchase .wp-block-woocommerce-checkout .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option {
  box-sizing: border-box;
  min-height: 52px;
  padding: 15px 16px 15px 45px;
}

.atf-purchase .wp-block-woocommerce-checkout .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__secondary-label {
  flex: 0 0 auto;
  margin-inline-start: 12px;
  color: #dfd0d5;
}

body.atf-purchase-page .atf-purchase .wp-block-woocommerce-checkout .wc-block-components-radio-control .wc-block-components-radio-control__input {
  inset-inline-start: 15px;
  top: 16px;
  width: 19px;
  height: 19px;
  border: 1px solid #8c8088 !important;
  border-radius: 50%;
  background: #1b181b !important;
  box-shadow: none !important;
  transform: none;
}

body.atf-purchase-page .atf-purchase .wp-block-woocommerce-checkout .wc-block-components-radio-control .wc-block-components-radio-control__input:checked {
  border-color: #ff8ca2 !important;
  background: #3c212a !important;
}

.atf-purchase .wp-block-woocommerce-checkout .wc-block-components-radio-control .wc-block-components-radio-control__input:checked::before {
  width: 8px;
  height: 8px;
  background: #ff8ca2;
}

.atf-purchase .wp-block-woocommerce-checkout .wc-block-components-radio-control .wc-block-components-radio-control__input:focus:not(:focus-visible) {
  outline: none;
}

.atf-purchase .wp-block-woocommerce-checkout .wc-block-components-radio-control .wc-block-components-radio-control__input:focus-visible {
  outline: 2px solid #ffb3c1;
  outline-offset: 3px;
}

.atf-purchase .wp-block-woocommerce-checkout .wc-block-components-radio-control-accordion-content {
  padding: 0 16px 15px 45px;
}

.atf-purchase :is(.wc-block-components-address-card, .wc-block-components-radio-control-accordion-content) {
  color: var(--purchase-muted);
}

.atf-purchase .wc-block-components-address-card { border-color: var(--purchase-line); border-radius: 8px; }

body.atf-purchase-page .atf-purchase :is(.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button) {
  min-height: 54px;
  border: 1px solid #e0556b;
  border-radius: 8px;
  background: linear-gradient(135deg, #ce2848, #a81533);
  color: #fff;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

body.atf-purchase-page .atf-purchase :is(.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button):hover:not(:disabled) {
  border-color: #ff8fa2;
  background: linear-gradient(135deg, #de3555, #bb1d3d);
  box-shadow: 0 8px 25px #be163b45;
}

body.atf-purchase-page .atf-purchase .wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button {
  width: auto;
  min-width: min(100%, 215px);
}

.atf-purchase .wc-block-checkout__actions_row > a,
.atf-purchase :is(.wc-block-checkout__terms, .wc-block-components-address-card) a {
  color: #f5b6c3;
  text-underline-offset: 3px;
}

.atf-purchase .wp-block-woocommerce-empty-cart-block {
  padding: clamp(22px, 4vw, 52px);
  background: var(--purchase-panel);
  border: 1px solid var(--purchase-line);
  border-radius: 14px;
}

.atf-purchase .wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title {
  font: 400 clamp(25px, 3.7vw, 42px)/1.12 "Russo One", Inter, Arial, sans-serif;
}

.atf-purchase-support {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 13px 24px;
  flex-wrap: wrap;
  margin-block: clamp(26px, 4vw, 52px);
  padding: 19px clamp(16px, 3vw, 28px);
  border: 1px solid var(--purchase-line);
  border-radius: 10px;
  background: #171517;
  color: var(--purchase-muted);
  font-size: 14px;
}

.atf-purchase-support strong { color: var(--purchase-text); font-size: 15px; }
.atf-purchase-support p { margin-top: 4px; }
.atf-purchase .atf-purchase-support a { color: #ffb3c2; font-weight: 700; text-decoration: none; }

@media (max-width: 940px) {
  body.atf-purchase-page .atf-purchase .wc-block-components-sidebar-layout { grid-template-columns: minmax(0, 1fr); }
  body.atf-purchase-page .atf-purchase .wc-block-components-sidebar { position: static; }
  body.atf-purchase-page .atf-purchase .wc-block-checkout__sidebar { grid-row: 1; }
}

@media (max-width: 720px) {
  .atf-purchase-inner { width: calc(100% - 32px); }
  .atf-purchase-hero__inner { grid-template-columns: minmax(0, 1fr); gap: 17px; padding-block: 24px; }
  .atf-purchase .atf-commerce-steps { justify-self: start; width: min(100%, 420px); padding: 7px; gap: 4px; }
  .atf-purchase .atf-commerce-step { flex-direction: row; gap: 5px; padding-inline: 4px; font-size: 12px; }
  .atf-purchase-information { padding-block: 11px; }
  .atf-purchase .wc-block-components-totals-footer-item { padding: 9px !important; }
  body.atf-purchase-page .atf-purchase :is(.wc-block-cart__main, .wc-block-components-sidebar, .wc-block-components-checkout-step) { padding: 16px !important; }
  body.atf-purchase-page .atf-purchase .wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .atf-purchase :is(input, select, textarea, .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button) { transition: none !important; }
}
