/*
 * FluentCart utility pages — cart, checkout, account, receipt
 * Extracted from cw-theme.css (Phase 1 Stage A split, 2026-07-02).
 * Loads on top of cw-theme.css (dependency: cw-theme-style).
 */

/* FluentCart utility pages */
.cw-fluent-page__hero {
  padding-bottom: 18px;
}

.cw-fluent-page__hero-layout {
  grid-template-columns: minmax(0, 1fr);
}

.cw-fluent-page__hero-copy {
  max-width: 760px;
}

.cw-fluent-page__body {
  padding: 0 0 88px;
}

.cw-fluent-page__surface {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.cw-fluent-page__surface-inner {
  padding: 0;
}

.cw-fluent-page .fct_auth_wrap,
.cw-fluent-page .fct_customer_profile_wrap,
.cw-fluent-page .fct-cart-page,
.cw-fluent-page .fluent-cart-checkout-page {
  color: var(--cw-ink);
  font-family: "Jost", system-ui, sans-serif;
}

.cw-fluent-page .fct_customer_profile_wrap,
.cw-fluent-page .fct-cart-page,
.cw-fluent-page .fluent-cart-checkout-page {
  background: transparent;
}

.cw-fluent-page .fluent-cart-customer-profile-app:not(.el-dialog):not(.el-popper):not(.el-popover),
.cw-fluent-page [data-fluent-cart-customer-profile-app],
.cw-fluent-page .fct-customer-dashboard-main-app {
  border-radius: 0 !important;
  border-width: 0 !important;
}

.cw-fluent-page .fct_auth_wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px !important;
  border: 1px solid var(--cw-border) !important;
  border-radius: var(--cw-radius-card) !important;
  background: var(--cw-white);
  box-shadow: var(--cw-shadow-card);
}

.cw-fluent-page .fct_auth_message {
  margin-bottom: 18px;
  color: var(--cw-quiet);
  font-size: 15px;
  line-height: 1.6;
}

.cw-fluent-page .fct_auth_wrap h2,
.cw-fluent-page .fct-customer-dashboard-main-content h2,
.cw-fluent-page .fct-customer-dashboard-main-content h3,
.cw-fluent-page .fct-cart-page h3,
.cw-fluent-page .fluent-cart-checkout-page h3,
.cw-fluent-page .fluent-cart-checkout-page h4 {
  color: var(--cw-ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: -0.02em;
}

.cw-fluent-page .fct_auth_wrap input,
.cw-fluent-page .fct_auth_wrap select,
.cw-fluent-page .fct_auth_wrap textarea,
.cw-fluent-page .fct_checkout input,
.cw-fluent-page .fct_checkout select,
.cw-fluent-page .fct_checkout textarea {
  min-height: 48px;
  border: 1px solid var(--cw-border);
  border-radius: 12px;
  background: var(--cw-white);
  box-shadow: none;
  color: var(--cw-ink);
}

.cw-fluent-page .fct_auth_wrap input:focus,
.cw-fluent-page .fct_auth_wrap select:focus,
.cw-fluent-page .fct_auth_wrap textarea:focus,
.cw-fluent-page .fct_checkout input:focus,
.cw-fluent-page .fct_checkout select:focus,
.cw-fluent-page .fct_checkout textarea:focus {
  outline: none;
  border-color: var(--cw-teal);
  box-shadow: 0 0 0 3px rgba(74, 148, 148, 0.12);
}

.cw-fluent-page .fct_auth_wrap button,
.cw-fluent-page .fct_auth_wrap .fluent_auth_submit,
.cw-fluent-page .checkout-button,
.cw-fluent-page .fct_place_order_btn,
.cw-fluent-page .fct-cart-item-delete-button,
.cw-fluent-page .qty-btn,
.cw-fluent-page [data-fluent-cart-checkout-page-apply-coupon-button],
.cw-fluent-page [data-fluent-cart-checkout-page-remove-coupon-button] {
  border-radius: 999px;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.cw-fluent-page .fct_auth_wrap button,
.cw-fluent-page .fct_auth_wrap .fluent_auth_submit,
.cw-fluent-page .checkout-button,
.cw-fluent-page .fct_place_order_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
  border: 1px solid var(--cw-clay);
  background: var(--cw-clay);
  color: var(--cw-white);
  box-shadow: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.cw-fluent-page .fct_auth_wrap button:hover,
.cw-fluent-page .fct_auth_wrap .fluent_auth_submit:hover,
.cw-fluent-page .checkout-button:hover,
.cw-fluent-page .fct_place_order_btn:hover {
  background: var(--cw-clay-dark);
  border-color: var(--cw-clay-dark);
  box-shadow: 0 10px 24px rgba(145, 74, 56, 0.16);
  transform: translateY(-1px);
}

/* NOTE: the global .fct-cart-drawer "Go to Checkout" button styling now lives
 * in cw-theme.css (→ cw-core.css) so it loads on every commerce surface where
 * the drawer overlay can open, not only these utility pages. See the block
 * above .cw-shop-shell__section-header in cw-theme.css. */

.cw-fluent-page .fct-customer-dashboard-app-container,
.cw-fluent-page .fct_checkout_inner {
  gap: 24px;
}

.cw-fluent-page .fct-customer-dashboard-navs-wrap {
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-card);
  background: var(--cw-white);
  box-shadow: none;
}

.cw-fluent-page .fct-customer-dashboard-customer-info {
  padding: 24px;
  border-bottom: 1px solid var(--cw-border);
  background: linear-gradient(180deg, rgba(204, 245, 245, 0.26) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.cw-fluent-page .fct-customer-dashboard-customer-info-content h3 {
  margin: 0 0 4px;
  font-size: 28px;
  font-family: "Cormorant Garamond", Georgia, serif;
}

.cw-fluent-page .fct-customer-dashboard-customer-info-content p {
  margin: 0;
  color: var(--cw-quiet);
}

.cw-fluent-page .fct-customer-navs-wrap {
  padding: 18px 14px;
}

.cw-fluent-page .fct-customer-nav-link {
  border-radius: 12px;
  color: var(--cw-ink);
}

.cw-fluent-page .fct-customer-nav-item.active_customer_menu .fct-customer-nav-link,
.cw-fluent-page .fct-customer-nav-link:hover {
  background: var(--cw-teal-tint);
  color: var(--cw-teal-dark);
}

.cw-fluent-page .fct-customer-dashboard-main-content {
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-card);
  background: var(--cw-white);
  box-shadow: none;
}

.cw-fluent-page .fct-customer-dashboard-main-content > * {
  border-radius: inherit;
}

.cw-fluent-page .fct-cart-drawer-list-content {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.cw-fluent-page .fct-cart-item {
  padding: 24px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-card);
  background: var(--cw-white);
  box-shadow: none;
}

.cw-fluent-page .fct-cart-item-title a,
.cw-fluent-page .fct-cart-item-variant,
.cw-fluent-page .fct-cart-item-price,
.cw-fluent-page .fct-cart-item-total,
.cw-fluent-page .fct-cart-item-summary {
  color: var(--cw-ink);
}

.cw-fluent-page .fct-cart-item-title {
  margin-bottom: 8px;
  font-size: clamp(20px, 3vw, 24px);
  line-height: 1.12;
}

.cw-fluent-page .fct-cart-item-image img {
  border-radius: 14px;
  background: var(--cw-fog);
}

.cw-fluent-page .fct-cart-item-quantity {
  border-width: 0 !important;
}

.cw-fluent-page .qty-btn,
.cw-fluent-page .fct-cart-item-delete-button {
  min-width: 40px;
  min-height: 40px;
  border: 1px solid var(--cw-border);
  background: var(--cw-white);
  color: var(--cw-ink);
}

.cw-fluent-page .qty-btn:hover,
.cw-fluent-page .fct-cart-item-delete-button:hover {
  border-color: var(--cw-teal);
  background: var(--cw-teal-tint);
  color: var(--cw-teal-dark);
}

.cw-fluent-page .fct-cart-total-wrapper,
.cw-fluent-page .fct_summary_box,
.cw-fluent-page .fct_checkout_form_section {
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-card);
  background: var(--cw-white);
  box-shadow: none;
}

.cw-fluent-page .fct-cart-total-wrapper,
.cw-fluent-page .fct_summary_box {
  padding: 24px;
}

.cw-fluent-page--cart .fct-cart-total-wrapper {
  margin-top: 18px;
}

.cw-fluent-page .fluent-cart-cart-cart-button-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  margin-top: 24px;
}

.cw-fluent-page .fluent-cart-cart-empty-content {
  display: grid;
  gap: 18px;
  justify-items: center;
  padding: 28px;
  border: 1px dashed var(--cw-border);
  border-radius: var(--cw-radius-card);
  background: var(--cw-mist);
  text-align: center;
}

.cw-fluent-page .fluent-cart-cart-empty-content-text {
  display: grid;
  gap: 14px;
  justify-items: center;
  color: var(--cw-ink);
  font-size: 18px;
  font-weight: 500;
}

.cw-fluent-page .continue-shopping-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--cw-clay);
  border-radius: 999px;
  background: var(--cw-clay);
  color: var(--cw-white);
  font-size: 15px;
  font-weight: 600;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.cw-fluent-page .continue-shopping-link:hover {
  background: var(--cw-clay-dark);
  border-color: var(--cw-clay-dark);
  box-shadow: 0 10px 24px rgba(145, 74, 56, 0.16);
  transform: translateY(-1px);
}

.cw-fluent-page .fluent-cart-cart-cart-button-wrap .checkout-button {
  width: auto;
  min-width: min(100%, 220px);
  justify-content: center;
}

.cw-fluent-page .fct_checkout_form,
.cw-fluent-page .fct_checkout_summary {
  min-width: 0;
}

.cw-fluent-page .fct_checkout_form_items {
  gap: 20px;
}

.cw-fluent-page .fct_checkout_form_section {
  padding: 22px 22px 18px;
}

.cw-fluent-page .fct_form_section_header,
.cw-fluent-page .fct_form_section_header_label,
.cw-fluent-page .fct_checkout_address_label {
  color: var(--cw-ink);
  font-weight: 600;
}

.cw-fluent-page .fct_form_error,
.cw-fluent-page .fct-cart-notices {
  color: #8d2e2e;
  font-size: 14px;
}

.cw-fluent-page .fct_checkout_summary .fct_summary {
  position: sticky;
  top: 112px;
}

.cw-fluent-page .fct_coupon,
.cw-fluent-page .fct_coupon_applied_item {
  border-radius: 14px;
  background: var(--cw-mist);
}

.cw-fluent-page .fct_coupon_input_wrapper {
  gap: 10px;
}

.cw-fluent-page .fct_coupon_input {
  min-height: 46px;
}

.cw-fluent-page [data-fluent-cart-checkout-page-apply-coupon-button],
.cw-fluent-page [data-fluent-cart-checkout-page-remove-coupon-button] {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--cw-teal);
  background: var(--cw-white);
  color: var(--cw-teal-dark);
  font-weight: 600;
}

.cw-fluent-page [data-fluent-cart-checkout-page-apply-coupon-button]:hover,
.cw-fluent-page [data-fluent-cart-checkout-page-remove-coupon-button]:hover {
  background: var(--cw-teal-tint);
}

.cw-fluent-page--checkout .fct_checkout_payment_methods {
  display: grid;
  gap: 14px;
}

.cw-fluent-page--checkout .fct_payment_method_wrapper {
  border: 1px solid var(--cw-border);
  border-radius: 20px;
  background: var(--cw-white);
  box-shadow: none;
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.cw-fluent-page--checkout .fct_payment_method_wrapper label {
  padding: 16px 20px;
}

.cw-fluent-page--checkout .fct_payment_method_wrapper.active {
  border-color: var(--cw-teal);
  box-shadow: none;
}

.cw-fluent-page--checkout .fct_payment_method_wrapper.active > label {
  background: linear-gradient(180deg, rgba(204, 245, 245, 0.34) 0%, rgba(255, 255, 255, 0.98) 100%);
  color: var(--cw-teal-dark);
}

.cw-fluent-page--checkout .fct_payment_method_wrapper.active .fct_payment_method_instructions,
.cw-fluent-page--checkout .fct_payment_method_wrapper.active .fluent-cart-checkout_embed_payment_wrapper {
  border-top: 1px solid var(--cw-fog-dark);
}

.cw-fluent-page--checkout .fct_payment_method_wrapper .fct_payment_method_instructions {
  padding: 14px 20px 0;
}

.cw-fluent-page--checkout .fluent-cart-checkout_embed_payment_wrapper {
  padding-left: 20px;
  padding-right: 20px;
}

.cw-fluent-page--checkout .fct_payment_methods_list {
  margin-top: 15px;
}

.cw-fluent-page--checkout .__PrivateStripeElement iframe[title="Secure payment input frame"] {
  margin-top: 10px !important;
}

.cw-fluent-page--checkout .fct_payment_method_logo input[type="radio"]:checked + label + [class*="payment_container"],
.cw-fluent-page--checkout .fct_payment_method_logo input[type="checkbox"]:checked + label + [class*="payment_container"],
.cw-fluent-page--checkout .fct_payment_method_logo input[type="checkbox"]:checked + label + .fct_payment_method_instructions + .fluent-cart-checkout_embed_payment_container,
.cw-fluent-page--checkout .fct_payment_method_logo input[type="radio"]:checked + label + .fct_payment_method_instructions + .fluent-cart-checkout_embed_payment_container {
  padding-bottom: 18px;
}

.cw-fluent-page .fct_place_order_btn_wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  margin-top: 8px;
}

.cw-fluent-page .fct_place_order_btn {
  width: auto;
  min-width: min(100%, 220px);
  justify-content: center;
}

.cw-fluent-page .fct-thank-you-page,
.cw-fluent-page .fct-thank-you-page .email-template-content {
  max-width: none;
  color: var(--cw-ink);
  font-family: "Jost", system-ui, sans-serif;
}

.cw-fluent-page .fct-thank-you-page-inner,
.cw-fluent-page .fct-thank-you-page-content,
.cw-fluent-page .fct-thank-you-page-body,
.cw-fluent-page .fct-thank-you-page-body-inner {
  max-width: none;
}

.cw-fluent-page .fct-thank-you-page-header {
  display: grid;
  justify-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding: 32px 24px;
  border-radius: calc(var(--cw-radius-card) + 4px);
}

.cw-fluent-page .fct-thank-you-page-header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  color: var(--cw-white);
}

.cw-fluent-page .fct-thank-you-page-header-icon svg {
  width: 34px;
  height: 34px;
}

.cw-fluent-page .fct-thank-you-page-header-title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(36px, 5vw, 48px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-align: center;
}

.cw-fluent-page .fct-thank-you-page-body-content {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.cw-fluent-page .fct-thank-you-page-body-content-inner {
  display: grid;
  gap: 18px;
}

.cw-fluent-page .no-print,
.cw-fluent-page .fct-thank-you-page-order-items,
.cw-fluent-page .fct-thank-you-page-order-items-subscriptions,
.cw-fluent-page .fct-thank-you-page-order-items-downloads,
.cw-fluent-page .fct-thank-you-page-order-items-licenses,
.cw-fluent-page .fct-thank-you-page-order-items-addresses-bill-to,
.cw-fluent-page .fct-thank-you-page-order-items-addresses-ship-to,
.cw-fluent-page .fct-thank-you-page-order-items-downloads-notice {
  padding: 22px 24px;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-card);
  background: var(--cw-white);
  box-shadow: none;
}

.cw-fluent-page .fct-thank-you-page-order-items-addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.cw-fluent-page .fct-thank-you-page-order-items-header,
.cw-fluent-page .fct-thank-you-page-order-items-list,
.cw-fluent-page .fct-meta-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
}

.cw-fluent-page .fct-thank-you-page-order-items-header {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cw-border);
  color: var(--cw-quiet);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cw-fluent-page .fct-thank-you-page-order-items-list + .fct-thank-you-page-order-items-list,
.cw-fluent-page .fct-meta-line + .fct-meta-line {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--cw-fog-dark);
}

.cw-fluent-page .fct-thank-you-page-order-items-list-quantity,
.cw-fluent-page .fct-thank-you-page-order-items-list-price-inner,
.cw-fluent-page .no-print-title {
  margin: 0;
  color: var(--cw-ink);
  font-weight: 600;
}

.cw-fluent-page .fct-thank-you-page-order-items-list-variant-title,
.cw-fluent-page .fct-thank-you-page-order-items-list-payment-info,
.cw-fluent-page .no-print p {
  margin: 6px 0 0;
  color: var(--cw-quiet);
}

.cw-fluent-page .fct-thank-you-page-order-items-list-price,
.cw-fluent-page .fct-thank-you-page-order-items-header-row:last-child,
.cw-fluent-page .fct-meta-line-value {
  text-align: right;
}

.cw-fluent-page .fct-thank-you-page-order-items-total {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--cw-border);
}

.cw-fluent-page--receipt .fct-thank-you-page-body-content-inner {
  gap: 22px;
}

.cw-fluent-page--receipt .no-print {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.cw-fluent-page--receipt .fct-thank-you-page-order-items-header {
  padding: 12px 18px;
  background: var(--cw-mist);
}

.cw-fluent-page--receipt .fct-thank-you-page-order-items-list {
  align-items: start;
}

.cw-fluent-page--receipt .fct-thank-you-page-order-items-total {
  width: min(100%, 340px);
  margin: 8px 0 0 auto;
  padding: 18px 20px;
  border: 1px solid var(--cw-fog-dark);
  border-radius: 20px;
  background: var(--cw-mist);
}

.cw-fluent-page--receipt .fct-thank-you-page-order-items-total .fct-meta-line + .fct-meta-line {
  margin-top: 12px;
  padding-top: 12px;
}

.cw-fluent-page--receipt .fct-thank-you-page-order-items-downloads {
  display: grid;
  gap: 16px;
}

.cw-fluent-page--receipt .fct-thank-you-page-order-items-downloads-heading {
  margin: 0;
}

.cw-fluent-page--receipt .fct-thank-you-page-order-items-downloads-table {
  padding: 0;
}

.cw-fluent-page--receipt .fct-thank-you-page-order-items-downloads-table-file p {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
}

.cw-fluent-page--receipt .fct-thank-you-page-order-items-downloads-button {
  width: 1%;
  white-space: nowrap;
  vertical-align: middle;
  padding-left: 18px;
}

.cw-fluent-page--receipt .fct-thank-you-page-order-items-downloads-button a {
  min-width: 0;
  width: auto;
}

.cw-fluent-page--receipt .fct-thank-you-page-footer {
  align-items: center;
  justify-content: center;
}

.cw-fluent-page .fct-thank-you-page-order-items-downloads-button a,
.cw-fluent-page .fct-thank-you-page-view-order-button,
.cw-fluent-page .fct-thank-you-page-download-receipt-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.cw-fluent-page .fct-thank-you-page-view-order-button,
.cw-fluent-page .fct-thank-you-page-download-receipt-button {
  font-weight: 500;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.cw-fluent-page .fct-thank-you-page-order-items-downloads-button a {
  font-weight: 600;
  line-height: 1;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.cw-fluent-page .fct-thank-you-page-view-order-button,
.cw-fluent-page .fct-thank-you-page-view-order-button:link,
.cw-fluent-page .fct-thank-you-page-view-order-button:visited {
  border: 1px solid var(--cw-clay);
  background: var(--cw-clay);
  color: var(--cw-white);
  padding: 9px 20px;
  border-radius: 9999px;
  font-weight: 600;
}

/* Download button on the file row = primary clay-filled CTA. Mirrors
   the View Order button visual at the bottom of the receipt — the
   Download is the main action the customer came here for. */
.cw-fluent-page .fct-thank-you-page-order-items-downloads-button a,
.cw-fluent-page .fct-thank-you-page-order-items-downloads-button a:link,
.cw-fluent-page .fct-thank-you-page-order-items-downloads-button a:visited {
  border: 1px solid var(--cw-clay);
  background: var(--cw-clay);
  color: var(--cw-white);
}

/* Download Receipt button stays as the grey-outlined secondary. */
.cw-fluent-page .fct-thank-you-page-download-receipt-button,
.cw-fluent-page .fct-thank-you-page-download-receipt-button:link,
.cw-fluent-page .fct-thank-you-page-download-receipt-button:visited {
  border: 1px solid var(--cw-border);
  background: transparent;
  color: var(--cw-ink-light);
}

.cw-fluent-page .fct-thank-you-page-view-order-button:hover,
.cw-fluent-page .fct-thank-you-page-download-receipt-button:hover,
.cw-fluent-page .fct-thank-you-page-order-items-downloads-button a:hover {
  transform: translateY(-1px);
}

.cw-fluent-page .fct-thank-you-page-view-order-button:hover,
.cw-fluent-page .fct-thank-you-page-order-items-downloads-button a:hover {
  background: var(--cw-clay-dark);
  border-color: var(--cw-clay-dark);
  color: var(--cw-white);
  box-shadow: 0 10px 24px rgba(145, 74, 56, 0.16);
}

.cw-fluent-page .fct-thank-you-page-download-receipt-button:hover {
  background: transparent;
  border-color: var(--cw-teal);
  color: var(--cw-teal);
}

.cw-fluent-page .fct-thank-you-page-view-order-button:focus-visible,
.cw-fluent-page .fct-thank-you-page-download-receipt-button:focus-visible {
  outline-offset: 3px;
}

.cw-fluent-page .fct-thank-you-page-view-order-button:focus-visible {
  outline: 2px solid rgba(198, 117, 96, 0.28);
}

.cw-fluent-page .fct-thank-you-page-download-receipt-button:focus-visible {
  outline: 2px solid rgba(107, 158, 158, 0.22);
}

.cw-fluent-page .fct-thank-you-page-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

@media (max-width: 1024px) {
  .cw-fluent-page .fct_checkout_summary .fct_summary {
    position: static;
    top: auto;
  }

  .cw-fluent-page--account .fct-customer-dashboard-app-container {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px;
  }

  .cw-fluent-page--account .fct-customer-dashboard-navs-wrap,
  .cw-fluent-page--account .fct-customer-dashboard-main-content {
    width: 100%;
    min-width: 0;
  }

  .cw-fluent-page--account .fct-customer-dashboard-main-content {
    overflow: hidden;
  }

  .cw-fluent-page--account .fct-customer-dashboard-customer-info {
    padding: 20px;
  }

  .cw-fluent-page--account .fct-customer-nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
  }
}

@media (max-width: 782px) {
  .cw-fluent-page__body {
    padding-bottom: 64px;
  }

  .cw-fluent-page .fct-cart-item,
  .cw-fluent-page .fct_checkout_form_section,
  .cw-fluent-page .fct_summary_box,
  .cw-fluent-page .fct-cart-total-wrapper,
  .cw-fluent-page .fct_auth_wrap {
    padding: 20px !important;
  }

  .cw-fluent-page .fct-customer-dashboard-main-content,
  .cw-fluent-page .fct-customer-dashboard-navs-wrap {
    box-shadow: none;
  }

  .cw-fluent-page--account .fct-customer-dashboard-app-container {
    gap: 16px;
  }

  .cw-fluent-page--account .fct-customer-dashboard-customer-info {
    padding: 18px;
  }

  .cw-fluent-page--account .fct-customer-dashboard-customer-info-content h3 {
    font-size: clamp(24px, 9vw, 28px);
    line-height: 1.02;
  }

  .cw-fluent-page--account .fct-customer-navs-wrap {
    padding: 12px;
  }

  .cw-fluent-page--account .fct-customer-dashboard-main-content > * {
    min-width: 0;
  }

  .cw-fluent-page .fluent-cart-cart-cart-button-wrap .checkout-button,
  .cw-fluent-page .fct_place_order_btn,
  .cw-fluent-page .fct-thank-you-page-view-order-button,
  .cw-fluent-page .fct-thank-you-page-download-receipt-button {
    width: 100%;
  }

  .cw-fluent-page .fct-thank-you-page-order-items-addresses,
  .cw-fluent-page .fct-thank-you-page-order-items-header,
  .cw-fluent-page .fct-thank-you-page-order-items-list,
  .cw-fluent-page .fct-meta-line {
    grid-template-columns: minmax(0, 1fr);
  }

  .cw-fluent-page .fct-thank-you-page-order-items-list-price,
  .cw-fluent-page .fct-thank-you-page-order-items-header-row:last-child,
  .cw-fluent-page .fct-meta-line-value {
    text-align: left;
  }

  .cw-fluent-page .no-print,
  .cw-fluent-page .fct-thank-you-page-order-items,
  .cw-fluent-page .fct-thank-you-page-order-items-subscriptions,
  .cw-fluent-page .fct-thank-you-page-order-items-downloads,
  .cw-fluent-page .fct-thank-you-page-order-items-licenses,
  .cw-fluent-page .fct-thank-you-page-order-items-addresses-bill-to,
  .cw-fluent-page .fct-thank-you-page-order-items-addresses-ship-to,
  .cw-fluent-page .fct-thank-you-page-order-items-downloads-notice {
    padding: 20px;
  }

  .cw-fluent-page--checkout .fct_payment_method_wrapper label,
  .cw-fluent-page--checkout .fct_payment_method_wrapper .fct_payment_method_instructions,
  .cw-fluent-page--checkout .fluent-cart-checkout_embed_payment_wrapper {
    padding-left: 16px;
    padding-right: 16px;
  }

  .cw-fluent-page--receipt .fct-thank-you-page-order-items-total {
    width: 100%;
    margin-left: 0;
  }

  .cw-fluent-page--receipt .fct-thank-you-page-order-items-downloads-table,
  .cw-fluent-page--receipt .fct-thank-you-page-order-items-downloads-table tbody,
  .cw-fluent-page--receipt .fct-thank-you-page-order-items-downloads-table tr,
  .cw-fluent-page--receipt .fct-thank-you-page-order-items-downloads-table td {
    display: block;
    width: 100%;
  }

  .cw-fluent-page--receipt .fct-thank-you-page-order-items-downloads-button {
    padding-top: 14px;
    padding-left: 0;
    text-align: left;
  }
}

@media (max-width: 806px) {
  .cw-fluent-page--account .fct-customer-root-container,
  .cw-fluent-page--account .fct-customer-dashboard-app-container,
  .cw-fluent-page--account .fct-customer-dashboard-main-content {
    min-height: 0 !important;
  }

  .cw-fluent-page--account .fct-customer-dashboard-navs-wrap {
    margin-bottom: 16px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .cw-fluent-page--account .fct-customer-dashboard-navs-wrap #fct-customer-menu-container {
    position: relative;
    display: inline-block;
    padding: 0;
  }

  .cw-fluent-page--account .fct-customer-dashboard-navs-wrap #fct-customer-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: auto;
    min-width: 0;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--cw-border);
    border-radius: 999px;
    background: var(--cw-white);
    color: var(--cw-ink);
    box-shadow: none;
  }

  .cw-fluent-page--account .fct-customer-dashboard-navs-wrap #fct-customer-menu-toggle::after {
    content: "Account menu";
    color: var(--cw-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
  }

  .cw-fluent-page--account .fct-customer-dashboard-navs-wrap #fct-customer-menu-toggle svg {
    width: 18px;
    height: 18px;
    color: currentColor;
  }

  .cw-fluent-page--account .fct-customer-dashboard-navs-wrap #fct-customer-menu-holder {
    top: calc(100% + 10px);
    left: 0;
    width: min(280px, calc(100vw - 48px));
    padding: 14px;
    border: 1px solid var(--cw-border);
    border-radius: 18px;
    background: var(--cw-white);
    box-shadow: var(--cw-shadow-card);
  }

  .cw-fluent-page--account .fct-customer-dashboard-navs-wrap #fct-customer-menu-holder .fct-customer-navs-wrap {
    padding: 0;
  }

  .cw-fluent-page--account .fct-customer-dashboard-navs-wrap #fct-customer-menu-holder .fct-customer-nav-item {
    margin-bottom: 6px;
  }

  .cw-fluent-page--account .fct-customer-dashboard-navs-wrap #fct-customer-menu-holder .fct-customer-nav-link {
    min-height: 42px;
    padding: 10px 12px;
  }

  .cw-fluent-page--account .fct-customer-dashboard-navs-wrap #fct-customer-menu-holder #fct-customer-logout-button {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--cw-fog-dark);
  }

  .cw-fluent-page--account .fct-customer-dashboard-main-content {
    padding: 20px !important;
  }

  .cw-fluent-page--account .fct-customer-dashboard-item {
    display: grid;
    gap: 16px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .cw-fluent-page--account .fct-customer-dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 0;
  }

  .cw-fluent-page--account .fct-customer-dashboard-title {
    margin: 0;
    color: var(--cw-ink);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(28px, 11vw, 36px);
    line-height: 0.96;
    letter-spacing: -0.02em;
  }

  .cw-fluent-page--account .fct-customer-dashboard-header .actions {
    flex: none;
    padding-top: 4px;
  }

  .cw-fluent-page--account .fct-customer-dashboard-header .actions a {
    color: var(--cw-teal-dark);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
  }

  .cw-fluent-page--account .fct-customer-dashboard-table {
    min-width: 0;
  }

  .cw-fluent-page--account .fct-customer-dashboard-table [role="note"] {
    display: grid;
    place-items: center;
    min-height: 132px;
    padding: 22px 20px !important;
    border: 1px solid var(--cw-border);
    border-radius: calc(var(--cw-radius-card) - 2px);
    background: var(--cw-mist);
    color: var(--cw-ink);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.45;
    text-align: center;
  }
}



/* ---- Receipt page — inline "Read the Tutorial" pill beside Download ----
   Pill is rendered as `<span role="link">` by the JS so FluentCart's
   `td a` selector (0,5,3 specificity) doesn't match — see commit
   929983f3 for context.

   Color palette: matches the cw-fluent-page footer pair:
     View Order        → --cw-clay filled   (primary CTA)
     Download Receipt  → --cw-border outlined (secondary)

   In the file row we now mirror the same primary+secondary rhythm:
     Download         → --cw-clay filled   (primary — Omar's main goal)
     Read the Tutorial → --cw-teal outlined (secondary — next-step CTA)
   See the .fct-thank-you-page-order-items-downloads-button a rule above
   for the Download pill; the rule below is for our tutorial pill.

   Layout: FluentCart sets `td.fct-thank-you-page-order-items-downloads-button
   { width: 20%; text-align: right }`. 20% is too narrow to fit both
   Download + Read the Tutorial on the same line, so the earlier
   flex-wrap: wrap version stacked them. Override the cell width on
   injected rows so the two pills sit side-by-side on desktop and
   stack only at narrow viewports. */

.cw-fluent-page .fct-thank-you-page-order-items-downloads-button.cw-tutorial-injected {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  width: auto;
  min-width: 280px;
  white-space: nowrap;
}

.cw-receipt-tutorial-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 18px;
  border: 1px solid var(--cw-teal);
  border-radius: 999px;
  background: transparent;
  color: var(--cw-teal-dark);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
  box-sizing: border-box;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}

.cw-receipt-tutorial-link__icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  display: block;
}

.cw-receipt-tutorial-link__label {
  display: inline-block;
  line-height: 1;
}

.cw-receipt-tutorial-link:hover,
.cw-receipt-tutorial-link:focus,
.cw-receipt-tutorial-link:focus-visible {
  background: var(--cw-teal-tint);
  border-color: var(--cw-teal);
  color: var(--cw-teal-dark);
  transform: translateY(-1px);
  text-decoration: none;
  outline: none;
}

.cw-receipt-tutorial-link:focus-visible {
  outline: 2px solid var(--cw-teal);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  /* Mobile: pills stack vertically and stretch to full cell width.
     - text-align: center on the td overrides FluentCart's `text-align: right`
       so the stretched Download anchor's text content centers correctly.
     - Both pills share `height: 44px` so they're visually balanced as a
       primary/secondary CTA pair.
     - The Download anchor (FluentCart's <a>) gets explicit block-level +
       flex centering since FluentCart's default is `inline-block`. */
  .cw-fluent-page .fct-thank-you-page-order-items-downloads-button.cw-tutorial-injected {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
    min-width: 0;
    width: auto;
    text-align: center;
    padding: 6px 0;
  }

  .cw-fluent-page .fct-thank-you-page-order-items-downloads-button.cw-tutorial-injected a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    padding: 0 18px;
    text-align: center;
    box-sizing: border-box;
  }

  .cw-fluent-page .fct-thank-you-page-order-items-downloads-button.cw-tutorial-injected .cw-receipt-tutorial-link {
    justify-content: center;
    height: 44px;
    width: 100%;
  }
}

