/* Option chips on the product page (inc/product-variants.php) */
.fp26v-range { margin: 0 0 14px; padding: 12px 16px; border-radius: 10px; color: #4a4f63; background: #f3f4f8; font-size: 14px; }
.fp26v-range b, .fp26v-range b .amount { color: #e5391f; font-size: 22px; font-weight: 700; }
.fp26v-range small { color: #6b7280; }
.fp26v { display: grid; gap: 14px; margin: 0 0 18px; }
.fp26v-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: start; gap: 12px; }
.fp26v-label { padding-top: 8px; color: #6b7280; font-size: 14px; }
.fp26v-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fp26v-chip { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 14px; border: 1px solid #cfd3e0; border-radius: 8px; color: #1b2a6b !important; background: #fff; font-size: 14px; line-height: 1.3; text-decoration: none !important; transition: border-color .15s, color .15s; }
a.fp26v-chip:hover { border-color: #2148b0; color: #2148b0 !important; }
.fp26v-chip.is-active { border-color: #2148b0; color: #2148b0 !important; background: #f3f5fc; box-shadow: inset 0 0 0 1px #2148b0; font-weight: 600; }
.fp26v-chip.is-disabled { color: #b3b8c6 !important; background: #f7f8fb; border-style: dashed; cursor: not-allowed; }
@media (max-width: 767px) { .fp26v-row { grid-template-columns: 1fr; gap: 6px; } .fp26v-label { padding: 0; } }
/* zadora prints the excerpt before the order form; show it after, like Shopee. */
.single-product .content-product-right .shop-bottom { display: flex; flex-direction: column; }
.single-product .content-product-right .shop-bottom > .description { order: 10; margin-top: 20px; padding-top: 16px; border-top: 1px solid #dfe2ea; }
.single-product .shop-top .fp26v { margin-top: 16px; }

/* Smaller gallery: image column 42%, details 58%, image capped in height. */
@media (min-width: 992px) {
  .single-product .content-product-left { width: 42% !important; }
  .single-product .content-product-right { width: 58% !important; }
  .single-product .woocommerce-product-gallery :is(img, .wp-post-image) { max-height: 520px; object-fit: contain; }
  .single-product .content-product-right .pl20 { padding-left: 28px; }
}

/* One text weight scale on the product page (the theme sets some text to 300). */
.single-product #content :is(.price, .amount, p, li, td, small, label, span) { font-weight: 400; }
.single-product #content :is(h1, .product_title) { font-size: 24px; font-weight: 700; line-height: 1.35; }
.single-product #content .shop-top .price, .single-product #content .shop-top .price .amount { color: #e5391f; font-size: 24px; font-weight: 700; }
.single-product #content .woocommerce-variation-price .price .amount { font-weight: 700; }

/* Variations (woo-variation-swatches) as Shopee-style option rows */
.single-product table.variations { width: 100%; margin: 4px 0 18px; border: 0; }
.single-product table.variations tr { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; margin-bottom: 14px; }
.single-product table.variations td { display: block; padding: 0 !important; border: 0 !important; background: none !important; }
.single-product table.variations td.label { padding-top: 8px !important; }
.single-product table.variations td.label label { margin: 0; color: #6b7280; font-size: 14px; font-weight: 400; }
.single-product table.variations .woo-selected-variation-item-name { display: none; }
.single-product .variable-items-wrapper { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 !important; padding: 0 !important; }
.single-product .variable-items-wrapper .variable-item.button-variable-item { width: auto !important; min-width: 0 !important; height: auto !important; min-height: 38px; margin: 0 !important; padding: 6px 14px !important; border: 1px solid #cfd3e0 !important; border-radius: 8px !important; background: #fff !important; box-shadow: none !important; }
.single-product .variable-items-wrapper .variable-item .variable-item-span { padding: 0 !important; color: #1b2a6b; font-size: 14px; font-weight: 400; line-height: 1.6; white-space: nowrap; }
.single-product .variable-items-wrapper .variable-item:hover { border-color: #2148b0 !important; }
.single-product .variable-items-wrapper .variable-item.selected { border-color: #2148b0 !important; background: #f3f5fc !important; box-shadow: inset 0 0 0 1px #2148b0 !important; }
.single-product .variable-items-wrapper .variable-item.selected .variable-item-span { color: #2148b0; font-weight: 600; }
.single-product .variable-items-wrapper .variable-item.disabled { opacity: .45; }
.single-product a.reset_variations { display: inline-block; margin-top: 8px; color: #6b7280; font-size: 13px; }
.single-product .woocommerce-variation-price { margin: 0 0 12px; }

/* Product add-on form (WCPA): preserve the rows configured in the form
   builder. Flattening every row mixed unrelated fields across columns. */
.single-product .wcpa_form_outer { margin: 0 0 16px; padding: 18px; border: 1px solid #dfe2ea; border-radius: 14px; background: #fff; }
.single-product .wcpa_section_body { display: grid; grid-template-columns: minmax(0, 1fr) !important; gap: 14px; }
.single-product .wcpa_row { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0 !important; }
.single-product .wcpa_row:has(> .wcpa_field_wrap:only-child) { grid-template-columns: minmax(0, 1fr); }
.single-product .wcpa_field_wrap { width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; flex: none !important; }
.single-product .wcpa_type_content { grid-column: 1 / -1; color: #1b2a6b; font-size: 15px; font-weight: 600; }
.single-product .wcpa_field_wrap label, .single-product .wcpa_field_label { display: block; min-height: 0 !important; margin: 0 0 6px !important; color: #1b2a6b; font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.single-product .wcpa_field_wrap :is(input[type=text], input[type=email], input[type=tel], input[type=number], textarea, select) { width: 100%; min-height: 42px; padding: 8px 12px; border: 1px solid #cfd3e0; border-radius: 9px; font-size: 14px; box-shadow: none; }
.single-product .wcpa_field_wrap :is(input, textarea, select):focus { border-color: #2148b0; outline: 0; box-shadow: 0 0 0 3px rgba(33, 72, 176, .15); }
.single-product .wcpa_price_summary, .single-product .wcpa_form_outer + .price { display: none; }
@media (max-width: 767px) {
  .single-product .wcpa_row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .single-product table.variations tr { grid-template-columns: 1fr; gap: 6px; }
}

/* Wedding card: the source form has a duplicated English groom label. */
body.postid-9723 .wcpa_row_index_0 { order: 1; }
body.postid-9723 .wcpa_row_index_1 { order: 2; }
body.postid-9723 .wcpa_row_index_4 { order: 3; }
body.postid-9723 .wcpa_row_index_2 { order: 4; }
body.postid-9723 .wcpa_row_index_3 { order: 5; }
body.postid-9723 .wcpa_row_index_5 { order: 6; }
body.postid-9723 .wcpa_row_index_6 { order: 7; }
body.postid-9723 .wcpa_field_wrap#text-4377281221 > .wcpa_field_label {
  font-size: 0 !important;
}
body.postid-9723 .wcpa_field_wrap#text-4377281221 > .wcpa_field_label::after {
  content: "เจ้าสาว (EN)";
  font-size: 13.5px;
}

/* Variable products: selected price, then quantity + add to cart + wishlist on one row */
.single-product .woocommerce-variation-price .price { display: inline-flex; align-items: baseline; gap: 6px; margin: 0 0 14px; color: #e5391f !important; font-size: 24px !important; font-weight: 700 !important; }
.single-product .woocommerce-variation-price .price .amount { color: #e5391f !important; font-weight: 700 !important; }
.single-product .woocommerce-variation-add-to-cart { display: flex !important; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 16px; }
.single-product .woocommerce-variation-add-to-cart > * { margin: 0 !important; float: none !important; }
.single-product .woocommerce-variation-add-to-cart .quantity { flex: none; }
.single-product .woocommerce-variation-add-to-cart .single_add_to_cart_button { flex: 1 1 220px; width: auto !important; min-height: 52px; }
.single-product .woocommerce-variation-add-to-cart :is(.yith-wcwl-add-to-wishlist, .add_to_wishlist) { flex: none; }
.single-product .woocommerce-variation.single_variation { margin: 0; }
.single-product .woocommerce-variation-availability:empty, .single-product .woocommerce-variation-description:empty { display: none; }

/* Meta, shortcut buttons and share icons: tidy rows with even spacing */
.single-product .product_meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 16px 0 12px !important; padding-top: 14px; border-top: 1px solid #dfe2ea; font-size: 13.5px; }
.single-product .product_meta > span { margin: 0 !important; }
.single-product .content-product-right .shop-bottom > .description { order: 10; }
.single-product .content-product-right .shop-bottom > .description ul { margin: 0; padding: 0; }

/* Upload box: icon and text centred together */
.single-product .fp26f-upload #drop_uploader, .single-product .fp26f-upload .drop_uploader { display: flex !important; align-items: center; justify-content: center; min-height: 120px; text-align: center; }
.single-product .fp26f-upload .drop_uploader .text_wrapper { display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; margin: 0 !important; padding: 0 !important; position: static !important; transform: none !important; text-align: center; }
.single-product .fp26f-upload .drop_uploader .text_wrapper i, .single-product .fp26f-upload .drop_uploader .text_wrapper svg { position: static !important; margin: 0 !important; }

/* Final tidy: one buy row, no overlapping badge, single dividers */
.single-product .woocommerce-variation-add-to-cart { flex-wrap: nowrap; }
.single-product .woocommerce-variation-add-to-cart .single_add_to_cart_button { flex: 1 1 0; min-width: 0; }
.single-product .woocommerce-variation-add-to-cart :is(.yith-wcwl-add-to-wishlist, .add_to_wishlist, .yith-wcwl-add-button) { flex: none; }
.single-product .woocommerce-product-gallery .newpt, .single-product .content-product-left :is(.newpt, .onsale) { display: none !important; }
.single-product .reset_variations { margin: 2px 0 0 122px; }
.single-product table.variations { margin-bottom: 6px; }
.single-product .woocommerce-variation-price .price { margin: 4px 0 12px; }
.single-product .fp26f-upload { margin-top: 12px; }
.single-product .content-product-right .shop-bottom hr, .single-product .content-product-right .shop-bottom .fp26p-trust + hr { display: none; }
.single-product .fp26p-trust { margin-bottom: 0; }
.single-product .product_meta { border-top: 1px solid #dfe2ea; }
.single-product .content-product-right .shop-bottom > .description { border-top: 0; margin-top: 12px; padding-top: 0; }
@media (max-width: 767px) { .single-product .reset_variations { margin-left: 0; } }

/* Gallery: no "New" badge, no dark hover-zoom layer (the expand button opens the full image);
   every slide is the same square, image fitted inside. */
.single-product .content-product-left .item-label, .single-product .content-product-left .new { display: none !important; }
.single-product .woocommerce-product-gallery .zoomImg { display: none !important; }
.single-product .woocommerce-product-gallery__image { overflow: hidden; }
.single-product .woocommerce-product-gallery .slick-slide .woocommerce-product-gallery__image > a,
.single-product .woocommerce-product-gallery .on_slider .woocommerce-product-gallery__image { display: block; aspect-ratio: 1; background: #fff; }
.single-product .woocommerce-product-gallery .on_slider img:not(.zoomImg) { width: 100% !important; height: 100% !important; max-height: none; object-fit: contain; }
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image { aspect-ratio: 1; background: #fff; }
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image :is(a, img:not(.zoomImg)) { display: block; width: 100% !important; height: 100% !important; max-height: none !important; object-fit: contain !important; }
.single-product .woocommerce-product-gallery__image > div { width: 100% !important; height: 100% !important; }
