/* ============= Wizard base ============= */
.baw { border: 1px solid #e5e7eb; padding: 16px; border-radius: 12px; margin: 18px 0; background:#fff; }
.baw h3 { margin: 0 0 12px; font-size: 1.2rem; }
.baw .baw-step { display: block; }
.baw .baw-hint { font-size: .9rem; color: #6b7280; margin-top: 8px; }

/* Cards for style options */
.baw .baw-style-options { display: flex; gap: 12px; flex-wrap: wrap; }
.baw .baw-card { display: flex; align-items: center; gap: 10px; border: 1px solid #d1d5db; border-radius: 12px; padding: 14px 18px; cursor: pointer; background: #fff; transition: box-shadow .15s ease; }
.baw .baw-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.baw .baw-card input { transform: scale(1.2); }
.baw .baw-card-title { font-weight: 600; }

/* Fields & layout */
.baw .baw-field { margin: 12px 0; }
.baw .baw-field.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.baw input[type="text"], .baw select, .baw textarea { width: 100%; }

/* Upload preview */
.baw .baw-upload { margin: 10px 0;     border: 1px solid #5bc1c2; }
.baw #baw_upload_preview img { display: block; margin-top: 8px; max-width: 240px; border-radius: 8px; }

/* Step navigation */
.baw .baw-nav { display: flex; gap: 10px; margin-top: 14px; }

/* Hide images that don't match selected style */
/* .woocommerce-product-gallery__image.baw-hidden,
.woocommerce-product-gallery__wrapper > div.baw-hidden { display: none !important; } */

/* ============= Visibility of buy controls ============= */
/* default: hide both the regular Add to Cart and the Square wallet block */
.postid-2391 form.cart .single_add_to_cart_button,
.postid-2391 form.cart #wc-square-digital-wallet {
  opacity: 0 !important;
}
.postid-2391 form.cart #wc-square-digital-wallet {
  display: none !important ;
}

/* when the wizard marks itself as 'ready' (step 3), reveal them */
#boat-artwork-wizard.baw-ready ~ .baw-buy
{
  display: block !important;
}

/* keep the button layout intact */
#boat-artwork-wizard.baw-ready ~ .baw-buy .single_add_to_cart_button {
  display: inline-flex !important;
}

/* optional: hide quantity for cleaner UI */
/* .product form.cart .quantity { display: none; } */

/* Prettier upload row */
.baw-file { display:flex; gap:12px; align-items:center; margin-bottom:8px; margin-top: 8px; margin-left: 8px;}
.baw-file .baw-file-btn { 
  cursor:pointer;
  background-color: #5cc2c3;
 color: white;
}
.baw-file .baw-file-name { color:#6b7280; font-size:.95rem; }
