/* Magic Landing Page Maker — order form, floating buttons, thank-you page.
   Scoped and slightly defensive, because it runs on top of imported page CSS. */
.mlpm-order-section{scroll-margin-top:70px;padding:24px 12px}
.mlpm-form-card{--b:var(--mlpm-brand,#e11d48);max-width:620px;margin:0 auto;background:#fff;color:#1f2937;border:2px solid color-mix(in srgb,var(--b) 35%,#fff);border-radius:20px;padding:24px 20px;box-shadow:0 20px 50px -25px rgba(0,0,0,.35);font-family:"Hind Siliguri","Noto Sans Bengali",system-ui,sans-serif;font-size:16px;line-height:1.55;text-align:left}
.mlpm-form-card *{box-sizing:border-box}
.mlpm-form-card .mlpm-form-title{margin:0 0 18px;font-size:21px;font-weight:700;text-align:center;color:#111827;line-height:1.4}
.mlpm-form-card .mlpm-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.mlpm-form-card .mlpm-product-row{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid #e5e7eb;border-radius:14px;background:#f9fafb;margin-bottom:16px}
.mlpm-form-card .mlpm-product-row img{width:58px;height:58px;object-fit:cover;border-radius:10px;flex:0 0 auto;margin:0}
.mlpm-form-card .mlpm-product-info{flex:1;min-width:0;display:flex;flex-direction:column}
.mlpm-form-card .mlpm-product-info strong{font-size:16px;line-height:1.35;color:#111827}
.mlpm-form-card .mlpm-product-info span{color:var(--b);font-weight:700}
.mlpm-form-card .mlpm-qty{display:flex;align-items:center;border:1px solid #d1d5db;border-radius:10px;overflow:hidden;background:#fff;flex:0 0 auto}
.mlpm-form-card .mlpm-qty button{all:unset;cursor:pointer;width:34px;height:38px;text-align:center;font-size:20px;font-weight:700;color:#374151;line-height:38px}
.mlpm-form-card .mlpm-qty button:hover{background:#f3f4f6}
.mlpm-form-card .mlpm-qty input{all:unset;width:34px;height:38px;text-align:center;font-weight:700;color:#111827;-moz-appearance:textfield}
.mlpm-form-card .mlpm-qty input::-webkit-outer-spin-button,.mlpm-form-card .mlpm-qty input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.mlpm-form-card .mlpm-field{display:block;margin:0 0 14px}
.mlpm-form-card .mlpm-field>span{display:block;font-weight:600;font-size:15px;margin-bottom:6px;color:#374151}
.mlpm-form-card input[type=text],.mlpm-form-card input[type=tel],.mlpm-form-card input[type=email],.mlpm-form-card textarea,.mlpm-form-card select{display:block;width:100%;max-width:none;margin:0;padding:12px 14px;border:1.5px solid #d1d5db;border-radius:12px;background:#fff;color:#111827;font:inherit;font-size:16px;line-height:1.4;box-shadow:none;height:auto;min-height:48px;outline:none;transition:border-color .15s,box-shadow .15s}
.mlpm-form-card textarea{resize:vertical;min-height:70px}
.mlpm-form-card input:focus,.mlpm-form-card textarea:focus,.mlpm-form-card select:focus{border-color:var(--b);box-shadow:0 0 0 3px color-mix(in srgb,var(--b) 18%,transparent)}
.mlpm-form-card .mlpm-invalid{border-color:#dc2626!important}
.mlpm-form-card .mlpm-area{border:0;padding:0;margin:0 0 14px;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.mlpm-form-card .mlpm-area legend{font-weight:600;font-size:15px;margin-bottom:6px;color:#374151;padding:0;grid-column:1/-1}
.mlpm-form-card .mlpm-area label{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:11px 12px;border:1.5px solid #d1d5db;border-radius:12px;cursor:pointer;margin:0;font-weight:500;background:#fff}
.mlpm-form-card .mlpm-area label:has(input:checked){border-color:var(--b);background:color-mix(in srgb,var(--b) 7%,#fff)}
.mlpm-form-card .mlpm-area input{accent-color:var(--b);margin:0;width:18px;height:18px}
.mlpm-form-card .mlpm-area em{font-style:normal;color:#6b7280;font-size:14px;margin-left:auto}
.mlpm-form-card .mlpm-summary{background:#f9fafb;border:1px dashed #d1d5db;border-radius:14px;padding:12px 16px;margin:6px 0 16px}
.mlpm-form-card .mlpm-summary div{display:flex;justify-content:space-between;padding:4px 0;color:#4b5563}
.mlpm-form-card .mlpm-summary b{color:#111827}
.mlpm-form-card .mlpm-summary .mlpm-total{border-top:1px solid #e5e7eb;margin-top:6px;padding-top:9px;font-size:18px}
.mlpm-form-card .mlpm-summary .mlpm-total b{color:var(--b)}
.mlpm-form-card .mlpm-error{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca;border-radius:12px;padding:10px 14px;margin-bottom:12px;font-size:15px}
.mlpm-form-card .mlpm-submit{all:unset;box-sizing:border-box;display:block;width:100%;text-align:center;cursor:pointer;padding:16px 18px;border-radius:14px;background:var(--b);color:#fff;font-size:19px;font-weight:700;line-height:1.3;box-shadow:0 12px 24px -12px var(--b);transition:filter .15s,transform .15s}
.mlpm-form-card .mlpm-submit:hover{filter:brightness(.93);transform:translateY(-1px)}
.mlpm-form-card .mlpm-submit[disabled]{opacity:.7;cursor:wait;transform:none}
.mlpm-form-card .mlpm-trust-line{text-align:center;color:#6b7280;font-size:14px;margin:12px 0 0}
@media (max-width:480px){.mlpm-form-card{padding:20px 14px}.mlpm-form-card .mlpm-area{grid-template-columns:1fr}}

.mlpm-floats{position:fixed;right:16px;bottom:18px;z-index:9999;display:flex;flex-direction:column;gap:12px}
.mlpm-float{width:54px;height:54px;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 10px 25px -8px rgba(0,0,0,.45);transition:transform .15s}
.mlpm-float:hover{transform:scale(1.07)}
.mlpm-float-wa{background:#25d366}
.mlpm-float-call{background:var(--mlpm-brand,#e11d48)}

.mlpm-thanks-page{margin:0;background:#f3f4f6;font-family:"Hind Siliguri",system-ui,sans-serif;color:#1f2937}
.mlpm-thanks{max-width:560px;margin:40px auto;padding:32px 22px;background:#fff;border-radius:22px;text-align:center;box-shadow:0 20px 50px -30px rgba(0,0,0,.4)}
.mlpm-thanks-icon{width:76px;height:76px;margin:0 auto 14px;border-radius:50%;background:#16a34a;color:#fff;font-size:42px;line-height:76px;font-weight:700}
.mlpm-thanks h1{font-size:24px;margin:0 0 8px;line-height:1.4}
.mlpm-thanks p{color:#4b5563;margin:0 0 20px}
.mlpm-thanks-box{text-align:left;background:#f9fafb;border:1px solid #e5e7eb;border-radius:14px;padding:6px 16px}
.mlpm-thanks-box div{display:flex;justify-content:space-between;gap:16px;padding:9px 0;border-bottom:1px solid #eef0f3}
.mlpm-thanks-box div:last-child{border:0}
.mlpm-thanks-box span{color:#6b7280;flex:0 0 auto}
.mlpm-thanks-box b{text-align:right;word-break:break-word}
.mlpm-thanks-box .mlpm-total b{color:var(--mlpm-brand,#e11d48);font-size:18px}
.mlpm-back{display:inline-block;margin-top:18px;color:#4b5563}

/* Packages, variant chips, gift, sticky bar */
.mlpm-form-card .mlpm-packages,.mlpm-form-card .mlpm-variants{border:0;padding:0;margin:0 0 14px;display:grid;gap:8px}
.mlpm-form-card .mlpm-packages legend,.mlpm-form-card .mlpm-variants legend{font-weight:600;font-size:15px;margin-bottom:6px;color:#374151;padding:0}
.mlpm-form-card .mlpm-package{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1.5px solid #d1d5db;border-radius:12px;cursor:pointer;background:#fff;margin:0}
.mlpm-form-card .mlpm-package input{position:absolute;opacity:0;pointer-events:none}
.mlpm-form-card .mlpm-package-dot{width:20px;height:20px;border-radius:50%;border:2px solid #9ca3af;flex:0 0 auto;display:grid;place-items:center}
.mlpm-form-card .mlpm-package:has(input:checked){border-color:var(--b);background:color-mix(in srgb,var(--b) 6%,#fff);box-shadow:0 0 0 3px color-mix(in srgb,var(--b) 12%,transparent)}
.mlpm-form-card .mlpm-package:has(input:checked) .mlpm-package-dot{border-color:var(--b)}
.mlpm-form-card .mlpm-package:has(input:checked) .mlpm-package-dot::after{content:"";width:10px;height:10px;border-radius:50%;background:var(--b)}
.mlpm-form-card .mlpm-package-name{flex:1;font-weight:600;color:#111827}
.mlpm-form-card .mlpm-package-price{text-align:right;line-height:1.2}
.mlpm-form-card .mlpm-package-price del{display:block;color:#9ca3af;font-size:13px}
.mlpm-form-card .mlpm-package-price b{color:var(--b);font-size:17px}
.mlpm-form-card .mlpm-variants{grid-template-columns:repeat(auto-fill,minmax(80px,1fr))}
.mlpm-form-card .mlpm-variants label{position:relative;margin:0;cursor:pointer}
.mlpm-form-card .mlpm-variants input{position:absolute;opacity:0}
.mlpm-form-card .mlpm-variants span{display:block;text-align:center;padding:9px 8px;border:1.5px solid #d1d5db;border-radius:10px;font-weight:600;background:#fff;color:#374151}
.mlpm-form-card .mlpm-variants input:checked+span{border-color:var(--b);background:var(--b);color:#fff}
.mlpm-form-card .mlpm-variants.mlpm-invalid span{border-color:#dc2626}
.mlpm-form-card .mlpm-gift{display:flex;gap:10px;align-items:center;padding:10px 14px;margin:0 0 14px;border:1.5px dashed #16a34a;border-radius:12px;background:#f0fdf4;color:#166534;font-size:15px}
.mlpm-sticky{position:fixed;left:0;right:0;bottom:0;z-index:9998;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px calc(10px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #e5e7eb;box-shadow:0 -8px 24px rgba(0,0,0,.08);transform:translateY(110%);transition:transform .25s ease;font-family:"Hind Siliguri","Noto Sans Bengali",system-ui,sans-serif}
.mlpm-sticky.show{transform:none}
.mlpm-sticky small{display:block;color:#6b7280;font-size:12px;line-height:1.2}
.mlpm-sticky b{font-size:20px;color:#111827;line-height:1.2}
.mlpm-sticky a{flex:0 0 auto;padding:12px 26px;border-radius:12px;background:var(--mlpm-brand,#e11d48);color:#fff!important;font-weight:700;font-size:17px;text-decoration:none}
@media (min-width:821px){.mlpm-sticky{display:none}}
body.mlpm-has-sticky .mlpm-floats{bottom:84px}
@media (min-width:821px){body.mlpm-has-sticky .mlpm-floats{bottom:18px}}

/* Copied pages: decorative blobs or wide rows must not make the phone page scroll sideways. */
html:has(body.mlpm-page),body.mlpm-page{overflow-x:clip}
