/* CommerceFlow WooCommerce single product design */
.cf-product-video{width:100%;max-width:650px;margin:24px auto 8px;padding:14px;background:#f7f8f5;border:1px solid #e5eae4;border-radius:14px;clear:both;box-sizing:border-box}
.cf-product-video__title{font-weight:700;margin:0 0 10px;color:#233b2b}
.cf-product-video__frame{position:relative;aspect-ratio:16/9;overflow:hidden;border-radius:10px;background:#101810}
.cf-product-video__frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.cf-product-video--tall{max-width:380px}.cf-product-video--tall .cf-product-video__frame{aspect-ratio:9/16}
.single-product .summary form.cart{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.single-product .summary form.cart .quantity{margin:0!important}
.single-product .summary form.cart .single_add_to_cart_button{box-sizing:border-box!important;flex:0 0 var(--cf-cart-width,145px)!important;width:var(--cf-cart-width,145px)!important;min-width:0!important;min-height:var(--cf-cart-height,40px)!important;height:var(--cf-cart-height,40px)!important;padding:6px 10px!important;border-radius:8px!important;background:var(--cf-cart-bg,#fff)!important;color:var(--cf-cart-text,#205a36)!important;border:1px solid var(--cf-cart-text,#205a36)!important;font-size:var(--cf-cart-font-size,13px)!important;font-weight:650!important;line-height:1.2!important;white-space:normal!important;transition:filter .18s ease,transform .18s ease}
.single-product .summary form.cart .single_add_to_cart_button:hover{filter:brightness(.94);color:var(--cf-cart-text,#205a36)!important;transform:translateY(-1px)}
.single-product .cf-order-now{min-height:var(--cf-order-height,54px);min-width:var(--cf-order-width,185px);padding:13px 28px!important;border-radius:10px!important;background:var(--cf-order-bg,#176b3a)!important;color:var(--cf-order-text,#fff)!important;border:0!important;font-size:var(--cf-order-font-size,17px)!important;font-weight:800!important;box-shadow:0 5px 12px rgba(23,107,58,.24);transition:transform .18s ease,box-shadow .18s ease,background .18s ease}
.single-product .cf-order-now:hover{filter:brightness(.92);color:var(--cf-order-text,#fff)!important;transform:translateY(-1px);box-shadow:0 7px 16px rgba(23,107,58,.3)}
.single-product .cf-order-now:focus-visible,.single-product .single_add_to_cart_button:focus-visible{outline:3px solid rgba(33,131,74,.32);outline-offset:2px}
.cf-product-checkout{clear:both;margin:42px auto 54px;color:#243229}
.cf-product-checkout,.cf-product-checkout *{box-sizing:border-box}
.cf-product-checkout{width:100%;min-width:0}
.cf-product-checkout__heading{padding:26px 30px;background:linear-gradient(120deg,#16492e,#286344);color:#fff;border-radius:18px 18px 0 0}
.cf-product-checkout__heading>span{display:inline-block;font-size:13px;font-weight:700;color:#e5d8a7;text-transform:uppercase;letter-spacing:.04em}
.cf-product-checkout__heading h2{font-size: clamp(23px, 3vw, 32px); line-height: 0; color: #fff; margin: 5px 0; padding: 5px 0px; text-align: center;}
.cf-product-checkout__heading p{margin:0;color:#e5eee7}
.cf-product-checkout__body{padding:26px;background:#fff;border:1px solid #e1e8e2;border-top:0;border-radius:0 0 18px 18px;box-shadow:0 12px 34px #153b2412}
.cf-custom-checkout,.cf-custom-checkout__grid,.cf-custom-checkout__customer,.cf-custom-checkout__summary{width:100%;min-width:0;max-width:100%}
.cf-custom-checkout__grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);gap:28px;align-items:start}
.cf-custom-checkout h3{font-size:20px;color:#21472f;margin:4px 0 16px}
.cf-custom-checkout .woocommerce-billing-fields__field-wrapper,.cf-custom-checkout .woocommerce-additional-fields__field-wrapper{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:14px;align-items:start}
.cf-custom-checkout__field{grid-column:span 12!important;float:none!important;clear:none!important;width:auto!important;max-width:100%;min-width:0;margin:0 0 14px!important}
.cf-custom-checkout .cf-checkout-width-25{grid-column:span 3!important}.cf-custom-checkout .cf-checkout-width-33{grid-column:span 4!important}.cf-custom-checkout .cf-checkout-width-50{grid-column:span 6!important}.cf-custom-checkout .cf-checkout-width-66{grid-column:span 8!important}.cf-custom-checkout .cf-checkout-width-75{grid-column:span 9!important}.cf-custom-checkout .cf-checkout-width-100{grid-column:span 12!important}
.cf-custom-checkout__summary{padding:20px;background:#f8faf7;border:1px solid #e4ebe4;border-radius:14px}
.cf-custom-checkout__summary h3{margin-top:0; padding-left: 14px;}
.cf-custom-checkout .form-row{margin:0 0 14px}
.cf-custom-checkout .input-text,.cf-custom-checkout select,.cf-custom-checkout textarea{box-sizing:border-box;width:100%;max-width:100%;min-height:46px;padding:11px 13px;border:1px solid #d8e1da;border-radius:9px;background:#fff;box-shadow:none}
.cf-custom-checkout .input-text:focus,.cf-custom-checkout select:focus,.cf-custom-checkout textarea:focus{outline:2px solid #b8d2bd;border-color:#34724a}
.cf-custom-checkout table.shop_table{width:100%;max-width:100%;table-layout:fixed;border-collapse:collapse;border:1px solid #e4e9e4;border-radius:10px;overflow:hidden;background:#fff}
.cf-custom-checkout table.shop_table th,.cf-custom-checkout table.shop_table td{padding:11px;border-color:#e8ece8;overflow-wrap:anywhere;word-break:normal;vertical-align:top}
.cf-custom-checkout table.shop_table th:first-child,.cf-custom-checkout table.shop_table td:first-child{width:62%}
.cf-custom-checkout table.shop_table th:last-child,.cf-custom-checkout table.shop_table td:last-child{width:38%;text-align:right}
.cf-custom-checkout #payment{background:#eef3ee;border-radius:12px;padding:12px}
.cf-custom-checkout #payment,.cf-custom-checkout #payment ul.payment_methods,.cf-custom-checkout .payment_box{max-width:100%;min-width:0;overflow-wrap:anywhere}
.cf-custom-checkout .select2-container{width:100%!important;max-width:100%}
.cf-custom-checkout .woocommerce-privacy-policy-text,.cf-custom-checkout .woocommerce-terms-and-conditions-wrapper{overflow-wrap:anywhere}
/* "অর্ডার নিশ্চিত করুন": same look as the product's red "অর্ডার করুন" button. */
.cf-custom-checkout #place_order{display:inline-flex!important;justify-content:center;align-items:center;gap:10px;width:100%!important;height:56px!important;min-height:56px!important;padding:0 20px!important;border:0!important;border-radius:12px!important;background:linear-gradient(180deg,#e53935,#c62828)!important;color:#fff!important;font-weight:800!important;font-size:18px!important;letter-spacing:.2px;text-decoration:none;cursor:pointer;box-shadow:0 8px 20px rgba(198,40,40,.32);animation:cfbPulse 1.8s ease-in-out infinite}
.cf-custom-checkout #place_order::after{content:'→';font-size:20px;line-height:1}
.cf-custom-checkout #place_order:hover{animation-play-state:paused;filter:brightness(.95);box-shadow:0 12px 24px rgba(198,40,40,.4)}
@media (prefers-reduced-motion:reduce){.cf-custom-checkout #place_order{animation:none}}
.cf-product-checkout__empty{text-align:center;color:#58665c}
@media(max-width:760px){.cf-product-checkout{margin:25px auto 36px;padding:0 14px}.cf-product-checkout__heading,.cf-product-checkout__body{padding:19px}.cf-custom-checkout__grid{grid-template-columns:minmax(0,1fr);gap:18px}.cf-custom-checkout__summary{padding:16px}}
@media(max-width:520px){.cf-product-checkout{margin:20px auto 30px;padding:0 10px}.cf-product-checkout__heading{padding:18px 16px;border-radius:14px 14px 0 0}.cf-product-checkout__heading h2{font-size:23px;line-height:1.35}.cf-product-checkout__body{padding:14px;border-radius:0 0 14px 14px}.cf-custom-checkout__grid{gap:14px}.cf-custom-checkout h3{font-size:18px;margin-bottom:12px}.cf-custom-checkout__summary{padding:13px;border-radius:11px}.cf-custom-checkout table.shop_table th,.cf-custom-checkout table.shop_table td{padding:8px 6px;font-size:13px}.cf-custom-checkout table.shop_table th:first-child,.cf-custom-checkout table.shop_table td:first-child{width:58%}.cf-custom-checkout table.shop_table th:last-child,.cf-custom-checkout table.shop_table td:last-child{width:42%}.cf-custom-checkout .form-row{margin-bottom:12px}.cf-custom-checkout .input-text,.cf-custom-checkout select,.cf-custom-checkout textarea{min-height:44px;padding:10px}.cf-custom-checkout #payment{padding:10px}.cf-custom-checkout #place_order{font-size:16px;min-height:50px}.cf-custom-checkout .cf-checkout-width-25,.cf-custom-checkout .cf-checkout-width-33{grid-column:span 6!important}.cf-custom-checkout .cf-checkout-width-66,.cf-custom-checkout .cf-checkout-width-75{grid-column:span 12!important}}







form #order_review:not(.elementor-widget-woocommerce-checkout-page #order_review) {
    padding: 0;
    border-width: 0;
    border-style: none;
    border-color: snow;
}

/* Size buttons: each variation option as a card-button; the select stays hidden underneath. */
.cfv-wrap{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;max-width:520px;margin:4px 0 6px;border-radius:14px}
.cfv-chip{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;padding:12px 8px;border:1.5px solid #d6e4da;border-radius:12px;background:#fff;cursor:pointer;transition:all .15s ease;font:inherit;color:#1f2937;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.cfv-chip:hover{border-color:#205a36;transform:translateY(-1px);box-shadow:0 4px 12px rgba(32,90,54,.12)}
.cfv-chip b{font-size:17px;font-weight:700;line-height:1.2}
.cfv-chip span{font-size:19px;color:#c62828;margin-top:6px;font-weight:800;line-height:1.2}
.cfv-chip.on{border-color:#205a36;background:#205a36;color:#fff;box-shadow:0 6px 16px rgba(32,90,54,.25)}
.cfv-chip.on span{color:#fff}
.cfv-wrap.cfv-ask{animation:cfvAsk .9s ease 2}
@keyframes cfvAsk{0%,100%{box-shadow:0 0 0 0 rgba(198,40,40,0)}50%{box-shadow:0 0 0 4px rgba(198,40,40,.35)}}
@media(max-width:600px){.cfv-wrap{grid-template-columns:repeat(2,minmax(0,1fr));max-width:none}.cfv-chip{padding:14px 8px}.cfv-chip b{font-size:18px}.cfv-chip span{font-size:21px}}
.cfv-chip.on::after{content:'✓';position:absolute;top:-8px;right:-8px;width:20px;height:20px;border-radius:50%;background:#16a34a;color:#fff;font-size:12px;display:flex;align-items:center;justify-content:center;border:2px solid #fff}
.cfv-chip.out,.cfv-chip:disabled{opacity:.45;cursor:not-allowed;text-decoration:line-through;transform:none;box-shadow:none}
table.variations select.cfv-hidden{display:none!important}
table.variations th.label label{font-size:15px;font-weight:700}

/* Cart and order buttons: quantity stepper + outline cart button, full-width red order button below. */
.single-product .summary :is(form.cart .cfb-box,form.cart.cfb-box){display:grid!important;grid-template-columns:auto 1fr;gap:12px;align-items:stretch;max-width:540px;padding:16px!important;border:1px solid #e1e8e2!important;border-radius:16px!important;background:rgba(255,255,255,.4);box-sizing:border-box;margin-top:6px}
/* Themes add clearfix ::before/::after to form.cart; in a grid they take cells and push the buttons around. */
.single-product .summary :is(form.cart .cfb-box,form.cart.cfb-box)::before,.single-product .summary :is(form.cart .cfb-box,form.cart.cfb-box)::after{content:none!important;display:none!important}
.single-product .summary :is(form.cart .cfb-box,form.cart.cfb-box) .quantity{display:flex!important;align-items:center;border:1.5px solid #d6e4da;border-radius:12px;background:#fff;height:50px;overflow:hidden;margin:0!important}
.single-product .summary :is(form.cart .cfb-box,form.cart.cfb-box) .quantity input.qty{width:42px!important;height:100%!important;border:0!important;text-align:center;font-size:16px;font-weight:700;background:transparent!important;-moz-appearance:textfield;padding:0!important;box-shadow:none!important;margin:0!important}
.cfb-box .quantity input.qty::-webkit-inner-spin-button,.cfb-box .quantity input.qty::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.cfb-step{width:38px;height:100%;border:0;background:#f3f7f4;color:#205a36;font-size:20px;font-weight:700;cursor:pointer;line-height:1;padding:0}
.cfb-step:hover{background:#e3efe7}
.single-product .summary :is(form.cart .cfb-box,form.cart.cfb-box) .single_add_to_cart_button{width:auto!important;flex:none!important;height:50px!important;min-height:50px!important;padding:6px 14px!important;border-radius:12px!important;border:1.5px solid #205a36!important;background:#fff!important;color:#205a36!important;font-size:15.5px!important;font-weight:700!important;display:flex!important;align-items:center;justify-content:center;gap:8px;margin:0!important;white-space:nowrap!important}
.single-product .summary :is(form.cart .cfb-box,form.cart.cfb-box) .single_add_to_cart_button:hover{background:#f0f7f2!important;transform:none}
.single-product .summary :is(form.cart .cfb-box,form.cart.cfb-box) .cf-order-now{grid-column:1 / -1;width:100%!important;max-width:none!important;min-width:0!important;height:56px!important;min-height:56px!important;padding:0 20px!important;border-radius:12px!important;background:linear-gradient(180deg,#e53935,#c62828)!important;color:#fff!important;font-size:18px!important;font-weight:800!important;display:flex!important;align-items:center;justify-content:center;gap:10px;margin:0!important;box-shadow:0 8px 20px rgba(198,40,40,.32);border:0!important;letter-spacing:.2px;animation:cfbPulse 1.8s ease-in-out infinite}
.single-product .summary :is(form.cart .cfb-box,form.cart.cfb-box) .cf-order-now:hover{animation-play-state:paused;filter:brightness(.95);box-shadow:0 12px 24px rgba(198,40,40,.4)}
@keyframes cfbPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.04)}}
@media (prefers-reduced-motion:reduce){.single-product .summary :is(form.cart .cfb-box,form.cart.cfb-box) .cf-order-now{animation:none}}

/* Details table of a product or size (built in Inventory → Edit). */
.cf-spec{width:100%;max-width:520px;border-collapse:separate;border-spacing:0;margin:10px 0 14px;border:1px solid #dbe8df;border-radius:14px;overflow:hidden;font-size:15px;background:#fff}
/* Themes often zero table-cell padding and borders: these rules win over them. */
table.cf-spec th,table.cf-spec td{padding:10px 14px!important;text-align:center;border:0!important;border-right:1px solid #dfe9e2!important;border-bottom:1px solid #dfe9e2!important}
table.cf-spec th:last-child,table.cf-spec td:last-child{border-right:0!important}
table.cf-spec thead th{background:#205a36;color:#fff;font-weight:700;border-right-color:rgba(255,255,255,.25)!important}
table.cf-spec tbody th{background:#f6faf7;color:#374151;font-weight:700;text-align:left;width:28%}
table.cf-spec td{color:#111827;font-weight:600}
table.cf-spec .cf-spec__full td{text-align:left}
table.cf-spec tr:last-child th,table.cf-spec tr:last-child td{border-bottom:0!important}
@media(max-width:600px){.cf-spec{font-size:14px;max-width:none}table.cf-spec th,table.cf-spec td{padding:9px 10px!important}}

/* The chosen size's own photos, under the main image. */
.cfg-strip{margin-top:12px;clear:both}
.cfg-strip__title{margin:0 0 8px;font-size:15px;font-weight:700;color:#205a36}
.cfg-thumbs{display:flex;gap:10px;flex-wrap:wrap}
.cfg-thumbs button{padding:0!important;border:2px solid #dbe8df!important;border-radius:10px!important;overflow:hidden;width:76px;height:76px;background:#fff!important;cursor:pointer;line-height:0}
.cfg-thumbs button.on{border-color:#205a36!important;box-shadow:0 0 0 2px rgba(32,90,54,.25)}
.cfg-thumbs img{width:100%;height:100%;object-fit:cover;display:block;margin:0!important}
@media(max-width:600px){.cfg-thumbs button{width:64px;height:64px}}

/* The cart's checkout page uses the same layout; undo the theme's own checkout-page column sizes. */
.cf-product-checkout--page{margin-top:10px}
.cf-product-checkout--page #order_review,.cf-product-checkout--page #customer_details{width:100%!important;max-width:100%!important;float:none!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important}
.cf-product-checkout--page #order_review table.shop_table{width:100%!important}
.cf-product-checkout--page .woocommerce-billing-fields,.cf-product-checkout--page .woocommerce-additional-fields{width:100%!important;float:none!important}

/* Order-received (thank-you) page — same look as the product-page checkout. */
.cfty{max-width:760px;margin:10px auto 40px;font-size:15.5px;color:#243229}
.cfty *{box-sizing:border-box}
.cfty-head{background:linear-gradient(120deg,#16492e,#286344);color:#fff;border-radius:18px 18px 0 0;padding:28px 24px;text-align:center}
.cfty-check{width:64px;height:64px;border-radius:50%;background:#fff;color:#16a34a;font-size:36px;line-height:64px;margin:0 auto 12px;font-weight:800}
.cfty-head h2{color:#fff;margin:0 0 6px;font-size:26px;line-height:1.35}
.cfty-head p{margin:0;color:#e5eee7}
.cfty-body{background:#fff;border:1px solid #e1e8e2;border-top:0;border-radius:0 0 18px 18px;padding:22px}
.cfty-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:18px}
.cfty-stat{background:#f6faf7;border:1px solid #dbe8df;border-radius:12px;padding:12px;text-align:center}
.cfty-stat span{display:block;font-size:13px;color:#6b7280}
.cfty-stat b{font-size:18px;color:#205a36}
.cfty-stat--total b{color:#c62828}
.cfty h3{font-size:17px;color:#205a36;margin:18px 0 8px}
table.cfty-table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid #dfe9e2;border-radius:12px;overflow:hidden;margin:0}
table.cfty-table td{padding:10px 14px!important;border:0!important;border-bottom:1px solid #e6efe9!important;background:#fff}
table.cfty-table td:last-child{text-align:right;white-space:nowrap}
table.cfty-table tr:last-child td{border-bottom:0!important}
table.cfty-table tr.cfty-total td{font-weight:800;background:#f6faf7}
.cfty-addr{background:#f6faf7;border:1px solid #dbe8df;border-radius:12px;padding:12px 14px;line-height:1.7}
.cfty-note{margin-top:16px;background:#fff8e6;border:1px solid #f1dfae;border-radius:12px;padding:12px 14px}
.cfty-media{margin-top:16px;display:grid;gap:12px}
.cfty-media iframe{display:block;width:100%;max-width:380px;aspect-ratio:9/16;border:0;border-radius:12px;background:#000;margin:0 auto}
.cfty-media img{display:block;max-width:100%;height:auto;border-radius:12px;margin:0 auto}
.cfty-btns{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}
.cfty-btn{display:flex;align-items:center;justify-content:center;height:50px;border-radius:12px;font-weight:700;text-decoration:none!important;cursor:pointer;font:inherit;font-weight:700}
.cfty-btn--download{grid-column:1 / -1;border:0;background:#205a36;color:#fff!important;box-shadow:0 6px 16px rgba(32,90,54,.25)}
.cfty-btn--primary{background:linear-gradient(180deg,#e53935,#c62828);color:#fff!important;box-shadow:0 8px 20px rgba(198,40,40,.3)}
.cfty-btn--secondary{border:1.5px solid #205a36;color:#205a36!important;background:#fff}
.cfty-gateway{margin-top:14px;font-size:14px;color:#4b5563}
@media(max-width:600px){.cfty-stats{grid-template-columns:1fr}.cfty-btns{grid-template-columns:1fr}.cfty-head h2{font-size:22px}.cfty-body{padding:16px}}