/* curren-storefront — checkout from the redesign. */
.woocommerce-checkout .csf-steps,
.woocommerce-checkout form.csf-co { font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif; color: #141414; }
body.woocommerce-checkout { background: #F6F4EF; }
body.woocommerce-checkout .site-content,
body.woocommerce-checkout #content { background: #F6F4EF; }
/* Martfury's "Checkout" title / breadcrumb bar: the step bar replaces it */
body.woocommerce-checkout .page-header,
body.woocommerce-checkout .mf-page-header,
body.woocommerce-checkout .entry-header { display: none !important; }

/* steps */
.csf-steps { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin: 28px 0 24px; font-size: 15px; color: #6B665C; }
.csf-steps__item { display: flex; align-items: center; gap: 8px; }
.csf-steps__dot { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid #B8B1A1; display: flex; align-items: center; justify-content: center; font-size: 13px; box-sizing: border-box; }
.csf-steps__item.is-done { color: #5E5A52; }
.csf-steps__item.is-done .csf-steps__dot { background: #111214; border-color: #111214; color: #fff; }
.csf-steps__item.is-current { color: #141414; font-weight: 700; }
.csf-steps__item.is-current .csf-steps__dot { background: #E6212C; border-color: #E6212C; color: #fff; font-weight: 700; }
.csf-steps__line { width: 60px; height: 2px; background: #D6D1C4; }
.csf-steps__line.is-done { background: #111214; }

/* layout */
form.csf-co { display: flex; gap: 40px; align-items: flex-start; margin: 0 0 64px; }
.csf-co__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.csf-co__side { flex: 0 0 440px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 24px; }
.csf-co__card, .csf-co__summary, .csf-co__trust { box-sizing: border-box; padding: 28px; border-radius: 14px; background: #fff; border: 1px solid #E4E0D6; }
.csf-co__summary { border: 1.5px solid #141414; display: flex; flex-direction: column; gap: 18px; }
.csf-co__h2 { font-family: inherit !important; font-size: 22px !important; font-weight: 700 !important; margin: 0 0 18px !important; color: #141414 !important; line-height: 1.3 !important; text-transform: none !important; letter-spacing: 0 !important; }
.csf-co__summary .csf-co__h2 { margin-bottom: 0 !important; }

/* fields */
.csf-co__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
form.csf-co .form-row { float: none !important; width: auto !important; margin: 0 0 16px !important; padding: 0 !important; }
form.csf-co .csf-co__grid .form-row { margin: 0 !important; }
form.csf-co .form-row label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 6px; color: #141414; line-height: 1.4; }
form.csf-co .form-row label .required { color: #9B2C2C; text-decoration: none; border: 0; }
form.csf-co .form-row label .optional { display: none; }
form.csf-co .form-row input.input-text,
form.csf-co .form-row textarea { width: 100% !important; box-sizing: border-box; min-height: 48px; border: 1px solid #D6D1C4 !important; border-radius: 8px !important; padding: 12px 14px !important; font-family: inherit; font-size: 16px; background: #fff !important; color: #141414; box-shadow: none !important; }
form.csf-co .form-row textarea { min-height: 96px; resize: vertical; }
form.csf-co .form-row input.input-text:focus,
form.csf-co .form-row textarea:focus { outline: 2px solid #E6212C; outline-offset: 1px; border-color: #E6212C !important; }
form.csf-co .form-row.woocommerce-invalid input.input-text,
form.csf-co .form-row.woocommerce-invalid textarea { border-color: #9B2C2C !important; }

/* radio cards (delivery area + payment) */
.csf-co__options { border: 0; margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.csf-co__options legend { font-size: 14px; font-weight: 600; margin: 0 0 8px; padding: 0; }
.csf-co__options li { margin: 0 !important; padding: 0 !important; list-style: none; border: 0 !important; background: none !important; }
.csf-co__option { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; padding: 16px !important; margin: 0 !important; border: 1px solid #D6D1C4; border-radius: 10px; font-size: 15px !important; font-weight: 400 !important; cursor: pointer; background: #fff; }
.csf-co__option:has(input:checked) { border: 2px solid #141414; padding: 15px !important; }
.csf-co__option-main { display: flex; align-items: center; gap: 10px; }
.csf-co__option-main > span { display: flex; flex-direction: column; line-height: 1.4; }
.csf-co__option small { font-size: 13px; color: #5E5A52; }
.csf-co__option input[type=radio] { width: 18px; height: 18px; margin: 0 !important; accent-color: #141414; flex: 0 0 auto; }
.csf-co__option img { max-height: 24px; width: auto; }
#payment.csf-pay { background: none !important; border-radius: 0; }
#payment.csf-pay .payment_box { margin: 8px 0 0; padding: 14px 16px; border-radius: 10px; background: #FAF8F3; font-size: 14px; }
#payment.csf-pay .payment_box::before { display: none; }

/* summary */
.csf-sum { border: 0 !important; margin: 0 !important; }
.csf-sum__items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.csf-sum__item { display: flex; align-items: center; gap: 14px; margin: 0; padding: 0; }
.csf-sum__thumb { flex: 0 0 80px; width: 80px; height: 80px; border-radius: 10px; overflow: hidden; background: #EFECE4; }
.csf-sum__thumb img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; margin: 0 !important; }
.csf-sum__info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.csf-sum__info strong { font-size: 16px; font-weight: 700; line-height: 1.3; }
.csf-sum__info small { font-size: 13px; color: #5E5A52; }
.csf-sum__price { font-size: 16px; white-space: nowrap; }
.csf-sum__rows { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid #EEEAE0; font-size: 15px; }
.csf-sum__row { display: flex; justify-content: space-between; gap: 12px; }
.csf-sum__row--discount { color: #1E6B45; }
.csf-sum__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding-top: 14px; border-top: 1px solid #EEEAE0; }
.csf-sum__total span { font-size: 17px; font-weight: 600; }
.csf-sum__total strong { font-size: 30px; font-weight: 700; }

.csf-co__submit { margin: 0 !important; padding: 0 !important; display: flex; flex-direction: column; gap: 10px; }
.csf-co__bar-total { display: none; }
.csf-co #place_order { width: 100%; min-height: 58px; border: 0; border-radius: 8px; background: #E6212C !important; color: #fff !important; font-family: inherit; font-weight: 700; font-size: 19px; line-height: 1.2; padding: 0 20px; float: none; cursor: pointer; }
.csf-co #place_order:hover { background: #C4161F !important; }
.csf-co__legal { margin: 0; font-size: 13px; color: #5E5A52; text-align: center; line-height: 1.6; }
.csf-co__legal a, .csf-co__trust a { color: #B3121B; }

.csf-co__trust { padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.csf-co__trust span { display: flex; align-items: center; gap: 10px; }
.csf-co__wa { min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; background: #1E6B45; color: #fff !important; text-decoration: none !important; font-weight: 600; font-size: 15px; }
.csf-co__wa:hover { background: #185A39; }

/* WooCommerce notices at the top of the form */
.woocommerce-checkout .woocommerce-NoticeGroup-checkout { flex-basis: 100%; }
.woocommerce-checkout .woocommerce-error { border-radius: 10px; font-family: 'Hind Siliguri', sans-serif; }

@media (max-width: 991px) {
	.csf-steps { display: none; }
	form.csf-co { flex-direction: column; gap: 16px; margin: 16px 0 110px; }
	.csf-co__side { display: contents; }
	.csf-co__summary { order: -1; padding: 16px; gap: 12px; }
	.csf-co__main { display: contents; }
	.csf-co__card { padding: 18px 16px; border-radius: 12px; }
	.csf-co__h2 { font-size: 19px !important; margin-bottom: 14px !important; }
	.csf-co__grid { grid-template-columns: 1fr; gap: 14px; }
	.csf-sum__thumb { flex-basis: 60px; width: 60px; height: 60px; border-radius: 8px; }
	.csf-sum__info strong { font-size: 14px; }
	.csf-sum__total strong { font-size: 22px; }
	.csf-co__trust, .csf-co__wa, .csf-co__legal { order: 5; }
	.csf-co__trust { padding: 14px 16px; flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; }
	.csf-co__trust svg { width: 18px; height: 18px; }
	/* confirm bar fixed to the bottom of the screen */
	.csf-co__submit { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; flex-direction: row; align-items: stretch; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)) !important; background: #fff; border-top: 1px solid #E4E0D6; box-shadow: 0 -2px 12px rgba(17, 18, 20, .06); }
	.csf-co__bar-total { display: flex; flex-direction: column; justify-content: center; flex: 0 0 auto; }
	.csf-co__bar-total span { font-size: 12px; color: #5E5A52; }
	.csf-co__bar-total strong { font-size: 20px; line-height: 1.2; }
	.csf-co #place_order { flex: 1 1 auto; min-height: 56px; font-size: 17px; }
	.csf-co__submit .woocommerce-terms-and-conditions-wrapper { display: none; }
	body.woocommerce-checkout .mf-navigation-mobile { display: none !important; }
}

/* payment card: Martfury's grey #payment box and its list styles */
body.woocommerce-checkout form.csf-co #payment.csf-pay { background: none !important; padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; }
body.woocommerce-checkout form.csf-co #payment.csf-pay ul.payment_methods { padding: 0 !important; margin: 0 !important; border: 0 !important; background: none !important; }
body.woocommerce-checkout form.csf-co #payment.csf-pay ul.payment_methods li { padding: 0 !important; margin: 0 !important; line-height: 1.4; }
body.woocommerce-checkout form.csf-co #payment.csf-pay ul.payment_methods li > label.csf-co__option { width: 100%; box-sizing: border-box; }
body.woocommerce-checkout form.csf-co #payment.csf-pay ul.payment_methods li input.input-radio { position: static !important; opacity: 1 !important; margin: 0 !important; width: 18px; height: 18px; vertical-align: middle; }
body.woocommerce-checkout form.csf-co #payment.csf-pay ul.payment_methods li label::before,
body.woocommerce-checkout form.csf-co #payment.csf-pay ul.payment_methods li label::after { display: none !important; }

@media (max-width: 991px) {
	form.csf-co { align-items: stretch; }
}
@media (max-width: 991px) {
	body.woocommerce-checkout form.csf-co .csf-co__submit.place-order { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)) !important; z-index: 2147483000; }
}

/* error / info box above the form (moved out of the two-column form by checkout.js) */
form.csf-co { flex-wrap: wrap; }
.csf-co__main { flex: 1 1 0%; }
form.csf-co > .woocommerce-NoticeGroup { flex: 0 0 100%; order: -2; } /* before the script moves it */
.woocommerce-NoticeGroup.csf-co__notice { margin: 0 0 20px; font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif; }
.woocommerce-checkout .csf-co__notice .woocommerce-error,
.woocommerce-checkout form.csf-co .woocommerce-error { list-style: none; margin: 0 !important; padding: 14px 18px 14px 48px !important; border: 1px solid #E8C4C4 !important; border-left: 4px solid #9B2C2C !important; border-radius: 10px; background: #FDF3F3 !important; color: #5A1F1F !important; font-size: 15px; line-height: 1.6; position: relative; }
.woocommerce-checkout .csf-co__notice .woocommerce-error::before { content: '!'; position: absolute; left: 16px; top: 14px; width: 20px; height: 20px; border-radius: 50%; background: #9B2C2C; color: #fff; font-size: 13px; font-weight: 700; line-height: 20px; text-align: center; font-family: inherit; }
.woocommerce-checkout .csf-co__notice .woocommerce-error li { margin: 0; padding: 0; }
.csf-field-error,
form.csf-co .form-row .checkout-inline-error-message { margin: 6px 0 0 !important; font-family: inherit; font-size: 13.5px !important; color: #9B2C2C !important; line-height: 1.5; }
form.csf-co .form-row.woocommerce-invalid label { color: #9B2C2C; }

@media (max-width: 991px) {
	.woocommerce-NoticeGroup.csf-co__notice { margin: 16px 0 0; }
	form.csf-co > .woocommerce-NoticeGroup { order: -3; }
}

/* card checkout: optional birthday as day / month / year menus */
form.csf-co #billing_csf_dob_field label .optional { display: inline; font-weight: 400; color: #6B6B6B; }
form.csf-co #billing_csf_dob_field .description { display: none !important; }
.csf-dob { display: grid; grid-template-columns: 1fr 1.5fr 1.2fr; gap: 10px; }
.csf-dob__sel { width: 100%; min-height: 48px; padding: 0 10px; border: 1px solid #D6D1C4; border-radius: 8px; background: #fff; color: #141414; font-family: inherit; font-size: 16px; box-sizing: border-box; }
.csf-dob__sel:focus { outline: 2px solid #E6212C; outline-offset: 1px; border-color: #E6212C; }
.csf-dob.is-bad .csf-dob__sel { border-color: #9B2C2C; }
.csf-dob__note { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: #4A4A4A; }

/* gift paper code box in the summary */
.csf-gift-box { margin: 0 0 14px; padding: 12px 14px; border: 1px dashed #D6D1C4; border-radius: 10px; background: #FAF8F3; }
.csf-gift-box label { display: block; margin: 0 0 8px; font-size: 14px; font-weight: 600; color: #141414; }
.csf-gift-box__row { display: flex; gap: 8px; }
.csf-gift-box__row input { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid #D6D1C4; border-radius: 8px; font-size: 16px; font-family: inherit; text-transform: uppercase; background: #fff; }
.csf-gift-box__row input:focus { outline: 2px solid #E6212C; outline-offset: 1px; border-color: #E6212C; }
.csf-gift-box__btn { flex: 0 0 auto; min-height: 44px; padding: 0 18px; border: 0; border-radius: 8px; background: #141414; color: #fff; font-size: 15px; font-weight: 600; font-family: inherit; cursor: pointer; }
.csf-gift-box__btn:disabled { opacity: .6; cursor: default; }
.csf-gift-box__msg { margin: 8px 0 0; font-size: 14px; line-height: 1.5; }
.csf-gift-box__msg.is-ok { color: #1E6B45; font-weight: 600; }
.csf-gift-box__msg.is-bad { color: #9B2C2C; }
.csf-gift-remove { margin-left: 6px; font-size: 13px; color: #9B2C2C; text-decoration: underline; }
