/* Account and checkout refinements for Steed Lux Parts. */

.supei-login-page--account {
  --supei-login-drawer-top: calc(32px + var(--hf-header-height, 56px));
  --supei-login-bg: #f6f9fc;
  --supei-login-panel-bg: #ffffff;
  --supei-login-panel-alt: #f7fafd;
  --supei-login-border: #dbe6f2;
  --supei-login-border-strong: #b8c8dc;
  --supei-login-text: #142033;
  --supei-login-text-muted: #607086;
  --supei-login-primary: #1769d1;
  --supei-login-primary-hover: #0f55ad;
  --supei-login-focus: rgba(23, 105, 209, 0.16);
  isolation: isolate;
  margin-top: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 255, 0.98) 46%, rgba(238, 246, 255, 0.98) 100%);
  color: var(--supei-login-text);
}

body.woocommerce-account .supei-hf-quickbar {
  display: none;
}

body.supei-login-drawer-open .supei-hf-mobile-bottom-nav {
  display: none;
}

.supei-account-page__breadcrumb {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.supei-account-page__breadcrumb .catalog-breadcrumb {
  padding: 10px 0;
  font-size: 12px;
}

.supei-account-page__content {
  max-width: 1280px;
  padding-top: 24px;
  padding-bottom: 72px;
}

.supei-account-page__entry {
  display: flow-root;
  color: #1e293b;
  line-height: 1.7;
}

body.woocommerce-account.logged-in #main-content > .container {
  max-width: 1280px !important;
  padding-top: 24px !important;
  padding-bottom: 72px !important;
}

body.woocommerce-account.logged-in #main-content > .container > div {
  display: flow-root;
}

.supei-account-center {
  width: 100%;
}

.supei-account-profile-card {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  padding: 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, #102a50, #06162f);
  color: #ffffff;
}

.supei-account-profile-card__identity {
  display: grid;
  justify-items: center;
  gap: 8px;
  flex: 0 0 82px;
}

.supei-account-profile-card__mark {
  position: relative;
  display: grid;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(191, 219, 254, 0.42);
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.22) 26%, transparent 27%),
    linear-gradient(145deg, #dbeafe 0%, #60a5fa 44%, #1d4ed8 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 16px 30px rgba(0, 0, 0, 0.22);
  color: #0b2344;
  font-size: 20px;
  font-weight: 800;
}

.supei-account-profile-card__mark::after {
  content: "";
  position: absolute;
  right: 3px;
  bottom: 4px;
  width: 18px;
  height: 18px;
  border: 3px solid #102a50;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
}

.supei-account-profile-card__mark.is-pending::after {
  background: #f59e0b;
}

.supei-account-profile-card__mark.is-verified::after {
  background: #22c55e;
}

.supei-account-profile-card__label {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border: 1px solid rgba(191, 219, 254, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.supei-account-profile-card__body {
  min-width: 0;
  flex: 1 1 auto;
}

.supei-account-profile-card__heading {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.supei-account-profile-card__name {
  font-size: 18px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.supei-account-profile-card__meta {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
}

.supei-account-profile-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
}

.supei-account-profile-card__facts span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid rgba(191, 219, 254, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.3;
}

.supei-account-profile-card .verification-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.supei-account-profile-card .verification-badge.verified {
  border: 1px solid rgba(7, 193, 96, 0.3);
  background: rgba(7, 193, 96, 0.2);
  color: #4ade80;
}

.supei-account-profile-card .verification-badge.pending {
  border: 1px solid rgba(255, 156, 0, 0.3);
  background: rgba(255, 156, 0, 0.2);
  color: #fbbf24;
}

.supei-account-layout {
  display: grid;
  grid-template-columns: minmax(190px, 250px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  clear: both;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation {
  float: none;
  width: auto;
  margin: 0;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation ul {
  display: grid;
  gap: 4px;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation li {
  margin: 0;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation li a {
  min-height: 44px;
  padding: 11px 14px;
  border-radius: 6px;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-content {
  float: none;
  width: auto;
  min-width: 0;
  min-height: 420px;
  overflow: visible;
  color: #1e293b;
}

.supei-account-main > p:first-child {
  margin-top: 0;
}

.supei-account-panel,
.woocommerce-MyAccount-content > p,
.woocommerce-MyAccount-content > form,
.woocommerce-MyAccount-content > .woocommerce-info,
.woocommerce-MyAccount-content .woocommerce-orders-table,
.woocommerce-MyAccount-content .woocommerce-addresses,
.woocommerce-MyAccount-content .woocommerce-EditAccountForm {
  background: #ffffff;
  color: #1e293b;
}

.woocommerce-MyAccount-content .woocommerce-info {
  display: flow-root;
}

.supei-account-panel {
  border: 1px solid #dbe5f2;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.supei-order-business-details {
  margin-top: 24px;
}

.supei-order-business-details h2 {
  margin-bottom: 12px;
  color: #102033;
  font-size: 20px;
}

.supei-order-business-details .shop_table th {
  width: 32%;
  color: #23364d;
}

.supei-order-business-details .shop_table td {
  color: #122033;
}

.supei-login-page--account::before,
.supei-login-page--account::after {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: -1;
  pointer-events: none;
}

.supei-login-page--account::before {
  background:
    repeating-linear-gradient(115deg, transparent 0 12%, rgba(57, 126, 214, 0.055) 14%, transparent 22%),
    linear-gradient(100deg, transparent 0%, rgba(180, 211, 247, 0.34) 35%, rgba(255, 255, 255, 0.82) 50%, transparent 68%);
  filter: blur(8px);
  opacity: 0.9;
  animation: steed-account-flow 20s linear infinite;
}

.supei-login-page--account::after {
  background:
    linear-gradient(80deg, transparent 20%, rgba(255, 255, 255, 0.72) 42%, rgba(174, 211, 250, 0.24) 52%, transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(230, 240, 252, 0.42));
  mix-blend-mode: normal;
  animation: steed-account-sweep 14s ease-in-out infinite alternate;
}

@keyframes steed-account-flow {
  0% { transform: translate3d(-7%, -2%, 0) rotate(0deg); }
  50% { transform: translate3d(7%, 3%, 0) rotate(3deg); }
  100% { transform: translate3d(-7%, -2%, 0) rotate(0deg); }
}

@keyframes steed-account-sweep {
  0% { transform: translate3d(-6%, 0, 0); opacity: 0.58; }
  100% { transform: translate3d(6%, 0, 0); opacity: 0.9; }
}

.supei-login-page--account .supei-login-stage {
  min-height: calc(100vh - 56px);
}

.supei-login-page--account .supei-login-stage h1,
.supei-login-page--account .supei-login-stage__card h2,
.supei-login-page--account .supei-login-drawer__heading h2,
.supei-login-page--account .supei-login-field label {
  color: var(--supei-login-text);
}

.supei-login-page--account .supei-login-stage__eyebrow,
.supei-login-page--account .supei-login-drawer__eyebrow,
.supei-login-page--account .supei-login-forgot {
  color: var(--supei-login-primary);
}

.supei-login-page--account .supei-login-stage__lead,
.supei-login-page--account .supei-login-stage__card p,
.supei-login-page--account .supei-login-drawer__intro,
.supei-login-page--account .supei-login-remember,
.supei-login-page--account .supei-login-footer-text {
  color: var(--supei-login-text-muted);
}

.supei-login-page--account .supei-login-stage__card,
.supei-login-page--account .supei-login-stage__benefits li {
  border-color: rgba(194, 209, 226, 0.84);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 44px rgba(27, 44, 70, 0.08);
  backdrop-filter: blur(10px);
}

.supei-login-page--account .supei-login-stage__benefits li::before {
  background: #1a7f64;
  box-shadow: 0 0 0 4px rgba(26, 127, 100, 0.12);
}

.supei-login-page--account .supei-login-stage__trigger,
.supei-login-page--account .supei-login-submit,
.supei-login-page--account .woocommerce-form-register__submit {
  border-color: #1769d1;
  background: #1769d1;
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(23, 105, 209, 0.22);
}

.supei-login-page--account .supei-login-stage__trigger:hover,
.supei-login-page--account .supei-login-submit:hover,
.supei-login-page--account .woocommerce-form-register__submit:hover {
  border-color: var(--supei-login-primary-hover);
  background: var(--supei-login-primary-hover);
}

.supei-login-page--account .supei-login-stage__secondary,
.supei-login-page--account .supei-login-drawer__register-link {
  border-color: var(--supei-login-border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--supei-login-text);
  box-shadow: 0 8px 20px rgba(27, 44, 70, 0.06);
}

.supei-login-page--account .supei-login-stage__secondary:hover,
.supei-login-page--account .supei-login-drawer__register-link:hover {
  border-color: #8eb7e8;
  background: #ffffff;
  color: var(--supei-login-primary);
}

.supei-login-page--account .supei-login-drawer__switch-link {
  width: 100%;
  margin-top: 18px;
}

.supei-login-page--account .supei-login-stage__trigger:focus-visible,
.supei-login-page--account .supei-login-stage__secondary:focus-visible,
.supei-login-page--account .supei-login-drawer__register-link:focus-visible,
.supei-login-page--account .supei-login-drawer__close:focus-visible,
.supei-login-page--account .supei-login-toggle-pw:focus-visible,
.supei-login-page--account .supei-login-submit:focus-visible,
.supei-login-page--account .woocommerce-form-register__submit:focus-visible {
  outline: 3px solid var(--supei-login-focus);
  outline-offset: 3px;
}

.supei-login-page--account .supei-login-drawer {
  top: var(--supei-login-drawer-top);
  height: auto;
  border-left: 1px solid #d8e4f1;
  background: #ffffff;
  box-shadow: -18px 0 52px rgba(32, 48, 72, 0.18);
}

.supei-login-page--account .supei-login-drawer__header {
  border-color: #e3edf7;
}

.supei-login-page--account .supei-login-drawer__close {
  color: var(--supei-login-text);
}

.supei-login-page--account .supei-login-input-wrap {
  position: relative;
  width: 100%;
}

.supei-login-page--account .supei-login-drawer__note,
.supei-login-page--account .supei-register-note {
  border: 1px solid #cfe1f7;
  background: #f2f7fe;
  color: #245784;
}

.supei-login-page--account .supei-login-input-wrap input,
.supei-login-page--account .woocommerce-form-register .input-text {
  width: 100%;
  border-color: #cbd8e7;
  background: #ffffff;
  color: var(--supei-login-text);
}

.supei-login-page--account .supei-login-input-wrap input[type="password"],
.supei-login-page--account .supei-login-input-wrap input[type="text"]#supei-login-password {
  padding-right: 52px;
}

.supei-login-page--account .supei-login-toggle-pw {
  right: 6px;
  border-radius: 6px;
}

.supei-login-page--account .supei-login-input-wrap input::placeholder,
.supei-login-page--account .woocommerce-form-register .input-text::placeholder {
  color: #8a99aa;
}

.supei-login-page--account .supei-login-input-wrap input:focus,
.supei-login-page--account .woocommerce-form-register .input-text:focus {
  border-color: #1769d1;
  box-shadow: 0 0 0 3px var(--supei-login-focus);
  outline: none;
}

.supei-login-page--account .woocommerce-form-register .form-row {
  margin: 0 0 18px;
}

.supei-login-page--account .woocommerce-form-register label {
  display: block;
  margin-bottom: 6px;
  color: var(--supei-login-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.supei-login-page--account .woocommerce-form-register .input-text {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 0;
}

.supei-login-page--account .supei-login-drawer-overlay {
  top: var(--supei-login-drawer-top);
  background: rgba(17, 31, 51, 0.28);
  backdrop-filter: blur(2px);
}

body.woocommerce-checkout .progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 4px 0 8px;
  overflow-x: auto;
}

body.woocommerce-checkout .supei-checkout-progress-wrap {
  padding-top: 24px;
}

body.woocommerce-checkout .supei-checkout-content {
  padding-bottom: 60px;
}

/*
 * Checkout layout owns the customer-detail columns. WooCommerce's legacy
 * .col2-set contract adds floats, fixed widths, and table-based clearfix
 * pseudo-elements. Those pseudo-elements become real grid items and push the
 * billing form into the narrow second track, so the complete legacy layout
 * contract is neutralized before the responsive grid is applied.
 */
body.woocommerce-checkout #customer_details {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 24px;
}

body.woocommerce-checkout #customer_details::before,
body.woocommerce-checkout #customer_details::after {
  display: none;
  content: none;
}

body.woocommerce-checkout #customer_details > .col-1,
body.woocommerce-checkout #customer_details > .col-2 {
  float: none;
  width: auto;
  min-width: 0;
}

body.woocommerce-checkout .progress-step {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  min-height: 44px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

body.woocommerce-checkout .progress-step:hover {
  background: #f3f8ff;
  color: #0f5fb8;
}

body.woocommerce-checkout .progress-step:focus-visible {
  outline: 3px solid rgba(31, 140, 255, 0.22);
  outline-offset: 3px;
}

body.woocommerce-checkout .progress-step .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid #cfdbea;
  border-radius: 50%;
  background: #ffffff;
  color: #64748b;
  font-size: 14px;
  line-height: 1;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

body.woocommerce-checkout .progress-step .step-label {
  font-size: 14px;
}

body.woocommerce-checkout .progress-step.active {
  color: #073b91;
}

body.woocommerce-checkout .progress-step.active .step-number {
  border-color: #138dff;
  background: #138dff;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(19, 141, 255, 0.22);
}

body.woocommerce-checkout .progress-step.completed {
  color: #0f5fb8;
}

body.woocommerce-checkout .progress-step.completed .step-number {
  border-color: #a6cdfb;
  background: #e8f2ff;
  color: #0f5fb8;
}

body.woocommerce-checkout .progress-connector {
  flex: 0 1 74px;
  width: 74px;
  height: 2px;
  border-radius: 999px;
  background: #dce6f2;
  transition: background-color 0.16s ease;
}

body.woocommerce-checkout .progress-connector.completed {
  background: #138dff;
}

body.woocommerce-checkout .supei-checkout-step-action {
  margin-top: 8px;
}

body.woocommerce-checkout .supei-checkout-step-nav {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

body.woocommerce-checkout .supei-checkout-back-review {
  margin-top: 16px;
}

body.woocommerce-checkout .woocommerce-billing-fields,
body.woocommerce-checkout .woocommerce-shipping-fields,
body.woocommerce-checkout .woocommerce-additional-fields,
body.woocommerce-checkout #order_review,
body.woocommerce-checkout .woocommerce-checkout-payment {
  border: 1px solid #dbe5f2;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
  padding: 24px;
}

body.woocommerce-checkout .woocommerce-billing-fields h3,
body.woocommerce-checkout .woocommerce-shipping-fields h3,
body.woocommerce-checkout .woocommerce-additional-fields h3,
body.woocommerce-checkout #order_review_heading {
  margin: 0 0 18px;
  color: #102033;
  font-size: 20px;
}

body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper,
body.woocommerce-checkout .woocommerce-additional-fields__field-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper {
  grid-template-columns: 1fr;
}

body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row,
body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper > .form-row,
body.woocommerce-checkout .woocommerce-additional-fields__field-wrapper > .form-row {
  float: none;
  clear: none;
  width: 100%;
  min-width: 0;
  margin: 0;
}

body.woocommerce-checkout .form-row .woocommerce-input-wrapper {
  display: block;
  width: 100%;
}

body.woocommerce-checkout .form-row-wide,
body.woocommerce-checkout #billing_country_field,
body.woocommerce-checkout #billing_address_1_field,
body.woocommerce-checkout #billing_postcode_field,
body.woocommerce-checkout #shipping_country_field,
body.woocommerce-checkout #shipping_address_1_field,
body.woocommerce-checkout #shipping_postcode_field,
body.woocommerce-checkout #order_comments_field {
  grid-column: 1 / -1;
}

body.woocommerce-checkout .form-row label {
  display: block;
  margin-bottom: 7px;
  color: #23364d;
  font-size: 13px;
  font-weight: 700;
}

body.woocommerce-checkout .input-text,
body.woocommerce-checkout select,
body.woocommerce-checkout textarea,
body.woocommerce-checkout .select2-container .select2-selection--single {
  width: 100%;
  box-sizing: border-box;
  min-height: 46px;
  border: 1px solid #cfdbea;
  border-radius: 6px;
  background: #ffffff;
  color: #122033;
}

body.woocommerce-checkout .form-row .select2-container {
  width: 100% !important;
}

body.woocommerce-checkout textarea.input-text {
  min-height: 120px;
  padding-top: 12px;
}

body.woocommerce-checkout .input-text:focus,
body.woocommerce-checkout select:focus,
body.woocommerce-checkout textarea:focus,
body.woocommerce-checkout .select2-container--open .select2-selection--single {
  border-color: #1f8cff;
  box-shadow: 0 0 0 3px rgba(31, 140, 255, 0.16);
  outline: none;
}

body.woocommerce-checkout #place_order,
body.woocommerce-checkout #btn-to-step2,
body.woocommerce-checkout #btn-to-step3 {
  background: linear-gradient(135deg, #073b91, #138dff);
  border-color: #138dff;
  color: #ffffff;
}

body.woocommerce-checkout #place_order:hover,
body.woocommerce-checkout #btn-to-step2:hover,
body.woocommerce-checkout #btn-to-step3:hover {
  background: linear-gradient(135deg, #052e74, #0076e8);
}

/* Compact workshop-style checkout surface. */
body.woocommerce-checkout {
  background: #f3f3f1;
}

body.woocommerce-checkout .supei-checkout-content {
  max-width: 1060px;
  padding: 28px 20px 64px;
  font-size: 0.9rem;
}

body.woocommerce-checkout #customer_details {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.56fr);
  gap: 18px;
}

body.woocommerce-checkout .woocommerce-billing-fields,
body.woocommerce-checkout .woocommerce-shipping-fields,
body.woocommerce-checkout .woocommerce-additional-fields,
body.woocommerce-checkout #order_review,
body.woocommerce-checkout .woocommerce-checkout-payment {
  border: 1px solid #d5d7d8;
  border-radius: 4px;
  box-shadow: none;
}

body.woocommerce-checkout .woocommerce-billing-fields,
body.woocommerce-checkout .woocommerce-shipping-fields,
body.woocommerce-checkout .woocommerce-additional-fields {
  padding: 20px;
}

body.woocommerce-checkout .woocommerce-billing-fields h3,
body.woocommerce-checkout .woocommerce-shipping-fields h3,
body.woocommerce-checkout .woocommerce-additional-fields h3,
body.woocommerce-checkout #order_review_heading {
  padding-bottom: 12px;
  border-bottom: 2px solid #d9382c;
  color: #151718;
  font-size: 16px;
}

body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper,
body.woocommerce-checkout .woocommerce-additional-fields__field-wrapper {
  gap: 12px;
}

body.woocommerce-checkout .woocommerce-additional-fields h3::after {
  content: 'Brake fitment details';
}

body.woocommerce-checkout .woocommerce-additional-fields h3 {
  font-size: 0;
}

body.woocommerce-checkout .woocommerce-additional-fields h3::after {
  font-size: 16px;
}

body.woocommerce-checkout .form-row label {
  margin-bottom: 5px;
  color: #3f4447;
  font-size: 12px;
}

body.woocommerce-checkout .input-text,
body.woocommerce-checkout select,
body.woocommerce-checkout textarea,
body.woocommerce-checkout .select2-container .select2-selection--single {
  min-height: 40px;
  border-color: #b9bdc0;
  border-radius: 3px;
  background: #fafaf8;
}

body.woocommerce-checkout .input-text:focus,
body.woocommerce-checkout select:focus,
body.woocommerce-checkout textarea:focus,
body.woocommerce-checkout .select2-container--open .select2-selection--single {
  border-color: #d9382c;
  box-shadow: 0 0 0 3px rgba(217, 56, 44, 0.14);
}

body.woocommerce-checkout #place_order {
  width: 100%;
  min-height: 44px;
  border-color: #d9382c;
  border-radius: 3px;
  background: #d9382c;
  color: #ffffff;
  font-weight: 700;
}

body.woocommerce-checkout #place_order:hover {
  border-color: #ad251d;
  background: #ad251d;
}

/* Payment methods use full-width labels so customers do not have to hit a tiny radio button. */
body.woocommerce-checkout .woocommerce-checkout-payment .wc_payment_methods {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.woocommerce-checkout #payment.woocommerce-checkout-payment {
  background: #ffffff !important;
}

body.woocommerce-checkout .woocommerce-checkout-payment .wc_payment_method {
  position: relative;
  margin: 0 0 8px;
  overflow: hidden;
  border: 1px solid #d5d7d8;
  border-radius: 4px;
  background: #ffffff;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

body.woocommerce-checkout .woocommerce-checkout-payment .wc_payment_method:last-child {
  margin-bottom: 0;
}

body.woocommerce-checkout .woocommerce-checkout-payment .wc_payment_method > .input-radio {
  position: absolute;
  top: 18px;
  left: 16px;
  z-index: 1;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #d9382c;
  cursor: pointer;
}

body.woocommerce-checkout .woocommerce-checkout-payment .wc_payment_method > label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  margin: 0;
  padding: 12px 16px 12px 50px;
  color: #202427;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

body.woocommerce-checkout .woocommerce-checkout-payment .wc_payment_method > label img {
  max-height: 24px;
  width: auto;
}

body.woocommerce-checkout .woocommerce-checkout-payment .wc_payment_method > .input-radio:checked + label {
  color: #b92d23;
  background: #fff7f6;
}

body.woocommerce-checkout .woocommerce-checkout-payment .wc_payment_method:has(> .input-radio:checked) {
  border-color: #d9382c;
  background: #fffafa;
}

body.woocommerce-checkout .woocommerce-checkout-payment .payment_box {
  margin: 0;
  padding: 14px 16px 14px 50px;
  color: #50565c;
  border-top: 1px solid #f0d6d3;
  background: #fff9f8 !important;
  font-size: 13px;
  line-height: 1.5;
}

body.woocommerce-checkout #payment .payment_box::before {
  display: none !important;
}

@media (max-width: 768px) {
  body.woocommerce-checkout .woocommerce-checkout-payment .wc_payment_method > .input-radio {
    top: 17px;
    left: 14px;
  }

  body.woocommerce-checkout .woocommerce-checkout-payment .wc_payment_method > label {
    min-height: 54px;
    padding-right: 14px;
    padding-left: 48px;
  }

  body.woocommerce-checkout .woocommerce-checkout-payment .payment_box {
    padding-right: 14px;
    padding-left: 48px;
  }
}

body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
  max-width: 1060px;
  margin: 20px auto 14px;
  padding: 12px 16px;
  border: 1px solid #d5d7d8;
  border-top: 2px solid #d9382c;
  border-radius: 3px;
  background: #ffffff;
  box-shadow: none;
  font-size: 13px;
}

/* Order-received page: compact confirmation hierarchy. */
body.woocommerce-order-received {
  background: #f3f3f1;
}

.supei-order-received-heading {
  border-bottom: 1px solid #d5d7d8;
  background: #ffffff;
}

.supei-order-received-heading .container {
  max-width: 1060px;
  padding-top: 24px;
  padding-bottom: 20px;
}

.supei-order-received-heading p {
  margin: 0 0 4px;
  color: #d9382c;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.supei-order-received-heading h1 {
  margin: 0;
  color: #151718;
  font-size: 25px;
}

body.woocommerce-order-received .supei-checkout-content {
  max-width: 1060px;
  padding: 26px 20px 64px;
  font-size: 0.9rem;
}

body.woocommerce-order-received .woocommerce-order {
  color: #25292b;
}

body.woocommerce-order-received .woocommerce-thankyou-order-received {
  margin: 0;
  padding: 16px 18px;
  border-left: 3px solid #d9382c;
  background: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

body.woocommerce-order-received .woocommerce-order-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  border: 1px solid #d5d7d8;
  border-top: 0;
  background: #ffffff;
  list-style: none;
}

body.woocommerce-order-received .woocommerce-order-overview li {
  min-height: 66px;
  margin: 0;
  padding: 14px 16px;
  border-right: 1px solid #e2e3e2;
  color: #687078;
  font-size: 11px;
  text-transform: uppercase;
}

body.woocommerce-order-received .woocommerce-order-overview li:last-child {
  border-right: 0;
}

body.woocommerce-order-received .woocommerce-order-overview strong {
  display: block;
  margin-top: 4px;
  color: #151718;
  font-size: 13px;
  text-transform: none;
}

body.woocommerce-order-received .woocommerce-bacs-bank-details,
body.woocommerce-order-received .woocommerce-order-details,
body.woocommerce-order-received .woocommerce-customer-details,
body.woocommerce-order-received .supei-order-business-details {
  margin: 18px 0 0;
  padding: 20px;
  border: 1px solid #d5d7d8;
  border-radius: 3px;
  background: #ffffff;
}

body.woocommerce-order-received .woocommerce-bacs-bank-details > h2,
body.woocommerce-order-received .woocommerce-order-details__title,
body.woocommerce-order-received .woocommerce-customer-details > h2,
body.woocommerce-order-received .supei-order-business-details > h2 {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #d9382c;
  color: #151718;
  font-size: 16px;
}

body.woocommerce-order-received .wc-bacs-bank-details,
body.woocommerce-order-received .bacs_details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 0;
}

body.woocommerce-order-received .wc-bacs-bank-details li,
body.woocommerce-order-received .bacs_details li {
  margin: 0;
  padding: 10px;
  border: 1px solid #e2e3e2;
  background: #fafaf8;
  font-size: 12px;
}

body.woocommerce-order-received .woocommerce-order-details .shop_table,
body.woocommerce-order-received .supei-order-business-details .shop_table {
  margin: 0;
  border: 1px solid #d5d7d8;
  border-collapse: collapse;
  box-shadow: none;
}

body.woocommerce-order-received .woocommerce-order-details .shop_table th,
body.woocommerce-order-received .woocommerce-order-details .shop_table td,
body.woocommerce-order-received .supei-order-business-details .shop_table th,
body.woocommerce-order-received .supei-order-business-details .shop_table td {
  padding: 10px 12px;
  border-color: #e2e3e2;
  font-size: 12px;
}

body.woocommerce-order-received .woocommerce-customer-details address {
  margin: 0;
  padding: 12px;
  border: 1px solid #e2e3e2;
  background: #fafaf8;
  font-size: 12px;
  font-style: normal;
  line-height: 1.6;
}

@media (max-width: 1100px) {
  body.woocommerce-checkout #customer_details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .supei-order-received-heading .container {
    padding-top: 18px;
    padding-bottom: 16px;
  }

  .supei-order-received-heading h1 {
    font-size: 22px;
  }

  body.woocommerce-order-received .supei-checkout-content {
    padding: 18px 16px 48px;
  }

  body.woocommerce-order-received .woocommerce-order-overview {
    grid-template-columns: 1fr;
  }

  body.woocommerce-order-received .woocommerce-order-overview li,
  body.woocommerce-order-received .woocommerce-order-overview li:last-child {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid #e2e3e2;
  }

  body.woocommerce-order-received .woocommerce-order-overview li:last-child {
    border-bottom: 0;
  }

  body.woocommerce-order-received .woocommerce-bacs-bank-details,
  body.woocommerce-order-received .woocommerce-order-details,
  body.woocommerce-order-received .woocommerce-customer-details,
  body.woocommerce-order-received .supei-order-business-details {
    padding: 16px;
  }

  body.woocommerce-account.logged-in #main-content > .container {
    padding-top: 18px !important;
    padding-bottom: 48px !important;
  }

  .supei-account-page__content {
    padding-top: 18px;
    padding-bottom: 48px;
  }

  .supei-account-page__breadcrumb .catalog-breadcrumb {
    padding: 8px 0;
  }

  .supei-account-profile-card {
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
  }

  .supei-account-profile-card__identity {
    flex-basis: 60px;
  }

  .supei-account-profile-card__mark {
    width: 56px;
    height: 56px;
    font-size: 17px;
  }

  .supei-account-profile-card__mark::after {
    right: 1px;
    bottom: 2px;
    width: 16px;
    height: 16px;
  }

  .supei-account-profile-card__label {
    font-size: 9px;
    padding-right: 6px;
    padding-left: 6px;
  }

  .supei-account-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation {
    width: 100%;
    margin-bottom: 0;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation ul {
    display: flex;
    gap: 8px;
    min-width: max-content;
    padding-bottom: 4px;
  }

  body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation li {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation li a {
    min-height: 40px;
  }

  .supei-account-panel {
    padding: 18px;
  }

  body.woocommerce-checkout .progress-steps {
    justify-content: stretch;
    gap: 4px;
    overflow-x: visible;
  }

  body.woocommerce-checkout .progress-step {
    flex: 1 1 0;
    gap: 6px;
    justify-content: center;
    min-width: 0;
    min-height: 40px;
    padding: 6px;
    text-align: center;
    white-space: normal;
  }

  body.woocommerce-checkout .progress-step .step-number {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  body.woocommerce-checkout .progress-step .step-label {
    font-size: 12px;
    line-height: 1.25;
  }

  body.woocommerce-checkout .progress-connector {
    display: none;
  }

  body.woocommerce-checkout .woocommerce-billing-fields,
  body.woocommerce-checkout .woocommerce-shipping-fields,
  body.woocommerce-checkout .woocommerce-additional-fields,
  body.woocommerce-checkout #order_review,
  body.woocommerce-checkout .woocommerce-checkout-payment {
    padding: 18px;
  }

  body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
  body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper {
    grid-template-columns: 1fr;
  }

  body.woocommerce-checkout .form-row-wide,
  body.woocommerce-checkout #billing_country_field,
  body.woocommerce-checkout #billing_address_1_field,
  body.woocommerce-checkout #billing_postcode_field,
  body.woocommerce-checkout #shipping_country_field,
  body.woocommerce-checkout #shipping_address_1_field,
  body.woocommerce-checkout #shipping_postcode_field,
  body.woocommerce-checkout #order_comments_field {
    grid-column: 1;
  }
}

@media (max-width: 992px) {
  .supei-login-page--account {
    --supei-login-drawer-top: var(--hf-header-height-mobile, 48px);
  }

  .supei-login-page--account .supei-login-drawer-overlay {
    top: var(--supei-login-drawer-top);
  }
}

@media (prefers-reduced-motion: reduce) {
  .supei-login-page--account::before,
  .supei-login-page--account::after {
    animation: none;
  }
}
