.woocommerce .woocommerce-breadcrumb {
  margin: 0 0 34px;
  color: var(--fm-muted);
  font-size: 12px;
}

.woocommerce .woocommerce-breadcrumb a {
  color: var(--fm-text);
}

.woocommerce h1,
.woocommerce div.product .product_title {
  color: var(--fm-text);
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.woocommerce .woocommerce-result-count,
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce ul.products li.product .price {
  color: var(--fm-muted);
}

.woocommerce .woocommerce-ordering select,
.woocommerce input.input-text,
.woocommerce textarea,
.woocommerce select,
.select2-container--default .select2-selection--single {
  min-height: 44px;
  border: 1px solid var(--fm-line);
  border-radius: 12px;
  background: var(--fm-panel);
  color: var(--fm-text);
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: auto;
  float: none;
  margin: 0;
  padding: 22px;
  border: 1px solid rgba(245, 245, 245, 0.08);
  border-radius: var(--fm-radius);
  background: var(--fm-panel);
}

.woocommerce ul.products li.product a img {
  border-radius: 16px;
  background: #000;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: var(--fm-text);
  font-size: 20px;
  line-height: 1.2;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.wc-block-components-button {
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid var(--fm-blue);
  border-radius: 999px;
  background: var(--fm-blue);
  color: #fff;
  font-weight: 500;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.wc-block-components-button:hover {
  border-color: var(--fm-blue-hover);
  background: var(--fm-blue-hover);
  color: #fff;
}

.woocommerce div.product {
  color: var(--fm-text);
}

.woocommerce div.product div.images img,
.woocommerce div.product div.summary {
  border-radius: var(--fm-radius);
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
  padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  border-color: var(--fm-line);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: var(--fm-panel);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  background: var(--fm-surface);
  color: var(--fm-text);
}

.woocommerce table.shop_table,
.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce-checkout #order_review,
.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-account .woocommerce-MyAccount-navigation {
  border: 1px solid var(--fm-line);
  border-radius: 18px;
  background: var(--fm-panel);
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  border-color: var(--fm-line);
}

.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce-checkout #order_review,
.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-account .woocommerce-MyAccount-navigation {
  padding: 24px;
}

.woocommerce form.checkout_coupon,
.woocommerce form.login,
.woocommerce form.register {
  border-color: var(--fm-line);
  border-radius: 18px;
  background: var(--fm-panel);
}

.woocommerce-checkout #payment {
  background: var(--fm-panel-soft);
  color: var(--fm-text);
}

.woocommerce-checkout #payment div.payment_box {
  background: #2a2a2d;
  color: var(--fm-muted);
}

.woocommerce-checkout #payment div.payment_box::before {
  border-bottom-color: #2a2a2d;
}

.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
  border-top-color: var(--fm-blue);
  background: var(--fm-panel-soft);
  color: var(--fm-text);
}

.woocommerce-info::before,
.woocommerce-message::before {
  color: var(--fm-blue);
}

.woocommerce a.remove {
  color: var(--fm-muted) !important;
}

.woocommerce a.remove:hover {
  background: var(--fm-blue);
  color: #fff !important;
}

@media (max-width: 900px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .woocommerce ul.products {
    grid-template-columns: 1fr;
  }
}

/* 0.3.34: official store and shared WooCommerce purchase flow. */
body.woocommerce-page .fm-main,
body.woocommerce-cart .fm-main,
body.woocommerce-checkout .fm-main,
body.woocommerce-account .fm-main {
  color: var(--fm-text);
  background: #000;
}

.fm-woocommerce-shell {
  color: var(--fm-text);
}

.fm-woocommerce-shell a:not(.button) {
  color: #66c9f0;
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary {
  box-sizing: border-box;
}

.woocommerce div.product div.images {
  overflow: hidden;
  padding: clamp(14px, 2vw, 24px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  background: #0b0b0c;
}

.woocommerce div.product div.images .flex-control-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.woocommerce div.product div.images .flex-control-thumbs li {
  width: auto;
}

.woocommerce div.product div.summary {
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #111113;
}

.woocommerce div.product .product_meta,
.woocommerce div.product .woocommerce-product-details__short-description {
  color: var(--fm-muted);
}

.woocommerce div.product form.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.woocommerce .quantity .qty {
  min-width: 72px;
  min-height: 42px;
  border: 1px solid var(--fm-line);
  border-radius: 999px;
  background: #0b0b0c;
  color: var(--fm-text);
}

.woocommerce div.product .stock.in-stock {
  color: #78d7ab;
}

.woocommerce div.product .stock.out-of-stock {
  color: #ff8f8f;
}

.woocommerce div.product .woocommerce-tabs {
  padding-top: 48px;
}

.woocommerce div.product .woocommerce-tabs .panel {
  color: var(--fm-muted);
}

.woocommerce div.product .woocommerce-tabs .panel h2,
.woocommerce div.product .related > h2,
.woocommerce div.product .upsells > h2 {
  color: var(--fm-text);
}

.woocommerce table.shop_table {
  overflow: hidden;
  color: var(--fm-text);
}

.woocommerce table.shop_table tbody th,
.woocommerce table.shop_table tfoot td,
.woocommerce table.shop_table tfoot th {
  border-color: var(--fm-line);
}

.woocommerce-cart table.cart img {
  width: 84px;
  border-radius: 12px;
  background: #000;
}

.woocommerce-cart table.cart td.actions .coupon {
  display: flex;
  gap: 8px;
}

.woocommerce-cart table.cart td.actions .coupon .input-text {
  width: min(220px, 52vw);
  padding: 0 14px;
}

.woocommerce-cart .cart-collaterals .cart_totals h2,
.woocommerce-checkout h3,
.woocommerce-account h2 {
  color: var(--fm-text);
}

.woocommerce-checkout .col2-set,
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
  box-sizing: border-box;
}

.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-additional-fields {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--fm-line);
  border-radius: 18px;
  background: var(--fm-panel);
}

.woocommerce form .form-row label {
  color: var(--fm-text);
  font-size: 13px;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  padding: 10px 14px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--fm-text);
  line-height: 44px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 9px;
}

.select2-dropdown,
.select2-search--dropdown .select2-search__field,
.select2-container--default .select2-results__option[aria-selected="true"] {
  border-color: var(--fm-line);
  background: #19191b;
  color: var(--fm-text);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: var(--fm-blue);
  color: #fff;
}

.woocommerce-checkout #payment ul.payment_methods {
  border-color: var(--fm-line);
}

.woocommerce-checkout #payment label,
.woocommerce-checkout #payment .payment_method_paypal a {
  color: var(--fm-text);
}

.woocommerce-checkout #payment .place-order {
  margin-bottom: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation li + li {
  border-top: 1px solid var(--fm-line);
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: block;
  padding: 12px 0;
  text-decoration: none;
}

/* Centred guest login card for My Account. */
body.woocommerce-account:not(.logged-in) .fm-page-header {
  max-width: none;
  margin-bottom: clamp(48px, 6vw, 72px);
  text-align: center;
}

body.woocommerce-account:not(.logged-in) .fm-entry-content > .woocommerce {
  width: min(560px, 100%);
  max-width: none;
  margin-inline: auto;
}

body.woocommerce-account:not(.logged-in) .fm-entry-content > .woocommerce > h2 {
  margin: 0 0 24px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  text-align: center;
}

body.woocommerce-account:not(.logged-in) form.woocommerce-form-login {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: clamp(28px, 4vw, 40px);
  border-radius: 24px;
}

body.woocommerce-account:not(.logged-in) form.woocommerce-form-login .form-row {
  margin: 0 0 22px;
  padding: 0;
}

body.woocommerce-account:not(.logged-in) form.woocommerce-form-login > .form-row:nth-of-type(2) {
  margin-bottom: 0px;
}

body.woocommerce-account:not(.logged-in) form.woocommerce-form-login .form-row label {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.35;
}

body.woocommerce-account:not(.logged-in) form.woocommerce-form-login input.input-text {
  min-height: 52px;
  border-radius: 9px;
  background: #f5f5f7;
  color: #111;
}

body.woocommerce-account:not(.logged-in) form.woocommerce-form-login .password-input {
  display: block;
}

body.woocommerce-account:not(.logged-in) form.woocommerce-form-login .show-password-input {
  width: 36px;
  height: 36px;
  right: 8px;
  display: inline-grid;
  place-items: center;
  border: 0;
  background: transparent;
}

body.woocommerce-account:not(.logged-in) form.woocommerce-form-login .show-password-input::before {
  width: 22px;
  height: 22px;
  margin: 0;
  background: transparent url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 22 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 11C4.8 7.8 7.45 6.2 11 6.2C14.55 6.2 17.2 7.8 19 11C17.2 14.2 14.55 15.8 11 15.8C7.45 15.8 4.8 14.2 3 11Z' stroke='%23111111' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='11' cy='11' r='2.5' stroke='%23111111' stroke-width='1.6'/%3E%3C/svg%3E") center / 22px 22px no-repeat;
}

body.woocommerce-account:not(.logged-in) form.woocommerce-form-login > .form-row:nth-of-type(3) {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

body.woocommerce-account:not(.logged-in) form.woocommerce-form-login .woocommerce-form-login__rememberme {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}

body.woocommerce-account:not(.logged-in) form.woocommerce-form-login .woocommerce-form-login__rememberme input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 18px;
}

body.woocommerce-account:not(.logged-in) form.woocommerce-form-login .woocommerce-form-login__submit {
  min-width: 142px;
  align-self: center;
}

body.woocommerce-account:not(.logged-in) form.woocommerce-form-login .lost_password {
  margin: 0;
  text-align: center;
}

@media (max-width: 640px) {
  body.woocommerce-account:not(.logged-in) .fm-page-header {
    margin-bottom: 40px;
  }

  body.woocommerce-account:not(.logged-in) form.woocommerce-form-login {
    padding: 24px 20px;
    border-radius: 20px;
  }
}

/* Shared machine and accessory purchase layouts. */
.fm-alpha-purchase-page {
  min-height: 100vh;
  overflow: clip;
  color: var(--fm-text);
  background: #000;
}

.fm-alpha-configurator {
  padding: clamp(72px, 7vw, 104px) 24px clamp(112px, 12vw, 176px);
  background:
    radial-gradient(circle at 18% 8%, rgba(18, 160, 220, 0.09), transparent 27%),
    #000;
}

.fm-alpha-configurator-grid {
  width: min(1900px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(460px, 0.62fr);
  gap: clamp(48px, 3vw, 72px);
  align-items: start;
}

.fm-alpha-gallery {
  position: sticky;
  top: 92px;
  width: min(100%, calc(100vh - 260px));
  min-width: 0;
  justify-self: start;
}

.fm-alpha-gallery-stage {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  background: #f5f5f7;
}

.fm-alpha-gallery-stage img {
  width: 100%;
  height: 100%;
  display: block;
}

.fm-alpha-gallery-stage img {
  padding: 0;
  object-fit: contain;
  transition: opacity 180ms ease;
}

.fm-alpha-gallery-thumbnails-shell {
  position: relative;
  margin-top: 16px;
  padding-right: 54px;
  padding-left: 54px;
}

.fm-alpha-gallery-thumbnails {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.fm-alpha-gallery-thumbnails::-webkit-scrollbar {
  display: none;
}

.fm-alpha-gallery-thumbnail {
  min-width: 0;
  flex: 0 0 clamp(72px, 8vw, 92px);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 13px;
  background: #f5f5f7;
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color 180ms ease, transform 180ms ease;
}

.fm-alpha-gallery-thumbnail:hover,
.fm-alpha-gallery-thumbnail:focus-visible,
.fm-alpha-gallery-thumbnail.is-active {
  border-color: var(--fm-blue);
}

.fm-alpha-gallery-thumbnail:focus-visible {
  outline: 2px solid rgba(18, 160, 220, 0.42);
  outline-offset: 2px;
}

.fm-alpha-gallery-thumbnail img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.fm-alpha-gallery-arrow {
  position: absolute;
  top: 50%;
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #fff;
  background: rgba(17, 17, 19, 0.92);
  font-size: 18px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: border-color 180ms ease, background 180ms ease, opacity 180ms ease;
}

.fm-alpha-gallery-prev {
  left: 0;
}

.fm-alpha-gallery-next {
  right: 0;
}

.fm-alpha-gallery-arrow:hover,
.fm-alpha-gallery-arrow:focus-visible {
  border-color: var(--fm-blue);
  background: var(--fm-blue);
}

.fm-alpha-gallery-arrow:disabled {
  opacity: 0.34;
  cursor: default;
}

.fm-alpha-gallery-arrow[hidden] {
  display: none;
}

.fm-alpha-purchase-options {
  width: 100%;
  max-width: 580px;
  min-width: 0;
  justify-self: end;
}

.fm-alpha-purchase-header {
  padding: 10px 0 clamp(36px, 4vw, 54px);
}

.fm-alpha-purchase-header > p,
.fm-alpha-step-heading p {
  margin: 0;
  color: var(--fm-blue);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.fm-alpha-purchase-header h1 {
  margin: 16px 0 0;
  color: #f5f5f7;
  font-size: clamp(52px, 6vw, 82px);
  font-weight: 670;
  line-height: 0.96;
  letter-spacing: -0.02em;
}

.fm-accessory-purchase-page .fm-alpha-purchase-header h1 {
  max-width: 620px;
  font-size: clamp(36px, 4.25vw, 58px);
  line-height: 1.03;
  letter-spacing: -0.02em;
}

.fm-alpha-purchase-price {
  margin-top: 28px;
  color: #a1a1a6;
  font-size: clamp(21px, 2vw, 27px);
  line-height: 1.25;
}

.fm-alpha-purchase-price del {
  opacity: 0.55;
}

.fm-alpha-purchase-price ins {
  color: #f5f5f7;
  text-decoration: none;
}

.fm-alpha-purchase-step,
.fm-alpha-purchase-summary {
  margin: 0 0 18px;
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 26px;
  background: #111113;
}

.fm-alpha-step-heading {
  width: 100%;
  display: block;
}

.fm-alpha-step-heading h2 {
  display: block;
  margin: 0;
  color: #f5f5f7;
  font-size: clamp(23px, 2.25vw, 32px);
  font-weight: 630;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-align: left;
}

.fm-alpha-taobao-option > p,
.fm-alpha-accessory-step > p,
.fm-alpha-purchase-summary > p {
  margin: 20px 0 0;
  color: #a1a1a6;
  font-size: 15px;
  line-height: 1.62;
}

.fm-alpha-taobao-option > a {
  min-height: 44px;
  margin-top: 24px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--fm-blue);
  font-size: 14px;
  font-weight: 620;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}

.fm-alpha-taobao-option > a:hover,
.fm-alpha-taobao-option > a:focus-visible {
  color: #fff;
  background: var(--fm-blue-hover);
  transform: translateY(-1px);
}

.fm-accessory-cart-action {
  margin-top: 16px;
}

.fm-accessory-cart-action form.cart {
  margin: 0;
  display: block;
}

.fm-accessory-cart-action form.cart::before,
.fm-accessory-cart-action form.cart::after {
  display: none;
}

.woocommerce .fm-accessory-cart-action form.cart .single_add_to_cart_button {
  width: 100%;
  min-height: 52px;
  padding: 0 26px;
  float: none;
  border-color: var(--fm-blue);
  background: var(--fm-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 620;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.woocommerce .fm-accessory-cart-action form.cart:not(.variations_form) {
  display: grid;
  grid-template-columns: minmax(82px, 0.25fr) minmax(0, 1fr);
  gap: 12px;
}

.woocommerce .fm-accessory-cart-action form.cart .quantity {
  width: 100%;
  margin: 0;
  float: none;
}

.woocommerce .fm-accessory-cart-action form.cart .quantity .qty {
  width: 100%;
  min-height: 52px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  color: #f5f5f7;
  background: #111113;
  font: inherit;
}

.fm-accessory-cart-action form.variations_form {
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  background: #111113;
}

.woocommerce .fm-accessory-cart-action form.variations_form table.variations {
  width: 100%;
  margin: 0 0 20px;
  border: 0;
}

.woocommerce .fm-accessory-cart-action form.variations_form table.variations tr,
.woocommerce .fm-accessory-cart-action form.variations_form table.variations th,
.woocommerce .fm-accessory-cart-action form.variations_form table.variations td {
  display: block;
  padding: 0;
  border: 0;
}

.woocommerce .fm-accessory-cart-action form.variations_form table.variations th.label {
  margin-bottom: 10px;
  color: #f5f5f7;
  font-size: 13px;
  font-weight: 620;
  line-height: 1.4;
  text-align: left;
}

.woocommerce .fm-accessory-cart-action form.variations_form table.variations td.value {
  position: relative;
}

.woocommerce .fm-accessory-cart-action form.variations_form select {
  width: 100%;
  min-height: 48px;
  padding: 0 42px 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #f5f5f7;
  background: #1b1b1e;
  font: inherit;
}

.woocommerce .fm-accessory-cart-action form.variations_form .reset_variations {
  margin-top: 10px;
  display: inline-block;
  color: var(--fm-blue);
  font-size: 12px;
  text-decoration: none;
}

.woocommerce .fm-accessory-cart-action .woocommerce-variation-description,
.woocommerce .fm-accessory-cart-action .woocommerce-variation-availability,
.woocommerce .fm-accessory-cart-action .woocommerce-variation-price {
  margin: 0 0 14px;
  color: #a1a1a6;
  font-size: 14px;
  line-height: 1.5;
}

.woocommerce .fm-accessory-cart-action .woocommerce-variation-price .price {
  color: #f5f5f7;
  font-size: 20px;
}

.woocommerce .fm-accessory-cart-action .woocommerce-variation-add-to-cart {
  display: grid;
  grid-template-columns: minmax(82px, 0.25fr) minmax(0, 1fr);
  gap: 12px;
}

.woocommerce .fm-accessory-cart-action .woocommerce-variation-add-to-cart::before,
.woocommerce .fm-accessory-cart-action .woocommerce-variation-add-to-cart::after {
  display: none;
}

.woocommerce .fm-accessory-cart-action form.cart .single_add_to_cart_button:hover,
.woocommerce .fm-accessory-cart-action form.cart .single_add_to_cart_button:focus-visible {
  border-color: var(--fm-blue-hover);
  background: var(--fm-blue-hover);
  color: #fff;
}

.fm-accessory-cart-action .stock {
  margin: 0;
  color: #a1a1a6;
  font-size: 14px;
}

.fm-alpha-purchase-form,
.fm-alpha-accessory-step {
  margin: 0;
}

.fm-alpha-accessory-step {
  min-width: 0;
}

.fm-alpha-accessory-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.fm-alpha-accessory-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: start;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: #080809;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.fm-alpha-accessory-card:hover {
  border-color: rgba(18, 160, 220, 0.56);
  transform: translateY(-1px);
}

.fm-alpha-accessory-card.is-selected {
  border-color: var(--fm-blue);
  background: #0a1115;
  box-shadow: inset 0 0 0 1px var(--fm-blue);
}

.fm-alpha-accessory-card.is-unavailable {
  opacity: 0.48;
  cursor: not-allowed;
}

.fm-alpha-accessory-card.is-unavailable:hover {
  border-color: rgba(255, 255, 255, 0.09);
  transform: none;
}

.fm-alpha-accessory-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.fm-alpha-accessory-card:has(input:focus-visible) {
  outline: 2px solid rgba(18, 160, 220, 0.55);
  outline-offset: 2px;
}

.fm-alpha-accessory-media {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  display: block;
  align-self: start;
  background: #f5f5f7;
}

.fm-alpha-accessory-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.fm-alpha-accessory-copy {
  min-height: 100%;
  box-sizing: border-box;
  padding: 14px 42px 14px 17px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.fm-alpha-accessory-copy strong {
  color: #f5f5f7;
  font-size: 14px;
  font-weight: 620;
  line-height: 1.32;
}

.fm-alpha-accessory-description {
  margin-top: 7px;
  overflow: visible;
  display: block;
  color: #86868b;
  font-size: 12px;
  line-height: 1.44;
}

.fm-alpha-accessory-meta {
  margin-top: auto;
  padding-top: 8px;
  color: #a1a1a6;
  font-size: 13px;
  line-height: 1.3;
}

.fm-alpha-accessory-card.is-unavailable .fm-alpha-accessory-meta {
  color: #ff9e9e;
}

.fm-alpha-accessory-check {
  position: absolute;
  right: 13px;
  bottom: 13px;
  width: 19px;
  height: 19px;
  border: 1px solid #5d5d62;
  border-radius: 50%;
  background: #111113;
  transition: border-color 160ms ease, background 160ms ease;
}

.fm-alpha-accessory-check::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  width: 5px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  opacity: 0;
  transform: rotate(45deg) scale(0.68);
  transition: opacity 160ms ease, transform 160ms ease;
}

.fm-alpha-accessory-card.is-selected .fm-alpha-accessory-check {
  border-color: var(--fm-blue);
  background: var(--fm-blue);
}

.fm-alpha-accessory-card.is-selected .fm-alpha-accessory-check::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.fm-alpha-purchase-summary {
  margin-top: clamp(28px, 4vw, 44px);
  margin-bottom: 0;
}

.fm-alpha-summary-list,
.fm-alpha-summary-accessories {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.fm-alpha-summary-accessories {
  margin-top: 0;
}

.fm-alpha-summary-list li,
.fm-alpha-summary-accessories li {
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #d2d2d7;
  font-size: 14px;
  line-height: 1.45;
}

.fm-alpha-summary-list li strong,
.fm-alpha-summary-accessories li strong {
  flex: 0 0 auto;
  color: #f5f5f7;
  font-weight: 520;
  white-space: nowrap;
}

.fm-alpha-summary-list .fm-alpha-summary-empty {
  display: block;
  color: #77777c;
}

.fm-alpha-summary-total {
  padding: 24px 0 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  color: #f5f5f7;
  font-size: 18px;
}

.fm-alpha-summary-total strong {
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 650;
  letter-spacing: -0.025em;
}

.fm-alpha-add-to-cart {
  width: 100%;
  min-height: 52px;
  margin-top: 26px;
  padding: 0 24px;
  border: 1px solid var(--fm-blue);
  border-radius: 999px;
  color: #fff;
  background: var(--fm-blue);
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.fm-alpha-add-to-cart:hover,
.fm-alpha-add-to-cart:focus-visible {
  border-color: var(--fm-blue-hover);
  background: var(--fm-blue-hover);
}

.fm-alpha-add-to-cart:disabled {
  border-color: #3a3a3f;
  color: #77777c;
  background: #242427;
  cursor: not-allowed;
}

.fm-alpha-purchase-summary > p {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.fm-alpha-purchase-page .fm-product-faq {
  background: #111113;
}

.fm-alpha-purchase-page .fm-product-faq-list details {
  border-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 1080px) {
  .fm-alpha-configurator-grid {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.82fr);
    gap: 38px;
  }

  .fm-alpha-accessory-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .fm-alpha-configurator {
    padding: 76px 18px 96px;
  }

  .fm-alpha-configurator-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .fm-alpha-gallery {
    position: static;
    width: 100%;
    justify-self: stretch;
  }

  .fm-alpha-purchase-options {
    max-width: none;
    justify-self: stretch;
  }

  .fm-alpha-gallery-stage {
    border-radius: 24px;
  }

  .fm-alpha-accessory-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .fm-alpha-configurator {
    padding: 62px 14px 78px;
  }

  .fm-alpha-configurator-grid {
    gap: 30px;
  }

  .fm-alpha-gallery-stage {
    border-radius: 20px;
  }

  .fm-alpha-gallery-thumbnails-shell {
    padding-right: 48px;
    padding-left: 48px;
  }

  .fm-alpha-gallery-thumbnails {
    gap: 11px;
  }

  .fm-alpha-gallery-thumbnail {
    flex-basis: 72px;
  }

  .fm-alpha-gallery-arrow {
    width: 38px;
    height: 38px;
  }

  .fm-alpha-purchase-header {
    padding-bottom: 30px;
  }

  .fm-alpha-purchase-header h1 {
    font-size: clamp(44px, 15vw, 62px);
  }

  .fm-accessory-purchase-page .fm-alpha-purchase-header h1 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .fm-alpha-purchase-step,
  .fm-alpha-purchase-summary {
    padding: 22px 18px;
    border-radius: 21px;
  }

  .fm-alpha-step-heading h2 {
    font-size: 22px;
  }

  .woocommerce .fm-accessory-cart-action form.cart:not(.variations_form),
  .woocommerce .fm-accessory-cart-action .woocommerce-variation-add-to-cart {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .fm-accessory-cart-action form.variations_form {
    padding: 20px 18px;
  }

  .fm-alpha-accessory-grid {
    grid-template-columns: 1fr;
  }

  .fm-alpha-accessory-copy {
    padding: 10px 34px 10px 12px;
  }

  .fm-alpha-accessory-copy strong {
    font-size: 12px;
    line-height: 1.34;
  }

  .fm-alpha-accessory-description {
    margin-top: 4px;
    font-size: 10.5px;
    line-height: 1.42;
  }

  .fm-alpha-accessory-meta {
    padding-top: 4px;
    font-size: 12px;
  }

  .fm-alpha-accessory-check {
    right: 10px;
    bottom: 10px;
    width: 17px;
    height: 17px;
  }

  .fm-alpha-accessory-check::after {
    top: 3px;
    left: 5px;
    width: 4px;
    height: 7px;
  }

  .fm-alpha-summary-list li,
  .fm-alpha-summary-accessories li {
    gap: 14px;
    font-size: 13px;
  }

  .fm-alpha-summary-total {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fm-alpha-accessory-card:hover,
  .fm-alpha-taobao-option > a:hover,
  .fm-alpha-taobao-option > a:focus-visible {
    transform: none;
  }
}

/* WooCommerce Blocks cart and checkout. */
.wc-block-cart,
.wc-block-checkout,
.wc-block-components-sidebar-layout,
.wc-block-components-main,
.wc-block-components-sidebar {
  color: var(--fm-text);
}

.wc-block-components-sidebar,
.wc-block-cart-items,
.wc-block-components-order-summary,
.wc-block-components-totals-wrapper,
.wc-block-components-panel,
.wc-block-components-address-card {
  border-color: var(--fm-line) !important;
  color: var(--fm-text);
}

.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-textarea {
  border-color: var(--fm-line) !important;
  background: var(--fm-panel) !important;
  color: var(--fm-text) !important;
}

.wc-block-components-text-input label,
.wc-block-components-combobox .wc-block-components-combobox-control label,
.wc-block-components-checkbox .wc-block-components-checkbox__label,
.wc-block-components-radio-control__label,
.wc-block-components-totals-item__label,
.wc-block-components-totals-item__value {
  color: var(--fm-text) !important;
}

.wc-block-components-order-summary-item__description,
.wc-block-components-product-metadata,
.wc-block-components-totals-coupon-link,
.wc-block-components-address-card address {
  color: var(--fm-muted) !important;
}

.wc-block-cart__submit-container .wc-block-components-button,
.wc-block-cart__submit-container .wc-block-components-button:visited,
.wc-block-cart__submit-container .wc-block-components-button:hover,
.wc-block-cart__submit-container .wc-block-components-button:focus-visible,
.wc-block-cart__submit-container .wc-block-components-button__text {
  color: #fff !important;
}

body.woocommerce-cart .wp-block-button__link,
body.woocommerce-cart .wp-block-button__link:visited,
body.woocommerce-cart .wp-block-button__link:hover,
body.woocommerce-cart .wp-block-button__link:focus-visible {
  color: #fff !important;
}

/* Official store page. */
.fm-store-page {
  min-height: 70vh;
  color: var(--fm-text);
  background: #000;
}

.fm-store-hero {
  min-height: 560px;
  padding: clamp(112px, 13vw, 180px) 24px 86px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  background: radial-gradient(circle at 50% 35%, rgba(18, 160, 220, 0.12), transparent 34%), #000;
}

.fm-store-eyebrow,
.fm-store-section-heading > p,
.fm-store-card-type {
  margin: 0;
  color: var(--fm-blue);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.fm-store-hero h1 {
  margin: 14px 0 0;
  font-size: clamp(60px, 9vw, 124px);
  font-weight: 670;
  line-height: 0.92;
  letter-spacing: -0.02em;
}

.fm-store-hero > p:not(.fm-store-eyebrow) {
  max-width: 680px;
  margin: 28px auto 0;
  color: var(--fm-muted);
  font-size: clamp(16px, 1.8vw, 21px);
  line-height: 1.55;
}

.fm-store-nav {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.fm-store-nav a,
.fm-store-card-action {
  min-height: 42px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--fm-blue);
  border-radius: 999px;
  color: #fff;
  background: var(--fm-blue);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.fm-store-nav a + a {
  color: var(--fm-blue);
  background: transparent;
}

.fm-store-section {
  padding: clamp(86px, 10vw, 140px) 24px;
  scroll-margin-top: 60px;
  background: #111113;
}

.fm-store-section + .fm-store-section {
  background: #000;
}

.fm-store-section-heading,
.fm-store-grid,
.fm-store-empty {
  width: min(1360px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.fm-store-section-heading h2 {
  margin: 12px 0 0;
  font-size: clamp(42px, 6vw, 82px);
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.fm-store-grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.fm-store-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 26px;
  background: #0b0b0c;
}

.fm-store-card-media {
  overflow: hidden;
  display: block;
  aspect-ratio: 1 / 1;
  background: #050505;
}

.fm-store-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  transition: transform 300ms ease;
}

.fm-store-card:hover .fm-store-card-media img {
  transform: scale(1.025);
}

.fm-store-card-copy {
  min-height: 230px;
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.fm-store-card h3 {
  margin: 10px 0 0;
  font-size: clamp(19px, 1.5vw, 23px);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.fm-store-card h3 a {
  color: var(--fm-text);
  text-decoration: none;
}

.fm-store-card-price,
.fm-store-card-status {
  margin: 13px 0 0;
  color: var(--fm-muted);
  font-size: 14px;
}

.fm-store-card-status.is-out-of-stock {
  margin-top: auto;
  color: #ff9e9e;
}

.fm-store-card-action {
  min-height: 36px;
  margin-top: auto;
  padding: 0 15px;
}

.fm-store-empty {
  padding: 100px 24px;
  text-align: center;
}

@media (max-width: 1100px) {
  .fm-store-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .woocommerce div.product div.summary {
    padding: 24px;
  }

  .woocommerce-cart table.cart td.actions .coupon {
    display: grid;
    grid-template-columns: 1fr;
  }

  .woocommerce-cart table.cart td.actions .coupon .input-text {
    width: 100%;
  }

  .fm-store-hero {
    min-height: 470px;
    padding: 96px 16px 70px;
  }

  .fm-store-section {
    padding: 76px 16px;
  }

  .fm-store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .fm-store-card {
    border-radius: 20px;
  }

  .fm-store-card-copy {
    min-height: 210px;
    padding: 18px;
  }
}

@media (max-width: 520px) {
  .fm-store-grid {
    grid-template-columns: 1fr;
  }

  .fm-store-card-copy {
    min-height: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fm-store-card-media img {
    transition: none;
  }
}
