.wcflow-modal-container {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 100000;
  background: rgba(0,0,0,0.15);
  display: flex; align-items: stretch; justify-content: stretch;
}

.wcflow-modal-container.visible {
  display: flex;
}

/* Info message for registered users */
.wcflow-info-message {
    background-color: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 4px;
    padding: 12px 16px;
    margin: 12px 0;
    font-size: 14px;
    line-height: 1.4;
}

.wcflow-info-message p {
    margin: 0;
    color: #0066cc;
}

.wcflow-info-message strong {
    color: #004499;
}

/* Direct Order Button Styles */
.wcflow-trigger-btn {
  background: #333;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.wcflow-trigger-btn:hover {
  background: #555;
  color: #fff;
  text-decoration: none;
}

.wcflow-trigger-btn:focus {
  outline: 2px solid #333;
  outline-offset: 2px;
}

/* Restrict hiding rules to only direct order products */
.wcflow-direct-order .woocommerce-variation-add-to-cart,
.wcflow-direct-order .cart,
.wcflow-direct-order .single_add_to_cart_button,
.wcflow-direct-order .woocommerce-variation-add-to-cart .variations_button,
.wcflow-direct-order .woocommerce-loop-product__link + .button,
.wcflow-direct-order .add_to_cart_button,
.wcflow-direct-order .product_type_simple,
.wcflow-direct-order .product_type_variable,
.wcflow-direct-order .product_type_grouped,
.wcflow-direct-order .product_type_external {
  display: none !important;
}

/* Allow variation forms for variable products in direct order */
.wcflow-direct-order .variations_form,
.wcflow-direct-order .variations_form .variations,
.wcflow-direct-order .variations_form .variations select,
.wcflow-direct-order .variations_form .variations label,
.wcflow-direct-order .variations_form .variations .label,
.wcflow-direct-order .variations_form .variations .value,
.wcflow-direct-order .variations_form .variations .reset_variations,
.wcflow-direct-order .variations_form .variations .woocommerce-variation,
.wcflow-direct-order .variations_form .variations .woocommerce-variation-description,
.wcflow-direct-order .variations_form .variations .woocommerce-variation-price,
.wcflow-direct-order .variations_form .variations .woocommerce-variation-availability {
  display: block !important;
}

/* Ensure direct order buttons are visible */
.wcflow-trigger-btn {
  display: inline-block !important;
}

/* Direct order button container */
.wcflow-direct-order-button-container {
  display: block !important;
  margin-top: 20px;
}

.wcflow-direct-order-button-container .wcflow-trigger-btn {
  display: block !important;
  width: 100% !important;
}

/* Gifting button row for regular products (100% width, no quantity controls) */
.wcflow-gifting-button-row {
  margin-top: 20px;
  width: 100%;
}

.wcflow-gifting-button-row .wcflow-trigger-btn {
  width: 100% !important;
  display: block !important;
  margin: 0 !important;
}

/* Product layout row for direct order products (with quantity controls) */
.wcflow-product-layout-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  width: 100%;
}

.wcflow-product-layout-row .quantity {
  flex-shrink: 0;
  margin: 0 !important;
}

.wcflow-product-layout-row .wcflow-trigger-btn {
  flex: 1;
  margin: 0 !important;
}

/* Direct category page variable products - ensure proper layout */
.wcflow-direct-order .wcflow-product-layout-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 20px !important;
}

.wcflow-direct-order .wcflow-product-layout-row .quantity {
  flex-shrink: 0 !important;
  margin: 0 !important;
}

.wcflow-direct-order .wcflow-product-layout-row .wcflow-trigger-btn {
  flex: 1 !important;
  margin: 0 !important;
}

/* Disabled gifting button styles */
.wcflow-trigger-btn:disabled,
.wcflow-trigger-btn.wcflow-button-disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  background-color: #ccc !important;
  color: #999 !important;
}

.wcflow-trigger-btn:disabled:hover,
.wcflow-trigger-btn.wcflow-button-disabled:hover {
  background-color: #ccc !important;
  color: #999 !important;
  text-decoration: none !important;
}

.wcflow-fullscreen {
  position: fixed !important;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 100010;
  background: #fff;
  display: flex;
  flex-direction: column;
  margin: 0;
}

.wcflow-modal-container {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 100000;
  background: rgba(0,0,0,0.15);
  display: flex; align-items: stretch; justify-content: stretch;
}

.wcflow-modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding-bottom: 140px;
  background: #fff;
  width: 100%;
  position: relative;
}

.wcflow-content-wrapper {
  max-width: 1344px;
  margin: 0 auto;
  padding: 0 24px;
}

.wcflow-content-wrapper-step1 {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header Content Wrappers for Different Steps */
.wcflow-header-wrapper-step1,
.wcflow-header-wrapper-step2 {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.wcflow-header-wrapper-step3 {
  max-width: 1344px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Bottom Bar Content Wrappers for Different Steps */
.wcflow-bottom-bar-wrapper-step1,
.wcflow-bottom-bar-wrapper-step2 {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.wcflow-bottom-bar-wrapper-step3 {
  max-width: 1344px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header Styles */
.wcflow-header {
  flex: 0 0 auto;
  border-bottom: 1px solid #e5e5e5;
  background: #fff;
  z-index: 2;
}

.wcflow-header .wcflow-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding-left: 40px;
  padding-right: 10px;
}

/* New Product Header Design */
.wcflow-header-with-product {
  padding: 20px 0;
}

.wcflow-product-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  gap: 16px;
}

.wcflow-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
  min-width: 0;
  justify-self: start;
}

.wcflow-header-exit-btn {
  background: none;
  border: none;
  color: #333;
  padding: 0;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wcflow-header-exit-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.wcflow-header-exit-btn svg path {
  fill: currentColor;
}

.wcflow-header-exit-btn:hover {
  color: #000;
}

.wcflow-header-center {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  justify-self: center;
}

.wcflow-product-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #f5f5f5;
}

.wcflow-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wcflow-product-name {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wcflow-header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  justify-self: end;
}

.wcflow-header-continue-btn {
  background: #007cba;
  border: 1px solid #007cba;
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.wcflow-header-continue-btn:hover {
  background: #006ba1;
  border-color: #006ba1;
}

/* Old styles kept for backward compatibility */
.wcflow-product-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.wcflow-product-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wcflow-step-indicators {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wcflow-step-indicator {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e5e5e5;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

.wcflow-step-indicator.active {
  background: #333;
  color: #fff;
}

.wcflow-step-indicator.completed {
  background: #28a745;
  color: #fff;
}

.wcflow-step-separator {
  position: relative;
  width: 40px;
  height: 2px;
  background: #e5e5e5;
  border-radius: 1px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wcflow-step-separator::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: var(--progress-width, 0%);
  background: #333;
  border-radius: 1px;
  transition: width 0.3s ease;
}

.wcflow-step-separator.progress-active::before {
  transition: width 0.1s linear;
}

.wcflow-step-separator.completed::before {
  width: 100% !important;
  background: #28a745;
}

.wcflow-header-action-btn {
  background: none;
  border: 1px solid #333;
  color: #333;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.wcflow-header-action-btn:hover {
  background: #333;
  color: #fff;
}

.wcflow-header-left .wcflow-back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 0;
  font-family: inherit;
}

.wcflow-header-right .wcflow-secure-checkout {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #666;
  font-size: 14px;
  font-weight: 500;
}

/* Bottom Bar */
.wcflow-bottom-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  border-top: 1px solid #e5e5e5;
  z-index: 50;
  box-shadow: 0 -2px 10px 0 rgba(0,0,0,0.05);
}

.wcflow-bottom-bar .wcflow-bottom-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.wcflow-order-summary {
  flex: 1;
  display: none; /* Temporarily hidden */
}

.wcflow-order-total-line {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.wcflow-order-amount {
  margin-left: 8px;
}

.wcflow-order-details {
  font-size: 14px;
  color: #666;
  margin-top: 4px;
}

.wcflow-bottom-bar-action {
  margin-left: 24px;
}

.wcflow-bottom-bar-btn {
  font-size: 16px;
  padding: 18px 32px;
  border-radius: 8px;
  color: #fff;
  background: #007cba;
  border: 1px solid #007cba;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.wcflow-btn-secondary {
  background: #f0f0f0;
  color: #333;
  border: 1px solid #ddd;
  margin-right: 12px;
  cursor: pointer;
  pointer-events: auto;
}

.wcflow-btn-secondary:hover {
  background: #e0e0e0;
  color: #333;
}

.wcflow-btn-continue-shopping {
  cursor: pointer !important;
  pointer-events: auto !important;
  z-index: 9999 !important;
  position: relative !important;
  background: #f0f0f0 !important;
  color: #333 !important;
  border: 1px solid #ddd !important;
  margin-right: 12px !important;
}

.wcflow-btn-continue-shopping:hover {
  background: #e0e0e0 !important;
  color: #333 !important;
}

.wcflow-btn-continue-shopping.wcflow-processing {
  background: #ccc !important;
  color: #666 !important;
  cursor: not-allowed !important;
  opacity: 0.7;
}

/* Spinner for button */
.wcflow-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #333;
  border-radius: 50%;
  animation: wcflow-spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

.wcflow-btn-secondary .wcflow-spinner {
  border: 2px solid rgba(51, 51, 51, 0.3);
  border-top-color: #333;
}

@keyframes wcflow-spin {
  to {
    transform: rotate(360deg);
  }
}

.wcflow-btn-text {
  display: inline-block;
}


/* Main Content */
.wcflow-main-title {
  font-size: 2.2rem;
  font-weight: 600;
  margin: 40px 0 14px 0;
  text-align: center;
}

.wcflow-main-subtitle {
  font-size: 1.1rem;
  color: #666;
  text-align: center;
  margin: 0 auto 40px auto;
  max-width: 600px;
}

.wcflow-section-subtitle {
  font-size: 1rem;
  color: #666;
  margin: 10px 0 20px 0;
}

.wcflow-spacer {
  height: 40px;
}

.wcflow-addons-gallery {
  margin: 0 0 40px 0;
  position: relative;
  min-height: 200px;
}

.wcflow-addons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Center loading spinner in addons section */
.wcflow-addons-gallery .wcflow-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

/* Add-on Item */
.wcflow-addon-item {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: all .3s ease;
  cursor: pointer;
  opacity: 1;
  transform: scale(1);
}

/* Skeleton Loader for Add-on Items */
.wcflow-addon-item-skeleton,
.wcflow-addons-skeleton {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  display: flex !important;
  flex-direction: column;
  overflow: hidden;
  position: relative !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Ensure the addons grid displays skeleton items properly */
.wcflow-addons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.wcflow-addon-skeleton-item {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  display: flex !important;
  flex-direction: column;
  overflow: hidden;
  position: relative !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

.wcflow-addon-skeleton-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  animation: skeleton-loading 1.5s infinite;
  z-index: 1;
}

.wcflow-addon-item-skeleton::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  animation: skeleton-loading 1.5s infinite;
  z-index: 1;
}

.wcflow-addon-item-skeleton-image,
.wcflow-addon-skeleton-image {
  width: 100% !important;
  aspect-ratio: 1/1;
  background: #f0f0f0 !important;
  border-bottom: 1px solid #e5e5e5;
  border-radius: 4px 4px 0 0;
  position: relative !important;
  visibility: visible !important;
  opacity: 1 !important;
  display: block !important;
}

.wcflow-addon-skeleton-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: skeleton-loading 1.5s infinite;
  z-index: 1;
}

/* Ensure skeleton elements have proper dimensions */
.wcflow-addon-skeleton-image {
  min-height: 200px;
}

.wcflow-addon-item-skeleton-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: skeleton-loading 1.5s infinite;
  z-index: 1;
}

.wcflow-addon-item-skeleton-content,
.wcflow-addon-skeleton-content {
  padding: 16px;
  flex-grow: 1;
  display: flex !important;
  flex-direction: column;
  gap: 8px;
  position: relative !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.wcflow-addon-item-skeleton-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: skeleton-loading 1.5s infinite;
  z-index: 1;
}

.wcflow-addon-item-skeleton-title,
.wcflow-addon-skeleton-title {
  height: 20px;
  background: #e0e0e0 !important;
  border-radius: 4px;
  width: 80%;
  position: relative !important;
  visibility: visible !important;
  opacity: 1 !important;
  display: block !important;
}

.wcflow-addon-skeleton-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: skeleton-loading 1.5s infinite;
  z-index: 1;
}

/* Ensure skeleton text elements have proper dimensions */
.wcflow-addon-skeleton-title {
  min-height: 20px;
}

.wcflow-addon-skeleton-price {
  min-height: 16px;
}

.wcflow-addon-item-skeleton-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: skeleton-loading 1.5s infinite;
  z-index: 1;
}

.wcflow-addon-item-skeleton-price,
.wcflow-addon-skeleton-price {
  height: 16px;
  background: #e0e0e0 !important;
  border-radius: 4px;
  width: 60%;
  position: relative !important;
  visibility: visible !important;
  opacity: 1 !important;
  display: block !important;
}

.wcflow-addon-skeleton-price::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: skeleton-loading 1.5s infinite;
  z-index: 1;
}

.wcflow-addon-item-skeleton-price::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: skeleton-loading 1.5s infinite;
  z-index: 1;
}

.wcflow-addon-item-skeleton-actions {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.wcflow-addon-item-skeleton-details-btn {
  height: 32px;
  background: #e0e0e0;
  border-radius: 4px;
  width: 60px;
  position: relative;
}

.wcflow-addon-item-skeleton-details-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: skeleton-loading 1.5s infinite;
  z-index: 1;
}

.wcflow-addon-item-skeleton-add-btn {
  height: 32px;
  background: #e0e0e0;
  border-radius: 4px;
  width: 80px;
  position: relative;
}

.wcflow-addon-item-skeleton-add-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: skeleton-loading 1.5s infinite;
  z-index: 1;
}

/* Basket Skeleton Loader Styles */
.wcflow-basket-skeleton {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 16px;
  gap: 16px;
  position: relative;
  overflow: hidden;
  min-height: 120px;
}

.wcflow-basket-skeleton::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  animation: skeleton-loading 1.5s infinite;
  z-index: 1;
}

.wcflow-basket-skeleton-image {
  width: 80px;
  height: 80px;
  background: #f0f0f0;
  border-radius: 8px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.wcflow-basket-skeleton-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: skeleton-loading 1.5s infinite;
  z-index: 1;
}

.wcflow-basket-skeleton-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.wcflow-basket-skeleton-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: skeleton-loading 1.5s infinite;
  z-index: 1;
}

.wcflow-basket-skeleton-title {
  height: 20px;
  background: #e0e0e0;
  border-radius: 4px;
  width: 70%;
  position: relative;
  overflow: hidden;
}

.wcflow-basket-skeleton-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: skeleton-loading 1.5s infinite;
  z-index: 1;
}

.wcflow-basket-skeleton-price {
  height: 16px;
  background: #e0e0e0;
  border-radius: 4px;
  width: 50%;
  position: relative;
  overflow: hidden;
}

.wcflow-basket-skeleton-price::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: skeleton-loading 1.5s infinite;
  z-index: 1;
}

.wcflow-basket-skeleton-quantity {
  height: 16px;
  background: #e0e0e0;
  border-radius: 4px;
  width: 30%;
  position: relative;
  overflow: hidden;
}

.wcflow-basket-skeleton-quantity::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: skeleton-loading 1.5s infinite;
  z-index: 1;
}

@keyframes skeleton-loading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.wcflow-addon-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.wcflow-addon-item.selected {
  border-color: #007cba;
  box-shadow: 0 0 0 2px #007cba;
  opacity: 1;
  transform: scale(1);
}

/* When grid has selections, dim non-selected items */
.wcflow-addons-grid.has-selection .wcflow-addon-item:not(.selected) {
  opacity: 0.5;
  transform: scale(0.95);
}

.wcflow-addon-item-image {
  width: 100%;
  aspect-ratio: 1/1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f5f5f5;
  border-bottom: 1px solid #e5e5e5;
  border-radius: 4px 4px 0 0;
  position: relative;
  overflow: hidden;
}

/* Loading state - show animated skeleton OVER the image area */
.wcflow-addon-item-image.wcflow-image-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: wcflow-addon-shimmer 1.2s ease-in-out infinite;
  border-radius: 4px 4px 0 0;
  z-index: 1;
}

/* When not loading, no pseudo-element blocks the background */
.wcflow-addon-item-image:not(.wcflow-image-loading)::after {
  display: none;
}

@keyframes wcflow-addon-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.wcflow-addon-item-content {
  padding: 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.wcflow-addon-item-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 4px 0;
}

.wcflow-addon-item-price {
  font-size: 16px;
  font-weight: 400;
  color: #333;
  margin-bottom: 16px;
}

.wcflow-addon-item-actions {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wcflow-addon-details-btn {
  font-size: 14px;
  color: #666;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.wcflow-addon-add-btn {
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid #333;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  transition: all .2s;
}

.wcflow-addon-add-btn:hover {
  background: #333;
  color: #fff;
}

.wcflow-addon-item.selected .wcflow-addon-add-btn {
  background: #333;
  color: #fff;
}

/* Add-on Details Modal */
.wcflow-details-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 100020;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wcflow-details-modal-content {
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  position: relative;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.wcflow-details-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #999;
  background: none;
  border: none;
  cursor: pointer;
}

/* Exit Confirmation Modal */
.wcflow-exit-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 100030;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wcflow-exit-modal-content {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  text-align: center;
}

.wcflow-exit-modal-title {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin: 0 0 16px 0;
}

.wcflow-exit-modal-text {
  font-size: 16px;
  color: #666;
  line-height: 1.5;
  margin: 0 0 32px 0;
}

.wcflow-exit-modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wcflow-exit-modal-btn {
  width: 100%;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.wcflow-exit-keep-editing {
  background: #007cba;
  color: #fff;
  border: 1px solid #007cba;
}

.wcflow-exit-keep-editing:hover {
  background: #006ba1;
  border-color: #006ba1;
}

.wcflow-exit-add-to-cart {
  background: #28a745;
  color: #fff;
  border: 1px solid #28a745;
}

.wcflow-exit-add-to-cart:hover {
  background: #218838;
  border-color: #218838;
}

.wcflow-exit-leave {
  background: #f0f0f0;
  color: #333;
  border: 1px solid #ddd;
}

.wcflow-exit-leave:hover {
  background: #e0e0e0;
  border-color: #ccc;
}

/* Greeting Cards Section */
.wcflow-cards-section {
  margin-bottom: 40px;
  width: 100%;
}

.wcflow-cards-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.wcflow-section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.wcflow-see-all-cards {
  font-size: 14px;
  color: #007cba;
  text-decoration: underline;
  cursor: pointer;
}

/* Hide "See all" button on mobile */
@media (max-width: 768px) {
  .wcflow-see-all-cards {
    display: none;
  }
}

.wcflow-card-desc {
  max-width: 1200px;
  margin: 0 auto 24px auto;
  padding: 0 24px;
  font-size: 1em;
  color: #666;
}

.wcflow-cards-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 18px;
  padding-left: calc((100vw - 1200px) / 2 + 24px);
  padding-right: 24px;
  margin-bottom: 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  scroll-behavior: smooth;
}

.wcflow-cards-slider::-webkit-scrollbar {
  display: none;
}

.wcflow-cards-slider.is-expanded {
  flex-wrap: wrap;
  overflow-x: visible;
  padding-left: 0;
  padding-right: 0;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 24px;
}

.wcflow-slider-controls {
  max-width: 1200px;
  margin: 8px auto 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.wcflow-slider-progress {
  flex-grow: 1;
  height: 2px;
  background: #e5e5e5;
  border-radius: 1px;
}

.wcflow-slider-progress-bar {
  height: 100%;
  width: 0;
  background: #007cba;
  border-radius: 1px;
  transition: width 0.2s ease-out;
}

.wcflow-slider-arrows {
  display: flex;
  gap: 8px;
}

.wcflow-slider-arrow {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  max-width: 48px;
  max-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
  position: relative;
  z-index: 10;
  outline: none;
  color: #333;
}

.wcflow-slider-arrow:hover:not(:disabled) {
  background: #f0f0f0;
  border-color: #999;
}

.wcflow-slider-arrow:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.wcflow-slider-arrow svg {
  width: 20px;
  height: 20px;
  display: block;
  margin: 0;
  background: none;
  border: none;
  pointer-events: none;
}

.wcflow-slider-arrow svg path {
  stroke: #333 !important;
  fill: none !important;
  stroke-width: 2;
  transition: stroke 0.2s;
}

/* Card Items */
.wcflow-card-item {
  flex: 0 0 200px;
  text-align: left;
  background: #fff;
  cursor: pointer;
  transition: all .3s ease;
  position: relative;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 2px;
}

@media (max-width: 768px) {
  .wcflow-card-item {
    flex: 0 0 206px;
    width: 206px;
  }
}

/* Selected card styling */
.wcflow-modal-container .wcflow-card-item.selected {
  border: 1px solid #000 !important;
  box-shadow: none !important;
  background-color: #F9ECD7 !important;
  scale: none !important;
}

/* Selected card summary */
.wcflow-selected-card-summary {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 10px;
}
.wcflow-selected-card-image img {
  max-width: 128px;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}
.wcflow-selected-card-details .wcflow-selected-card-title {
  margin: 0 0 4px 0;
  font-weight: 600;
}
.wcflow-selected-card-details .wcflow-selected-card-price {
  margin: 0;
  color: #666;
}

/* Removed selection-specific image wrapper border to avoid blue outline */

.wcflow-card-image-wrapper {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}

.wcflow-card-item img {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  background-color: #f5f5f5;
  min-height: 150px;
}

/* Image missing/error state */
.wcflow-card-item img.wcflow-image-missing,
.wcflow-addon-item-image.wcflow-image-missing {
  background: #f5f5f5;
  min-height: 200px;
}

.wcflow-card-item p {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin: 0 0 4px 0;
}

.wcflow-card-item .wcflow-card-price {
  font-size: 14px;
  font-weight: 400;
  color: #666;
}

.wcflow-message-section {
  margin: 52px 0 36px 0;
  text-align: center;
}

.wcflow-message-textarea {
  width: 420px;
  max-width: 90vw;
  height: 120px;
  padding: 14px;
  font-size: 1em;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin: 0 auto;
  display: block;
  resize: vertical;
}

.wcflow-message-count {
  font-size: .95em;
  color: #999;
  margin: 6px auto 0 auto;
  text-align: right;
  width: 420px;
  max-width: 90vw;
}

/* Desktop Add to Cart Button */
.wcflow-desktop-add-to-cart-btn {
  display: none;
  width: 420px;
  max-width: 90vw;
  margin: 20px auto 0 auto;
  padding: 18px 32px;
  background: #007cba;
  border: 1px solid #007cba;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.wcflow-desktop-add-to-cart-btn:hover {
  background: #006ba1;
  border-color: #006ba1;
}

/* Show desktop add to cart button on desktop, hide footer */
@media (min-width: 769px) {
  .wcflow-desktop-add-to-cart-btn {
    display: block;
  }
  
  .wcflow-modal-container .wcflow-bottom-bar,
  .wcflow-modal-container .wcflow-bottom-bar-wrapper-step1,
  .wcflow-modal-container .wcflow-bottom-bar-inner {
    display: none !important;
  }
  
  .wcflow-modal-body {
    padding-bottom: 60px;
  }
}

/* Small loader for inline use */
.wcflow-loader {
  width: 24px;
  height: 24px;
  margin: 0;
}

.wcflow-loader::before {
  border-width: 2px;
}

.wcflow-loader::after {
  top: 3px;
  left: 3px;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  border-width: 1px;
}

.wcflow-error {
  color: #d63384;
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  .wcflow-form-row.two-columns {
    flex-direction: column;
    gap: 16px;
  }
  
  .wcflow-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .wcflow-bottom-bar-inner {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  
  .wcflow-bottom-bar-action {
    margin-left: 0;
  }
  
  .wcflow-bottom-bar-btn {
    width: 100%;
  }
  
  /* Mobile responsive styles for gifting buttons */
  .wcflow-gifting-button-row .wcflow-trigger-btn {
    width: 100% !important;
    padding: 16px 24px !important;
    font-size: 16px !important;
  }
  
  /* Direct category products - keep quantity and button in one row on mobile */
  .wcflow-product-layout-row {
    flex-direction: row !important;
    gap: 12px !important;
    align-items: center !important;
  }
  
  .wcflow-product-layout-row .quantity {
    flex-shrink: 0 !important;
    width: auto !important;
    margin: 0 !important;
  }
  
  .wcflow-product-layout-row .wcflow-trigger-btn {
    flex: 1 !important;
    padding: 16px 24px !important;
    font-size: 16px !important;
  }
  
  /* Hide continue shopping button on mobile for step 1, show for step 2 */
  .wcflow-modal[data-step="1"] .wcflow-btn-continue-shopping {
    display: none;
  }
  
  .wcflow-modal[data-step="2"] .wcflow-btn-continue-shopping {
    display: inline-block;
  }
  
  /* Add padding to step 2 modal body to prevent footer overlap on all mobile devices */
  .wcflow-modal[data-step="2"] .wcflow-modal-body {
    padding-bottom: 220px;
  }
  
  /* Ensure proper spacing for delivery date and shipping method fields */
  .wcflow-modal[data-step="2"] .wcflow-form-row:last-of-type {
    margin-bottom: 240px;
  }
  
  /* Additional spacing specifically for shipping method field */
  .wcflow-modal[data-step="2"] #wcflow-shipping-method-selector {
    margin-bottom: 40px;
  }
  
  /* Extra spacing for LP Express terminal row if visible */
  .wcflow-modal[data-step="2"] #lp-express-terminal-row {
    margin-bottom: 40px;
  }
  
  /* iOS Safari specific fixes for safe area */
  @supports (-webkit-touch-callout: none) {
    /* Safari-specific cart sidebar fixes */
    .cart-sidebar, .mini-cart, .off-canvas-cart, .woocommerce-cart-sidebar {
      -webkit-transform: translateZ(0);
      transform: translateZ(0);
      -webkit-backface-visibility: hidden;
      backface-visibility: hidden;
      will-change: transform;
    }
    
    /* Force hardware acceleration for Safari cart animations */
    .cart-sidebar.active, .mini-cart.active, .off-canvas-cart.active, .woocommerce-cart-sidebar.active {
      -webkit-transform: translate3d(0, 0, 0);
      transform: translate3d(0, 0, 0);
    }
    .wcflow-modal[data-step="2"] .wcflow-modal-body {
      padding-bottom: calc(220px + env(safe-area-inset-bottom));
    }
  }
  
  /* Mobile add-ons grid - 2 columns */
  .wcflow-addons-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .wcflow-cards-slider {
    padding-left: 24px;
  }
  
  /* Mobile header layout adjustments */
  .wcflow-header-with-product {
    padding: 8px 0;
  }
  
  .wcflow-product-header {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .wcflow-header-left {
    gap: 8px;
    justify-content: flex-end;
    flex-shrink: 0;
    order: 2;
  }
  
  .wcflow-header-exit-btn {
    font-size: 14px;
    white-space: nowrap;
    gap: 6px;
  }
  
  .wcflow-header-exit-btn svg {
    width: 16px;
    height: 16px;
    transform: rotate(180deg);
  }
  
  .wcflow-header-center {
    gap: 8px;
    min-width: 0;
    justify-content: flex-start;
    overflow: hidden;
    flex: 1;
    order: 1;
  }
  
  .wcflow-header-exit-btn span {
    order: 1;
  }
  
  .wcflow-header-exit-btn svg {
    order: 2;
  }
  
  .wcflow-product-image {
    width: 36px;
    height: 36px;
  }
  
  .wcflow-product-name {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .wcflow-header-right {
    display: none;
  }
  
  .wcflow-header-continue-btn {
    display: none;
  }
  
  .wcflow-product-info {
    gap: 8px;
    flex: 1;
    min-width: 0;
  }
  
  .wcflow-step-indicators {
    gap: 4px;
    flex-shrink: 0;
  }
  
  .wcflow-step-indicator {
    width: 16px;
    height: 16px;
    font-size: 10px;
  }
  
  .wcflow-step-separator {
    width: 24px;
    height: 1px;
  }
  
  .wcflow-header-action-btn {
    padding: 4px 8px;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  /* Mobile exit modal adjustments */
  .wcflow-exit-modal-content {
    padding: 24px;
    max-width: 90%;
  }
  
  .wcflow-exit-modal-title {
    font-size: 20px;
    margin-bottom: 12px;
  }
  
  .wcflow-exit-modal-text {
    font-size: 14px;
    margin-bottom: 24px;
  }
  
  .wcflow-exit-modal-btn {
    padding: 12px 20px;
    font-size: 14px;
  }
}

.wcflow-personalise-card-row {
  display: flex;
  align-items: flex-start;
  background: #fff;
  padding: 0;
  margin: 0 0 32px 0;
  border: none;
  box-shadow: none;
}

.wcflow-personalise-card-item {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: none;
  box-shadow: none;
  padding: 0;
}

.wcflow-personalise-card-image {
  min-width: 280px;
  width: 280px;
  height: 396px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 0;
  overflow: hidden;
  margin-right: 0;
}

.wcflow-personalise-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wcflow-personalise-card-tap {
  color: #007cba;
  font-size: 1.1em;
  text-align: center;
  cursor: pointer;
  width: 100%;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.wcflow-personalise-card-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #fff;
  border: none;
  font-size: 20px;
  color: #333;
  cursor: pointer;
  display: none;
}

.wcflow-personalise-card-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 180px;
  background: #fff;
  padding: 32px 24px;
  box-sizing: border-box;
}

.wcflow-personalise-card-title {
  font-size: 1.5em;
  font-weight: 500;
  margin-bottom: 8px;
}

.wcflow-personalise-card-price {
  font-size: 1.3em;
  color: #666;
  margin-bottom: 8px;
}

/* --- WCFLOW placeholder upload styles --- */
#wcflow-cropper-container,
.wcflow-personalise-card-image {
  border: 2px dashed #C4C4C4;
}

#wcflow-cropper-placeholder,
.wcflow-personalise-card-tap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #000;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
}

#wcflow-cropper-placeholder::before,
.wcflow-personalise-card-tap::before {
  content: '';
  display: inline-block;
  width: 40px;
  height: 40px;
  vertical-align: middle;
  margin-right: 8px;
  background: #fff;
  border-radius: 50%;
  border: 1px solid #C4C4C4;
  box-sizing: border-box;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 32px 32px;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 16"><path fill="black" d="M9 1.5c.288 0 .522.224.522.5v12c0 .276-.234.5-.522.5a.511.511 0 0 1-.522-.5V2c0-.276.234-.5.522-.5Z"/><path fill="black" d="M2.217 8c0-.276.234-.5.522-.5h12.522c.288 0 .522.224.522.5s-.234.5-.522.5H2.739a.511.511 0 0 1-.522-.5Z"/></svg>') center/32px 32px no-repeat;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 16"><path fill="black" d="M9 1.5c.288 0 .522.224.522.5v12c0 .276-.234.5-.522.5a.511.511 0 0 1-.522-.5V2c0-.276.234-.5.522-.5Z"/><path fill="black" d="M2.217 8c0-.276.234-.5.522-.5h12.522c.288 0 .522.224.522.5s-.234.5-.522.5H2.739a.511.511 0 0 1-.522-.5Z"/></svg>') center/32px 32px no-repeat;
  background-color: #000;
}

/* Cropper control buttons always black */
#wcflow-cropper-controls button {
  color: #000 !important;
  background: #fff !important;
  border: 1px solid #ccc !important;
  font-weight: 700;
}
#wcflow-cropper-controls button:hover,
#wcflow-cropper-controls button:focus {
  color: #000 !important;
  background: #fff !important;
  border: 1px solid #000 !important;
}
#wcflow-cropper-controls button svg,
#wcflow-cropper-controls button svg path {
  fill: #000 !important;
  stroke: none !important;
}

.wcflow-personalise-card-actions {
  display: inline-block;
  vertical-align: middle;
}
.wcflow-personalise-card-edit,
.wcflow-personalise-card-remove {
  color: #007cba;
  font-size: 0.95em;
  text-decoration: underline;
  cursor: pointer;
  margin-right: 4px;
}
.wcflow-personalise-card-remove {
  color: #d7263d;
  margin-right: 0;
}
.wcflow-personalise-card-edit:hover,
.wcflow-personalise-card-remove:hover {
  text-decoration: none;
}
.wcflow-personalise-card-image {
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.wcflow-content-wrapper-personalised-card {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Responsive */
@media (max-width: 768px) {
  .wcflow-personalise-card-row {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }
  .wcflow-personalise-card-image {
    margin-right: 0;
    margin-bottom: 16px;
    width: 100%;
    min-width: 0;
    max-width: 340px;
    height: auto;
    aspect-ratio: 280/396;
    align-self: center;
  }
  .wcflow-personalise-card-info {
    padding: 24px 12px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }
}