html,
body.scfc-body {
  margin: 0;
  padding: 0;
  background: #f5f7fb;
}

body.scfc-body .site-header,
body.scfc-body .site-footer,
body.scfc-body .entry-header,
body.scfc-body .page-header,
body.scfc-body .entry-title {
  display: none !important;
}

#scfc-native-root {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 16px 36px;
  font-family: "Inter", "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

.scfc-spark-header {
  padding: 14px 16px 10px;
  background: #f5f7fb;
  border-bottom: 1px solid #e2e8f0;
}

.scfc-spark-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.scfc-spark-logo {
  height: 36px;
  width: auto;
}

.scfc-spark-wordmark {
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
  color: #0b1220;
}

.scfc-spark-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 4px;
  background: #fff;
}

.scfc-spark-nav a {
  color: #334155;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  padding: 8px 14px;
}

.scfc-spark-nav a:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

.scfc-spark-footer {
  padding: 8px 16px 26px;
  background: #f5f7fb;
}

.scfc-spark-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid #e2e8f0;
  padding-top: 14px;
}

.scfc-spark-footer p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.fct-customer-dashboard-layout-width {
  max-width: none !important;
}

.fct-customer-dashboard-app-container,
.fct-checkout-app-container,
.fct-checkout-root-container,
.fct-customer-root-container {
  background: transparent !important;
}

.fct-checkout-app-container,
.fct-checkout-root-container {
  max-width: 1160px !important;
  margin: 0 auto !important;
}

.fct-checkout-root-container .fct-checkout-grid {
  justify-content: center !important;
}

.fct-customer-dashboard-navs-wrap {
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 12px !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

.fct-customer-dashboard-customer-info {
  border-bottom: 1px solid #e2e8f0 !important;
  padding-bottom: 12px !important;
  margin-bottom: 10px !important;
}

.fct-customer-dashboard-customer-info img {
  width: 40px !important;
  height: 40px !important;
  border-radius: 999px !important;
}

.fct-customer-nav-link {
  border-radius: 10px !important;
  padding: 10px 12px !important;
}

.fct-customer-nav-item.active_customer_menu .fct-customer-nav-link {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
}

#fct-customer-logout-button .fct-customer-logout-btn {
  background: #fff3f2 !important;
  border: 1px solid #ffd9d6 !important;
  color: #cf2e2e !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
}

.fct-customer-dashboard-main-content .fct-customer-dashboard {
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

.fluent-cart-customer-profile-app:not(.el-dialog):not(.el-popper):not(.el-popover) {
  border: 0 !important;
  box-shadow: none !important;
}

.fct-customer-dashboard-app-container.fluent-cart-customer-profile-app {
  max-width: 1160px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: 260px minmax(0, 1fr) !important;
  gap: 22px !important;
  align-items: start !important;
}

.fct-customer-dashboard-main-content {
  min-width: 0 !important;
}

.fct-customer-root-container {
  min-height: auto !important;
}

.fct-customer-dashboard-main-content > div,
.fct-customer-dashboard-main-content .fct-customer-app {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.fct-customer-dashboard-header {
  padding: 18px 20px 12px !important;
}

.fct-customer-dashboard-table,
.fct-customer-license-table,
.fct-customer-subscriptions-table,
.fct-customer-downloads-table {
  padding: 0 20px 18px !important;
  border: 0 !important;
  box-shadow: none !important;
}

.el-table {
  border: 1px solid #eef2f7 !important;
  border-radius: 12px !important;
}

.el-table__cell {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

.badge.success {
  background: #eaf9ef !important;
  color: #0f9f56 !important;
}

.badge.danger {
  background: #fdecec !important;
  color: #c33333 !important;
}

.fct-checkout-root-container .fct-checkout-grid {
  gap: 20px !important;
}

.scfc-page-checkout #scfc-native-root > .wp-block-group,
.scfc-page-checkout #scfc-native-root > .wp-block-columns,
.scfc-page-checkout #scfc-native-root > .wp-block-post-content {
  max-width: 1160px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.scfc-page-checkout #scfc-native-root .wp-block-spacer {
  display: none !important;
}

.scfc-page-checkout .entry-content,
.scfc-page-checkout .wp-block-post-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* FluentCart instant checkout structure styling */
.scfc-page-checkout .wp-block-post-title {
  max-width: 1160px !important;
  margin: 0 auto 18px !important;
  color: #0b1220 !important;
  font-size: 54px !important;
  letter-spacing: -0.02em !important;
}

.scfc-page-checkout .fct-checkout.fct-checkout-type-instant {
  max-width: 1160px !important;
  margin: 0 auto !important;
}

.scfc-page-checkout .fluent-cart-checkout-page,
.scfc-page-checkout .fluent-cart-checkout-page-checkout-form,
.scfc-page-checkout .fct_checkout {
  width: 100% !important;
  max-width: none !important;
}

.scfc-page-checkout .fct_checkout_form {
  min-width: 0 !important;
  width: 100% !important;
  max-width: none !important;
  display: block !important;
}

.scfc-page-checkout .fct_checkout_form_items {
  display: block !important;
}

.scfc-page-checkout .fct_checkout_inner {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 380px) !important;
  gap: 22px !important;
  align-items: start !important;
  width: 100% !important;
}

.scfc-page-checkout .fct_checkout_inner > .fct_checkout_form {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 100% !important;
  max-width: none !important;
}

.scfc-page-checkout .fct_checkout_inner > .fct_checkout_summary {
  grid-column: 2 !important;
  grid-row: 1 !important;
  width: 100% !important;
  max-width: 380px !important;
  justify-self: end !important;
}

.scfc-page-checkout .fct_checkout_inner > .fct_place_order_btn_wrap {
  grid-column: 2 !important;
  grid-row: 2 !important;
  display: block !important;
  width: 100% !important;
  max-width: 380px !important;
  justify-self: end !important;
  align-self: start !important;
  margin-top: 12px !important;
}

.scfc-page-checkout .fct_checkout_form_section,
.scfc-page-checkout .fct_checkout_form .fct_checkout_tax_wrapper,
.scfc-page-checkout .fct_checkout_form .fct_checkout_agree_terms,
.scfc-page-checkout .fct_checkout_form .fct_checkout_payment_methods {
  width: 100% !important;
  max-width: none !important;
}

.scfc-page-checkout .fct_checkout_form_section,
.scfc-page-checkout .fct_summary_box,
.scfc-page-checkout .fct_checkout_tax_wrapper,
.scfc-page-checkout .fct_checkout_payment_methods {
  background: #fff !important;
  border: 0 !important;
  border-radius: 16px !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

.scfc-page-checkout .fct_form_section_header {
  padding: 18px 20px 12px !important;
  border-bottom: 1px solid #eef2f7 !important;
}

.scfc-page-checkout .fct_form_section_body {
  padding: 14px 20px 18px !important;
}

.scfc-page-checkout .fct_checkout_input_group {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
}

.scfc-page-checkout #fct_wrapper_billing_email,
.scfc-page-checkout #fct_wrapper_billing_address_1,
.scfc-page-checkout .fct_checkout_agree_terms,
.scfc-page-checkout .fct_tax_field {
  grid-column: span 2 !important;
}

.scfc-page-checkout .fct-input,
.scfc-page-checkout .fct_coupon_input,
.scfc-page-checkout .fct_tax_input_wrapper input,
.scfc-page-checkout .fct-nice-select {
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  min-height: 46px !important;
  box-shadow: none !important;
}

.scfc-page-checkout .fct_tax_input_wrapper {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  gap: 8px !important;
}

.scfc-page-checkout .fct_coupon_field {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  gap: 8px !important;
  align-items: center !important;
}

.scfc-page-checkout .fct_checkout_agree_terms {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 6px 2px !important;
  min-height: 22px !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}

.scfc-page-checkout .fct_checkout_agree_terms label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  cursor: pointer !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  margin: 0 !important;
}

.scfc-page-checkout .fct_checkout_agree_terms span,
.scfc-page-checkout .fct_checkout_agree_terms p {
  margin: 0 !important;
  display: inline !important;
}

.scfc-page-checkout .fct_checkout_agree_terms input[type="checkbox"] {
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  margin: 0 8px 0 0 !important;
  flex: 0 0 16px !important;
  accent-color: #2563eb !important;
  vertical-align: middle !important;
}

.scfc-page-checkout .fct_coupon_field button,
.scfc-page-checkout .fct_tax_input_wrapper button,
.scfc-page-checkout .fct_address_apply_btn,
.scfc-page-checkout .fct_address_modal_open_btn,
.scfc-page-checkout .fct_address_cancel_btn,
.scfc-page-checkout .fct_address_submit_btn {
  border-radius: 10px !important;
  min-height: 42px !important;
  padding: 9px 18px !important;
}

.scfc-page-checkout .fct_place_order_btn_wrap {
  margin-top: 12px !important;
}

.scfc-page-checkout .fct_place_order_btn.large {
  border-radius: 999px !important;
  min-height: 54px !important;
  font-size: 22px !important;
  width: 100% !important;
}

.scfc-page-checkout .fct_place_order_btn,
.scfc-page-checkout .fct_place_order_btn.large,
.scfc-page-checkout .fct-checkout-place-order-btn,
.scfc-page-checkout .fct_place_order_btn_wrap .fct-btn,
.scfc-page-checkout .fct_place_order_btn_wrap button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(90deg, #2563eb 0%, #0ea5e9 100%) !important;
  border: 0 !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 10px 24px -10px rgba(14, 165, 233, 0.55) !important;
  font-weight: 700 !important;
}

.scfc-page-checkout .fct_checkout_summary {
  position: sticky !important;
  top: 14px !important;
  width: 100% !important;
  max-width: 380px !important;
  justify-self: end !important;
}

.scfc-page-checkout .fct_summary.active {
  width: 100% !important;
}

.scfc-page-checkout .fct_summary_items {
  padding: 8px 20px 18px !important;
}

.scfc-page-checkout .fct_summary_items_total {
  border-top: 1px solid #e2e8f0 !important;
  margin-top: 10px !important;
  padding-top: 10px !important;
}

.scfc-page-checkout .fct_summary_items_total .fct_summary_value {
  font-size: 34px !important;
  font-weight: 800 !important;
}

.scfc-page-checkout .fct_line_item {
  border-radius: 12px !important;
  background: #f8fafc !important;
  border: 1px solid #eef2f7 !important;
  padding: 10px !important;
}

.fct-checkout-root-container .fct-checkout-order-summary,
.fct-checkout-root-container .fct-checkout-form-wrap {
  border-radius: 16px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: none !important;
}

.fct-checkout-root-container .fct-checkout-place-order-btn,
.fct-checkout-root-container .fct_place_order_btn {
  border-radius: 999px !important;
  background: linear-gradient(90deg, #2563eb 0%, #0ea5e9 100%) !important;
  border: 0 !important;
  color: #fff !important;
  font-weight: 700 !important;
  min-height: 52px !important;
  padding: 12px 24px !important;
  box-shadow: 0 10px 24px -10px rgba(14, 165, 233, 0.55) !important;
}

.fct-btn-primary,
.fct-customer-dashboard .el-button--primary,
.fct-customer-dashboard-main-content .el-button--primary {
  border-radius: 999px !important;
  background: linear-gradient(135deg, #2f6dff 0%, #1f8cff 50%, #22d3ee 130%) !important;
  border-color: transparent !important;
  color: #fff !important;
  font-weight: 700 !important;
  min-height: 42px !important;
  padding: 9px 20px !important;
}

.fct-btn,
.el-button {
  border-radius: 999px !important;
  min-height: 42px !important;
  padding: 9px 20px !important;
  font-weight: 700 !important;
}

.fct-customer-dashboard .el-button:not(.el-button--primary):not(.is-link),
.fct-customer-dashboard .fct-btn:not(.fct-btn-primary) {
  background: #0b173a !important;
  color: #fff !important;
  border: 1px solid #0b173a !important;
}

.fct-customer-dashboard .el-button.is-link,
.fct-customer-dashboard a.is-link {
  background: transparent !important;
  border: 0 !important;
  min-height: auto !important;
  padding: 0 !important;
  border-radius: 0 !important;
  color: #2563eb !important;
  font-weight: 600 !important;
}

.fct-checkout-root-container .fct-checkout-order-summary .fct-order-summary-title,
.fct-checkout-root-container h1,
.fct-checkout-root-container h2,
.fct-checkout-root-container h3,
.fct-customer-dashboard h2,
.fct-customer-dashboard h3,
.fct-customer-dashboard h4 {
  color: #0b1220 !important;
}

.fct-customer-dashboard .actions .is-link {
  color: #2563eb !important;
  font-weight: 600 !important;
}

.fct-product-view-button,
.fct-single-product-card-view-button,
.fluent-cart-direct-checkout-button,
.fct-product-buttons-wrap .fct-btn,
.fct-products-wrapper .fct-btn-primary {
  border-radius: 999px !important;
  background: linear-gradient(135deg, #2f6dff 0%, #1f8cff 50%, #22d3ee 130%) !important;
  border: 0 !important;
  color: #fff !important;
  font-weight: 700 !important;
  min-height: 44px !important;
  padding: 10px 22px !important;
  box-shadow: 0 10px 24px -10px rgba(37, 99, 235, 0.55) !important;
  text-decoration: none !important;
}

.fct-products-wrapper {
  max-width: 1200px !important;
  margin: 0 auto !important;
}

.fct-products-wrapper-inner {
  margin-top: 12px !important;
}

.fct-products-container.grid-columns-4 {
  gap: 14px !important;
}

.fct-product-card {
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

.fct-product-card-title a {
  color: #0b1220 !important;
}

.fct-shop-filter-wrapper,
.fct-shop-filter-form,
.fct-shop-filter-item,
.fct-shop-product-search {
  border-radius: 14px !important;
}

.fct-shop-filter-toggle-button,
.fct-shop-view-switcher button {
  border-radius: 999px !important;
}

.scfc-page-product .product-info-block-wrapper {
  max-width: 1160px !important;
  margin: 0 auto !important;
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
  padding: 22px !important;
}

.scfc-page-product .fct-product-gallery-wrapper,
.scfc-page-product .fct_buy_section {
  border-radius: 14px !important;
}

.scfc-page-product .fct-product-variants .fct-product-variant-item {
  border-radius: 12px !important;
  border: 1px solid #dbeafe !important;
}

.scfc-page-product .fct-product-variants .fct-product-variant-item.selected {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12) !important;
}

.scfc-page-product .fct_buy_section .fluent-cart-direct-checkout-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 180px !important;
}

.scfc-page-product .product-info-child-block > .wp-block-columns > .wp-block-column:first-child,
.scfc-page-product .fct-product-gallery-wrapper {
  display: block !important;
}

#scfc-app .sc-login-wrap,
#scfc-app .sc-auth-form {
  max-width: 470px;
  margin-left: auto;
  margin-right: auto;
}

/* Shop quick-view modal tweaks */
.scfc-page-shop [role="dialog"] .product-info-child-block > .wp-block-columns > .wp-block-column:first-child,
.scfc-page-shop [role="dialog"] .fct-product-gallery-wrapper {
  display: none !important;
}

.scfc-page-shop [role="dialog"] .product-info-child-block > .wp-block-columns > .wp-block-column:last-child {
  flex-basis: 100% !important;
  width: 100% !important;
}

.scfc-page-shop [role="dialog"] .fluent-cart-direct-checkout-button,
.scfc-page-shop [role="dialog"] .fct-product-buttons-wrap .fluent-cart-direct-checkout-button {
  width: auto !important;
  min-width: 170px !important;
  max-width: 220px !important;
  min-height: 44px !important;
  padding: 10px 26px !important;
}

@media (max-width: 1024px) {
  .fct-customer-dashboard-app-container.fluent-cart-customer-profile-app {
    grid-template-columns: 1fr !important;
  }

  .scfc-page-checkout .fct_checkout_inner {
    grid-template-columns: 1fr !important;
  }

  .scfc-page-checkout .fct_checkout_summary {
    position: static !important;
    max-width: none !important;
    justify-self: stretch !important;
  }

  .scfc-page-checkout .fct_checkout_form,
  .scfc-page-checkout .fct_checkout_summary,
  .scfc-page-checkout .fct_checkout_inner > .fct_place_order_btn_wrap,
  .scfc-page-checkout .fct_checkout_form .fct_place_order_btn_wrap {
    grid-column: 1 !important;
    grid-row: auto !important;
    max-width: none !important;
    justify-self: stretch !important;
  }

  .scfc-spark-header-inner {
    flex-wrap: wrap;
  }

  .scfc-spark-nav {
    overflow-x: auto;
    max-width: 100%;
  }
}

.scfc-native-missing {
  border: 1px solid #fecdd3;
  background: #fff1f2;
  color: #be123c;
  border-radius: 10px;
  padding: 12px 14px;
}

/* Cart — align with account / checkout card chrome */
.scfc-page-cart .fct-cart-page {
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
  padding: 22px 22px 26px !important;
  max-width: 1160px !important;
  margin: 0 auto !important;
}

.scfc-page-cart .fct-cart-drawer-list-content,
.scfc-page-cart .fct-cart-drawer-list {
  border-radius: 12px !important;
}

.scfc-page-cart [data-fluent-cart-cart-checkout-button-wrap] .fct-btn,
.scfc-page-cart [data-fluent-cart-cart-checkout-button-wrap] a {
  border-radius: 999px !important;
  background: linear-gradient(135deg, #2f6dff 0%, #1f8cff 50%, #22d3ee 130%) !important;
  border: 0 !important;
  color: #fff !important;
  font-weight: 700 !important;
  min-height: 44px !important;
  padding: 10px 22px !important;
  text-decoration: none !important;
}

/* Thank-you / order confirmation — same shell as account panels */
.scfc-page-order_confirmation .fct-thank-you-page {
  max-width: 1160px !important;
  margin: 0 auto !important;
}

.scfc-page-order_confirmation .fct-thank-you-page-inner {
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
  overflow: hidden !important;
}

.scfc-page-order_confirmation .fct-thank-you-page-content {
  padding: 8px 8px 18px !important;
}

/* Receipt slip (HTML) + print wrapper — match storefront cards */
.scfc-page-receipt .fluent_cart_order_confirmation,
.scfc-page-order_confirmation .fluent_cart_order_confirmation {
  max-width: 900px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.scfc-page-receipt .fct-receipt-page {
  max-width: 900px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
  padding: 18px 22px 22px !important;
}

.scfc-page-receipt .fct-receipt-page .fct-email-template-content-inner {
  font-family: "Inter", "Plus Jakarta Sans", system-ui, -apple-system, sans-serif !important;
  color: #0b1220 !important;
}

.scfc-page-receipt .fluent_cart_pdf_content + div[style*="justify-content: center"] button,
.scfc-page-receipt #print-button {
  border-radius: 999px !important;
  background: linear-gradient(135deg, #2f6dff 0%, #1f8cff 50%, #22d3ee 130%) !important;
  border: 0 !important;
  color: #fff !important;
  font-weight: 700 !important;
  min-height: 44px !important;
  padding: 10px 24px !important;
  cursor: pointer !important;
}
