/*
Theme Name: Flatsome BD Direct Checkout
Description: Compact Bangladesh direct checkout for Flatsome.
Author: Custom
Template: flatsome
Version: 8.0.0
*/

/* Product checkout */
.bd-direct-checkout{margin:10px 0 5px;padding:12px;border:1px solid #e4e7eb;border-radius:9px;background:#fff;clear:both;box-shadow:0 1px 3px rgba(0,0,0,.035)}
.bd-direct-checkout h3{margin:0 0 3px;font-size:16px;line-height:1.3}
.bd-direct-checkout-subtitle{margin:0 0 9px;font-size:11px;color:#737b86;line-height:1.4}
.bd-direct-checkout-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px 9px}
.bd-field-full{grid-column:1/-1}
.bd-field label{display:block;font-size:11px;font-weight:600;line-height:1.3;margin:0 0 3px}
.bd-field .required{color:#b42318}
.bd-field input,.bd-field textarea{width:100%;min-height:39px;border:1px solid #d8dce1;border-radius:6px;padding:7px 9px;box-sizing:border-box;background:#fff;font-size:12px;margin:0;box-shadow:none}
.bd-field input:focus,.bd-field textarea:focus{border-color:#8b1a1a;box-shadow:0 0 0 2px rgba(139,26,26,.08);outline:none}
.bd-field input::placeholder,.bd-field textarea::placeholder{color:#a0a6ad}
.bd-field textarea{min-height:55px;resize:vertical}
.bd-direct-checkout-summary{margin-top:8px;padding-top:7px;border-top:1px solid #eee}
.bd-direct-checkout-summary-row{display:flex;justify-content:space-between;gap:12px;padding:2px 0;font-size:12px;line-height:1.45}
.bd-direct-checkout-total{font-size:15px;font-weight:700;padding-top:6px;margin-top:4px;border-top:1px dashed #ddd}
.bd-direct-order-btn{position:relative;overflow:hidden;width:100%!important;margin:9px 0 0!important;min-height:46px!important;font-size:14px!important;font-weight:700!important;border-radius:7px!important;transition:transform .18s ease,box-shadow .18s ease;box-shadow:0 5px 14px rgba(127,0,0,.16);animation:fbdcButtonPulse 2.4s ease-in-out infinite}.bd-direct-order-btn:before{content:"";position:absolute;top:0;left:-90%;width:55%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.22),transparent);transform:skewX(-20deg);animation:fbdcButtonShine 3.2s ease-in-out infinite}.bd-direct-order-btn:hover{transform:translateY(-1px);box-shadow:0 7px 18px rgba(127,0,0,.22)}.bd-direct-order-btn.fbdc-processing{animation:none;opacity:.92}.fbdc-spinner{width:15px;height:15px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;display:inline-block;vertical-align:-3px;margin-right:7px;animation:fbdcSpin .7s linear infinite}@keyframes fbdcButtonPulse{0%,100%{box-shadow:0 5px 14px rgba(127,0,0,.14)}50%{box-shadow:0 7px 20px rgba(127,0,0,.25)}}@keyframes fbdcButtonShine{0%,45%{left:-90%}65%,100%{left:140%}}@keyframes fbdcSpin{to{transform:rotate(360deg)}}
.bd-direct-error{display:none;align-items:center;gap:7px;background:#fff5f5;color:#a61b1b;border:1px solid #f2b8b8;padding:8px 9px;border-radius:7px;margin-bottom:8px;font-size:11px;line-height:1.45;font-weight:600}.fbdc-error-icon{display:inline-flex;align-items:center;justify-content:center;width:17px;height:17px;border-radius:50%;background:#b42318;color:#fff;font-size:11px;font-weight:800;flex:0 0 17px}.bd-field.fbdc-invalid input,.bd-field.fbdc-invalid textarea{border-color:#c62828;background:#fffafa;box-shadow:0 0 0 2px rgba(198,40,40,.07)}

/* Contact buttons */
.fbdc-contact{margin:10px 0 0;padding:10px;border-top:1px solid #eee;text-align:center}
.fbdc-contact-title{margin:0 0 7px;font-size:10px;color:#8a9098;font-weight:600}
.fbdc-contact-buttons{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.fbdc-contact-button{display:flex!important;align-items:center;justify-content:center;gap:5px;min-height:36px!important;padding:6px 7px!important;border-radius:6px!important;color:#fff!important;text-decoration:none!important;font-size:11px!important;font-weight:700!important;line-height:1!important;margin:0!important;border:0!important}
.fbdc-contact-button svg{width:16px;height:16px;display:block;flex:0 0 16px}
.fbdc-contact-whatsapp{background:#25D366!important}
.fbdc-contact-messenger{background:#168AFF!important}
.fbdc-contact-call{background:#7f0000!important}
.fbdc-contact-button:hover{opacity:.92;color:#fff!important}

/* Thank-you */
.fbdc-thankyou-wrap{max-width:760px;margin:0 auto;padding:12px 8px 30px}
.fbdc-thankyou-hero{padding:22px 18px 18px;text-align:center;border:1px solid #e5e7eb;border-radius:13px;background:#fff;box-shadow:0 4px 18px rgba(15,23,42,.05);margin-bottom:10px}
.fbdc-thankyou-icon{width:58px;height:58px;margin:0 auto 10px;border-radius:50%;background:#eafaf0;border:5px solid #d6f5e2;display:flex;align-items:center;justify-content:center;color:#159447}
.fbdc-thankyou-icon svg{width:31px;height:31px;display:block}
.fbdc-thankyou-hero h1{font-size:23px;line-height:1.25;margin:0 0 6px}
.fbdc-thankyou-lead{font-size:13px;line-height:1.55;color:#4b5563;margin:0 auto;max-width:600px}
.fbdc-thankyou-message{padding:11px 13px;border-radius:9px;background:#f0fdf4;border:1px solid #ccefd8;text-align:center;font-size:12px;line-height:1.6;color:#166534;margin-bottom:10px}
.fbdc-thankyou-message-title{display:flex;align-items:center;justify-content:center;gap:5px;font-weight:700;margin-bottom:2px}
.fbdc-thankyou-message-title svg{width:15px;height:15px}
.fbdc-thankyou-highlight{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:10px 0}
.fbdc-thankyou-step{padding:10px 8px;border:1px solid #e6e8eb;border-radius:8px;background:#fff;text-align:center}
.fbdc-thankyou-step-icon{width:24px;height:24px;margin:0 auto 4px;border-radius:50%;background:#f0fdf4;color:#15803d;display:flex;align-items:center;justify-content:center}
.fbdc-thankyou-step-icon svg{width:14px;height:14px}
.fbdc-thankyou-step strong{display:block;font-size:11px;margin-bottom:2px}
.fbdc-thankyou-step span{display:block;font-size:10px;color:#707782;line-height:1.35}
.fbdc-thankyou-details{margin-top:9px}
.fbdc-thankyou-details-box{padding:11px 12px;border:1px solid #e5e7eb;border-radius:9px;background:#fff}
.fbdc-thankyou-details h3{margin:0 0 7px;font-size:14px}
.fbdc-thankyou-detail-row{display:flex;justify-content:space-between;gap:15px;padding:4px 0;border-bottom:1px solid #f0f1f2;font-size:11px}
.fbdc-thankyou-detail-row:last-child{border-bottom:0}
.fbdc-thankyou-back{margin-top:10px;text-align:center}
.fbdc-thankyou-back a{display:inline-block;margin:0!important}
/* Hide WooCommerce's generic thank-you content for orders created by this checkout. */
.fbdc-custom-thankyou-active .woocommerce-thankyou-order-received,.fbdc-custom-thankyou-active .woocommerce-order-overview,.fbdc-custom-thankyou-active .woocommerce-order-details,.fbdc-custom-thankyou-active .woocommerce-customer-details{display:none!important}

@media(max-width:600px){
 .bd-direct-checkout-grid{grid-template-columns:1fr}
 .bd-field-full{grid-column:auto}
 .fbdc-contact-buttons{gap:5px}
 .fbdc-contact-button{font-size:10px!important;padding:6px 4px!important}
 .fbdc-thankyou-wrap{padding:8px 5px 22px}
 .fbdc-thankyou-hero{padding:19px 12px 16px}
 .fbdc-thankyou-hero h1{font-size:20px}
 .fbdc-thankyou-highlight{grid-template-columns:1fr;gap:5px}
 .fbdc-thankyou-step{display:grid;grid-template-columns:28px 1fr;text-align:left;align-items:center;column-gap:7px;padding:7px}
 .fbdc-thankyou-step-icon{grid-row:span 2;margin:0}
}
