/*! SmartEco Calculator - all rules scoped under .se-app */
.se-app{--navy:#08244b;--navy2:#144383;--red:#ed1c24;--grey:#f3f3f3;--m:#808080;--m2:#919191;--ln:#e0e0e0;--h:Manrope,system-ui,sans-serif;--f:'DM Sans',system-ui,sans-serif}
.se-app,.se-app *{box-sizing:border-box;margin:0;padding:0}.se-app{font-family:var(--f);color:#000}body.se-lock{overflow:hidden}
.se-app button,.se-app input,.se-app select{font:inherit;color:inherit}.se-app button{cursor:pointer;background:none;border:0}.se-app a{color:inherit;text-decoration:none}.se-app img{display:block}.se-app [hidden]{display:none!important}
.se-app :focus-visible{outline:2px solid #2d6cdf;outline-offset:2px}
/* themes/page builders often colour h2-h4; keep the calculator's own colours */
.se-app .se-head h2,.se-app .card h3,.se-app .card h4,.se-app .m-left h3,.se-app .m-left h4,.se-app .m-right h3{color:inherit}
.se-app .se{max-width:1340px;margin:0 auto;padding:100px 0px}
.se-app .se-head{display:flex;align-items:center;justify-content:space-between;gap:30px;margin-bottom:40px}
.se-app .se-head h2{font:700 40px/50px var(--h);text-transform:capitalize;width:424px;max-width:100%}.se-app .se-head p{font-size:18px;color:var(--m);width:474px;max-width:100%}
.se-app .se-grid{display:grid;grid-template-columns:minmax(0,635px) 1fr;gap:30px;align-items:start}.se-app .se-grid.two{grid-template-columns:1fr 1fr;align-items:stretch}
.se-app .col{display:flex;flex-direction:column;gap:20px}
.se-app .card{border-radius:20px;padding:30px;border:1px solid var(--grey)}.se-app .card h3{font:700 20px var(--h);text-transform:capitalize;margin-bottom:19px}
.se-app .card.grey{background:var(--grey)}.se-app .card.grey.active{background:#fcfcfc;border-color:var(--m2)}
.se-app .card.navy{background:linear-gradient(190deg,var(--navy) 11.6%,var(--navy2) 85.9%);color:#fff;border:0;display:flex;flex-direction:column;gap:20px}.se-app .card.navy h3,.se-app .w{color:#fff;margin:0!important}
.se-app .card.white{background:#fcfcfc;border:1px solid var(--ln);display:flex;flex-direction:column;gap:20px}
.se-app .drop{width:100%;height:200px;padding:30px;border:1px dashed var(--m2);border-radius:10px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:var(--m);text-align:center}
.se-app .drop b{font-size:16px;font-weight:700;text-transform:capitalize;line-height:18px}.se-app .drop small{font-size:12px;line-height:14px}.se-app .drop.over,.se-app .drop:hover{border-color:var(--navy)}
.se-app .hint{margin-top:10px;font-size:14px;color:var(--m)}.se-app .hint a{text-decoration:underline}
.se-app .or{display:flex;align-items:center;gap:10px;font-size:14px}.se-app .or i{flex:1;height:1px;background:#000;opacity:.1}
.se-app .lbl{display:block;font-size:16px;font-weight:600;margin-bottom:10px}
.se-app .search{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--m2);border-radius:10px;padding:10px}
.se-app .search input{flex:1;min-width:0;border:0;outline:0;font-size:14px;background:transparent}.se-app .search input::placeholder{color:var(--m2);text-transform:capitalize}
.se-app .spin{width:14px;height:14px;border:2px solid #cfd5e2;border-top-color:var(--navy);border-radius:50%;animation:sp .7s linear infinite;flex:none;display:inline-block}.se-app .spin.dark{margin-right:6px;vertical-align:-2px}@keyframes sp{to{transform:rotate(360deg)}}
.se-app .dd,.se-app .plist{list-style:none;margin-top:20px;background:#fff;border:1px solid var(--ln);border-radius:10px;overflow:hidden}
.se-app .dd li{padding:12px 10px;font-size:16px;display:flex;align-items:center;justify-content:flex-start;gap:12px;border-bottom:1px solid var(--ln);cursor:pointer}.se-app .dd li img{width:46px;height:46px;object-fit:contain;border-radius:6px;background:var(--grey);flex:none}.se-app .dd li span{display:grid;gap:3px;min-width:0}.se-app .dd li b{font-size:14px;font-weight:600}.se-app .dd li small{font-size:12px;color:var(--m)}.se-app .dd li:last-child{border:0}.se-app .dd li.on,.se-app .dd li[role=option]:hover{background:#f0f0f0}.se-app .dd small{color:var(--m);font-size:14px}
.se-app .st{color:var(--m);font-size:14px;cursor:default!important}.se-app .err,.se-app .st.err{color:#c4161f}.se-app .st button{text-decoration:underline;font-weight:700;color:var(--navy)}
.se-app .plist li{border-bottom:1px solid var(--ln)}.se-app .plist li:last-child{border:0}
.se-app .prow{width:100%;display:flex;align-items:center;gap:20px;padding:10px 20px 10px 10px;text-align:left}.se-app .prow:hover,.se-app .prow.sel{background:#f0f0f0}
.se-app .prow img{width:62px;height:60px;object-fit:contain;border-radius:6px;background:var(--grey);flex:none}.se-app .prow span{flex:1;display:grid;gap:2px;min-width:0}.se-app .prow b{font-size:18px;font-weight:400}.se-app .prow small{font-size:14px;color:var(--m);text-transform:capitalize}.se-app .prow em{font-style:normal;font-size:14px}.se-app .chk{display:none;flex:none}.se-app .prow.sel .chk{display:block}
.se-app #prodPanel>.lbl{margin-top:20px;margin-bottom:0}.se-app .pager{display:flex;justify-content:space-between;align-items:center;margin-top:10px;font-size:14px;color:var(--m)}
.se-app #ownForm{margin-top:20px;display:grid;gap:10px}.se-app .frow{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}.se-app .frow input{background:#fff;border:1px solid var(--m2);border-radius:10px;padding:10px;font-size:14px;min-width:0}
.se-app .empty{background:#fff;border-radius:17.7px;height:188px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;color:var(--m);text-align:center;padding:20px;background:#fff url(../images/pattern.png) center/contain no-repeat}
.se-app .empty b{font-size:16px;font-weight:700;text-transform:capitalize;line-height:18px}.se-app .ico{width:54px;height:54px;border-radius:50%;background:var(--red);display:grid;place-items:center}
.se-app .btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;width:100%;padding:10px 20px;border:1px solid var(--navy);border-radius:50px;font-size:16px;font-weight:400;text-transform:capitalize;line-height:20px}
.se-app .btn.solid{background:var(--navy);color:#fff;font-weight:300}.se-app .btn.out{background:#fff;color:var(--navy)}.se-app .btn.pill{background:#fff;color:var(--navy);border-color:#fff}.se-app .btn.sm{width:auto}.se-app .btn:disabled{opacity:.45;cursor:not-allowed}
/* result */
.se-app .ch{display:flex;align-items:center;justify-content:space-between}.se-app .ch h3{margin:0!important}
.se-app .iconbtn{width:40px;height:40px;border-radius:50%;background:#fff;display:grid;place-items:center}
.se-app .imgbox{border-radius:20px;overflow:hidden;height:300px;background:#fff;position:relative;display:flex;place-items:center}.se-app .imgbox img{width:100%;height:100%;object-fit:cover}
.se-app .imgbox.alt{background:#fff url(../images/pattern.png) center/contain no-repeat}.se-app .imgbox.alt img{object-fit:contain}.se-app .noimg{font:700 24px var(--h);color:var(--navy)}
.se-app .chip{align-self:flex-start;padding:6px 12px;border-radius:50px;background:#ebebeb;color:var(--navy);font-size:14px;text-transform:capitalize}.se-app .chip.ok{background:var(--navy);color:#fff;padding:6px 8px}
.se-app .pname{font:700 24px var(--h)}.se-app .pcomp{font-size:16px;color:var(--m2)}.se-app .navy .pcomp,.se-app .navy .prices small{color:#fff}
.se-app .prices{display:flex;gap:20px;border-block:1px solid var(--ln)}.se-app .navy .prices{border-color:rgba(255,255,255,.1)}
.se-app .prices>div{flex:1;padding:10px 0}.se-app .prices>div:first-child{border-right:1px solid var(--ln)}.se-app .navy .prices>div:first-child{border-color:rgba(255,255,255,.1)}
.se-app .prices b{display:block;font:700 24px var(--h)}.se-app .prices small{font-size:14px;color:var(--m2)}
.se-app .stack{display:flex;flex-direction:column;gap:30px}.se-app .stack>div{display:flex;flex-direction:column;gap:10px}
.se-app .matchsel{font-size:14px;color:#fff}.se-app .matchsel select{display:block;width:100%;margin-top:6px;padding:10px;border-radius:10px;border:0;color:#000;background:#fff}
.se-app .banner{margin:30px 0 101px;background:rgba(52,199,89,.1);border-radius:10px;text-align:center;padding:10px;font-size:18px}
.se-app .pc-title{font:700 24px var(--h);text-transform:capitalize}.se-app .sub{font-size:18px;color:var(--m);margin:6px 0 30px}
.se-app .pc{display:grid;grid-template-columns:1fr 1fr;gap:30px;align-items:stretch}
.se-app .card.calc{padding:20px;border-radius:20px;background:linear-gradient(195deg,var(--navy) 11.6%,var(--navy2) 85.9%)}
.se-app .perday{display:flex;align-items:center;gap:6px;background:#fff;color:#000;border-radius:30px;padding:6px 10px 6px 20px;font-size:14px;text-transform:capitalize}.se-app .perday>span:first-child{flex:1}.se-app .perday em{font-style:normal;color:var(--m2)}
.se-app .stepper{display:flex;align-items:center;gap:4px;background:var(--red);border-radius:50px;padding:6px 6px 6px 10px;color:#fff;font-weight:300;font-size:14px}.se-app .stepper button{width:20px;height:20px;display:grid;place-items:center}
.se-app .sv{display:flex;flex-direction:column;gap:10px}.se-app .panel{min-height:120px;background:rgba(243,243,243,.2);border-radius:20px 20px 0 0;-webkit-mask:radial-gradient(circle 8px at 12px calc(100% + 3px),transparent 96%,#000) 0 0/24px 100% repeat-x;mask:radial-gradient(circle 8px at 12px calc(100% + 3px),transparent 96%,#000) 0 0/24px 100% repeat-x}
.se-app .big{display:flex;justify-content:space-between;align-items:flex-start;gap:19px;padding:20px}.se-app .big>div{display:flex;flex-direction:column;gap:10px;flex:1}.se-app .big h4{font:700 20px var(--h);color:var(--grey)}.se-app .big .chip{background:var(--navy);color:#fff;font-size:12px;padding:6px 8px}
.se-app .big strong{font:700 50px/50px var(--h);text-align:right;flex:1}
.se-app .sv dl div{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid rgba(255,255,255,.1)}.se-app .sv dl div:last-child{border:0}.se-app dt{font-size:16px;color:var(--grey);text-transform:capitalize}.se-app dd{font-size:18px;font-weight:700}
.se-app .fn{font-size:12px;font-weight:300}
.se-app .cmp{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--ln);border-radius:20px;background:#fff;overflow:hidden}
.se-app .cc{padding:0 20px 20px}.se-app .cc+.cc{border-left:1px solid var(--ln)}.se-app .cc:first-child{border-right:0}.se-app .cc{padding-top:20px}
/* Highlight the SmartEco comparison column to match the approved reference. */
.se-app .cmp>.cc:nth-child(2){background:#34c7591a}.se-app .cc h5{font:700 20px var(--h);color:var(--m2);margin-bottom:19px}.se-app .cc h4{font:700 24px/1.4 var(--h);min-height:2.8em;margin-bottom:20px;overflow-wrap:anywhere}
.se-app .cc .r{display:flex;justify-content:space-between;gap:8px;padding:10px 0;border-bottom:1px solid var(--ln)}.se-app .cc .r:last-child{border:0}.se-app .cc .r span{font-size:16px;color:var(--m);text-transform:capitalize}.se-app .cc .r b{font-size:18px;font-weight:400}
.se-app .note{margin-top:40px;background:var(--grey);border-radius:20px;padding:20px;font-size:18px;color:var(--m);display:grid;gap:10px}
.se-app .dev{margin-top:30px;padding:8px 12px;border:1px dashed #b7bdc9;border-radius:8px;font-size:12px;color:var(--m)}
/* modal */
.se-app .modal{position:fixed;inset:0;background:rgba(10,14,22,.8);display:grid;place-items:center;padding:24px 16px;z-index:100}
.se-app .sheet{position:relative;width:min(1000px,100%)}.se-app .sheet-in{display:grid;grid-template-columns:1fr 1fr;background:#fff;border:1px solid var(--ln);border-radius:20px;max-height:90vh;overflow:auto}
.se-app .x{position:absolute;top:-12px;right:-8px;z-index:3;width:30px;height:30px;border-radius:50%;background:var(--navy);border:1.5px solid #fff;display:grid;place-items:center}
.se-app .m-left{padding:20px;border-right:1px solid var(--ln)}.se-app .m-left h3,.se-app .m-right h3{font:700 20px var(--h)}.se-app .m-left h3{margin-bottom:19px}
.se-app .gh{border-top:1px solid #d0d0d0;padding:6px 0;margin:20px 0 10px;font-size:16px;font-weight:600;text-transform:capitalize}.se-app .gh:nth-of-type(1){margin-top:0}.se-app .gh.ok{color:#07a12e}.se-app .gh.no{color:#ff383c}
.se-app .gg{display:grid;grid-template-columns:1fr 1fr;gap:20px}.se-app .ex{display:flex;gap:10px;align-items:center;font-size:12px;color:var(--m)}.se-app .ex:last-child:nth-child(odd){grid-column:1/-1}
.se-app .ex i{flex:none;width:90px;height:86px;border-radius:8px;background:var(--img,none) center/cover,repeating-linear-gradient(135deg,#dcdcdd 0 8px,#dcdcdd 8px 16px)}.se-app .ex span{max-width:150px}
.se-app .m-right{padding:20px;display:flex;flex-direction:column;gap:20px}.se-app .m-right .sub{font-size:14px;margin:-14px 0 10px}.se-app .m-right .imgbox{height:auto;aspect-ratio:4/3}.se-app .priv{font-size:12px;color:var(--m)}
.se-app .scanning .bar{position:absolute;left:0;right:0;height:3px;background:var(--red);box-shadow:0 0 12px var(--red);animation:scan 1.4s ease-in-out infinite alternate}@keyframes scan{from{top:4%}to{top:94%}}
/* Thin SmartEco scan progress: measured upload, estimated analysis percentage (capped until API response), then completed 100% line. */
.se-app .scan-progress{display:grid;gap:8px;margin:14px 0 8px;font-size:13px;color:var(--navy)}
.se-app .scan-progress-head{display:flex;align-items:center;justify-content:space-between;gap:12px;font-weight:600}
.se-app .scan-progress-value{font-variant-numeric:tabular-nums;color:var(--m)}
.se-app .scan-progress-track{height:4px;border-radius:20px;background:#e8edf4;overflow:hidden;position:relative}
.se-app .scan-progress-fill{display:block;width:0;height:100%;border-radius:20px;background:var(--red);transition:width .18s ease}
.se-app .scan-progress-track.is-processing .scan-progress-fill{background:var(--red);animation:none}
.se-app .scan-progress-track.is-complete .scan-progress-fill{background:#16a34a;animation:none;width:100%}
.se-app .scan-progress-track.is-complete+.scan-progress-status{color:#16a34a}
@media(prefers-reduced-motion:reduce){.se-app .scan-progress-fill{transition:none}}
.se-app .errbox{background:#fdecec;border:1px solid #f5b5b8;border-radius:10px;padding:14px;color:#8f1218;font-size:14px;line-height: 1.4;display:grid;gap:6px}.se-app .errbox small{color:#a55}
.se-app p.err{font-size:14px}
@media(max-width:1000px){.se-app .se-grid,.se-app .se-grid.two,.se-app .pc{grid-template-columns:1fr}.se-app .se-head{flex-direction:column;align-items:flex-start}.se-app .se{padding:0 0 60px 0px}}
@media(max-width:760px){.se-app .sheet-in{grid-template-columns:1fr}.se-app .m-right{order:-1}.se-app .m-left{border:0;border-top:1px solid var(--ln)}.se-app .se-head h2{font-size:30px;line-height:38px}.se-app .card{padding:20px}.se-app .frow{grid-template-columns:1fr}.se-app .big{flex-direction:column}.se-app .big strong{text-align:left}.se-app .banner{font-size:15px;margin-bottom:60px}.se-app .note{font-size:15px}.se-app .gg{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.se-app,.se-app *{animation-duration:.01ms!important}}
.se-app .card>.imgbox{margin-bottom:10px}.se-app .txt{display:flex;flex-direction:column;gap:10px}.se-app .in{display:flex;flex-direction:column;gap:30px}.se-app .blk{display:flex;flex-direction:column;gap:20px}.se-app .nm{display:flex;flex-direction:column}
@media(max-width:480px){.se-app .cc{padding:16px 12px}.se-app .cc h4{font-size:18px}.se-app .cc .r span{font-size:13px}.se-app .cc .r b{font-size:15px}.se-app .pname{font-size:20px}.se-app .prices b{font-size:20px}.se-app .big strong{font-size:40px}}
.se-app .ch h3{text-transform:none!important}
.se-app .note ul{list-style:disc;padding-left:22px;display:grid;gap:2px}.se-app .note li{padding-left:2px;line-height:1.35}.se-app .note li::marker{font-size:.9em}
/* laptops / small desktops: minor reduction */
@media(max-width:1440px){
.se-app .se-head h2{font-size:36px;line-height:45px}.se-app .se-head p,.se-app .sub{font-size:17px}.se-app .card h3,.se-app .m-left h3,.se-app .m-right h3,.se-app .big h4,.se-app .cc h5{font-size:19px}
.se-app .pname,.se-app .prices b,.se-app .cc h4,.se-app .pc-title{font-size:22px}.se-app .banner,.se-app .note{font-size:17px}.se-app .big strong{font-size:46px;line-height:46px}}
/* responsive type scale (slightly smaller than desktop) */
@media(max-width:1000px){
.se-app .se-head h2{font-size:34px;line-height:42px}.se-app .se-head p,.se-app .sub,.se-app .hint{font-size:16px}.se-app .hint{font-size:13px}
.se-app .card h3,.se-app .m-left h3,.se-app .m-right h3,.se-app .big h4,.se-app .cc h5{font-size:18px}.se-app .pname,.se-app .cc h4{font-size:22px}.se-app .prices b{font-size:22px}
.se-app .pcomp,.se-app .lbl,.se-app .btn,.se-app .gh,.se-app dt,.se-app .cc .r span{font-size:15px}.se-app .prices small,.se-app .search input,.se-app .chip,.se-app .drop small,.se-app .st,.se-app .ex{font-size:13px}
.se-app .banner,.se-app .note,.se-app .big strong+*,.se-app dd,.se-app .cc .r b,.se-app .prow b{font-size:16px}.se-app .banner{font-size:16px}.se-app .note{font-size:16px}.se-app .pc-title{font-size:22px}.se-app .big strong{font-size:44px;line-height:44px}.se-app .drop b{font-size:15px}}
@media(max-width:760px){
.se-app .se{padding:0 0 60px 0px}.se-app .se-head h2{font-size:28px;line-height:36px}.se-app .se-head p,.se-app .sub{font-size:15px}
.se-app .card h3,.se-app .m-left h3,.se-app .m-right h3{font-size:18px}.se-app .big h4,.se-app .cc h5{font-size:17px}.se-app .pname,.se-app .cc h4{font-size:20px}.se-app .prices b{font-size:20px}.se-app .pcomp,.se-app .lbl,.se-app .btn,.se-app .gh,.se-app dt{font-size:14px}
.se-app .prices small,.se-app .pager,.se-app .hint{font-size:12px}.se-app .banner,.se-app .note,.se-app dd{font-size:14px}.se-app .pc-title{font-size:20px}.se-app .big strong{font-size:36px;line-height:36px}.se-app .drop b{font-size:14px}.se-app .drop{padding:20px}.se-app .prow b{font-size:15px}.se-app .prow small{font-size:12px}.se-app .dd li{font-size:14px}.se-app .perday{font-size:13px}.se-app .cc .r span{font-size:13px}.se-app .cc .r b{font-size:15px}}
@media(max-width:480px){
.se-app .se-head h2{font-size:24px;line-height:32px}.se-app .se-head p,.se-app .sub{font-size:14px}.se-app .card h3,.se-app .m-left h3,.se-app .m-right h3{font-size:18px}.se-app .big h4,.se-app .cc h5{font-size:15px}.se-app .pname,.se-app .cc h4{font-size:18px}.se-app .prices b{font-size:18px}.se-app .prices{gap:12px}
.se-app .banner,.se-app .note,.se-app dd{font-size:13px}.se-app .pc-title{font-size:18px}.se-app .big strong{font-size:32px;line-height:32px}.se-app .cc .r span{font-size:12px}.se-app .cc .r b{font-size:14px}.se-app .card.calc{padding:16px}.se-app .btn{font-size:14px}.se-app .chip{font-size:12px}}

.se-app .prow .chk{display:block;margin-left:auto}.se-app .prow .spin{margin-left:auto}
.se-app #manualCard .ch{margin-bottom:19px}.se-app #manualCard .ch h3{text-transform:capitalize!important}
.se-app .prow.loading{animation:prowpulse 1.1s ease-in-out infinite}.se-app .prow.loading img{opacity:.6}
@keyframes prowpulse{0%,100%{opacity:1}50%{opacity:.55}}@media(prefers-reduced-motion:reduce){.se-app .prow.loading{animation:none}}

/* smooth transitions while typing / selecting */
.se-app .ddwrap{display:grid;grid-template-rows:0fr;transition:grid-template-rows .25s ease}
.se-app .ddwrap.open{grid-template-rows:1fr}.se-app .ddin{min-height:0;overflow:hidden}
.se-app .dd{transition:opacity .15s ease}.se-app .dd.stale{opacity:.5}
.se-app .dd li{animation:fadeup .18s ease both}
@keyframes fadeup{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:none}}
.se-app #prodPanel:not([hidden]){animation:fadeup .22s ease both}
.se-app #altCard.fadein>*{animation:fadeup .28s ease both}
.se-app .col>.card:first-child,.se-app .col>.or{max-height:900px;overflow:hidden;visibility:visible;transition:max-height .35s ease,opacity .25s ease,padding .35s ease,margin-bottom .35s ease,border-width .35s ease,visibility 0s}
.se-app .col.manual-only>.card:first-child,.se-app .col.manual-only>.or{max-height:0;opacity:0;padding-top:0;padding-bottom:0;margin-bottom:-20px;border-width:0;pointer-events:none;visibility:hidden;transition:max-height .35s ease,opacity .2s ease,padding .35s ease,margin-bottom .35s ease,border-width .35s ease,visibility 0s .35s}
@media(prefers-reduced-motion:reduce){.se-app .ddwrap,.se-app .dd,.se-app .col>.card:first-child,.se-app .col>.or{transition:none!important}.se-app .dd li,.se-app #prodPanel,.se-app #altCard.fadein>*{animation:none!important}}

.se-app .card.navy h4,.se-app .card.navy .pname,.se-app .card.navy .pcomp{color:#fff}


/* SmartEco product sharing dialog — isolated styles; does not alter existing calculator layout. */
.se-share-modal[hidden]{display:none!important}
.se-share-modal{position:fixed;inset:0;z-index:10050;background:rgba(10,14,22,.62);display:flex;align-items:center;justify-content:center;padding:20px;box-sizing:border-box}
.se-share-modal *{box-sizing:border-box}
.se-share-panel{position:relative;width:min(520px,100%);max-height:90vh;overflow:auto;background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:28px;box-shadow:0 18px 60px rgba(0,0,0,.24);color:#111827;font-family:'DM Sans',sans-serif}
.se-share-panel h3{margin:0 42px 8px 0!important;font-size:22px;line-height:1.25;color:#111827}
.se-share-intro{margin:0 0 18px;color:#6b7280;font-size:13px;line-height:1.5}
.se-share-close{position:absolute;right:16px;top:14px;width:34px;height:34px;border:0;border-radius:50%;background:#08244b;color:#fff;font-size:24px;line-height:1;cursor:pointer}
.se-share-product{display:flex;align-items:center;gap:14px;padding:14px;background:#f6f8fb;border:1px solid #e5eaf0;border-radius:12px;margin-bottom:18px;min-width:0}
.se-share-image{width:76px;height:76px;object-fit:contain;border-radius:8px;background:#fff;flex:none}
.se-share-image[hidden]{display:none}
.se-share-product-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.se-share-name{font-size:15px;color:#08244b}
.se-share-composition,.se-share-pack,.se-share-unit{font-size:12px;color:#6b7280;overflow-wrap:anywhere}
.se-share-price{font-size:18px;color:#08244b}
.se-share-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.se-share-action{display:flex;align-items:center;justify-content:center;min-height:44px;padding:9px 8px;border:1px solid #d7deea;border-radius:9px;background:#fff;color:#08244b;text-decoration:none;text-align:center;font-family:inherit;font-size:12px;font-weight:600;line-height:1.25;cursor:pointer}
.se-share-action:hover{background:#f1f5fb;border-color:#9aabc4}
.se-share-action.whatsapp{background:#eaf8ef;border-color:#c4e8cf;color:#146c35}
.se-share-action.linkedin{background:#edf5fc;border-color:#c8def2;color:#0a66c2}
.se-share-action.facebook{background:#eef3ff;border-color:#d0dcff;color:#185abc}
.se-share-feedback{display:block;min-height:18px;margin-top:8px;color:#16803c;font-size:12px}
@media(max-width:520px){.se-share-panel{padding:22px 18px}.se-share-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.se-share-panel h3{font-size:19px}}

/* Sharing button icons */
.se-share-action{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:9px;padding-left:14px;text-align:left}
.se-share-action .se-share-icon{display:block;width:19px;height:19px;flex:0 0 19px}
.se-share-action span{display:inline-block;min-width:0}
.se-share-action.whatsapp .se-share-icon{color:#16833d}
.se-share-action.email .se-share-icon{color:#d44638}
.se-share-action.linkedin .se-share-icon{color:#0a66c2}
.se-share-action.facebook .se-share-icon{color:#1877f2}
.se-share-action.copy-details .se-share-icon,.se-share-action.copy-image .se-share-icon{color:#08244b}

/* Final share dialog alignment and user-selected email provider menu */
.se-share-actions{align-items:stretch}
.se-share-actions>.se-share-action,.se-share-actions>.se-email-wrap{width:100%;min-width:0}
.se-share-action{justify-content:center!important;align-items:center!important;gap:8px;padding:9px 8px!important;text-align:center!important;white-space:nowrap}
.se-share-action .se-share-icon{margin:0;flex:0 0 19px}
.se-share-action span{flex:0 1 auto}
.se-email-wrap{position:relative;min-width:0}
.se-email-wrap>.se-share-action{width:100%;height:100%}
.se-email-menu[hidden]{display:none!important}
.se-email-menu{position:absolute;top:calc(100% + 7px);left:0;right:0;z-index:5;display:flex;flex-direction:column;gap:3px;padding:6px;background:#fff;border:1px solid #d7deea;border-radius:10px;box-shadow:0 8px 24px rgba(8,36,75,.16)}
.se-email-menu button{display:block;width:100%;padding:9px 10px;border:0;border-radius:6px;background:#fff;color:#08244b;text-align:left;font-family:inherit;font-size:12px;font-weight:600;line-height:1.3;cursor:pointer}
.se-email-menu button:hover{background:#f1f5fb}
@media(max-width:520px){.se-share-actions>.se-email-wrap{width:100%}}

/* Email action uses the user's operating-system default mail handler. */
.se-share-action.email{cursor:pointer}

/* Share popup typography: explicit fonts because the dialog is mounted under document.body. */
.se-share-panel{font-family:'DM Sans',sans-serif}
.se-share-panel h3,
.se-share-panel .se-share-intro,
.se-share-panel .se-share-name{font-family:Manrope,sans-serif}
.se-share-panel .se-share-composition,
.se-share-panel .se-share-price,
.se-share-panel .se-share-pack,
.se-share-panel .se-share-unit,
.se-share-panel .se-share-action,
.se-share-panel .se-email-menu button,
.se-share-panel .se-share-feedback{font-family:'DM Sans',sans-serif}


/* v1.0.9: preserve the v1.0.8 popup positioning while improving tablet grid behavior. */
@media (max-width:1100px){
  .se-app .se-grid,
  .se-app .se-grid.two,
  .se-app .pc{
    grid-template-columns:minmax(0,1fr) !important;
  }
  .se-app .se-head{
    flex-direction:column;
    align-items:flex-start;
  }
}


/* Desktop: Hide only Take Photo */
@media (min-width: 761px) {
    #uploadPane button.btn.solid[data-u="cam"] {
        display: none !important;
    }

    /* #uploadPane button.btn.out[data-u="gal"] {
        background: #08244b !important;
        color: #fff !important;
    } */
}

/* Mobile: Show Take Photo */
@media (max-width: 760px) {
    #uploadPane button.btn.solid[data-u="cam"] {
        display: inline-flex !important;
    }

    /* #uploadPane button.btn.out[data-u="gal"] {
        background: #fff !important;
        color: #08244b !important;
    } */
}

/* v1.1.1: contain scrolling for the photo-guidelines dialog only. */
html.se-lock,
html.se-lock body,
body.se-lock{
  overflow:hidden !important;
  overscroll-behavior:none !important;
}
.se-app .modal#modal{
  overflow:hidden !important;
  overscroll-behavior:none !important;
  touch-action:pan-y;
}
.se-app .modal#modal .sheet{
  width:min(1000px,100%);
  max-height:calc(100vh - 48px);
  max-height:calc(100dvh - 48px);
  min-height:0;
}
.se-app .modal#modal .sheet-in{
  max-height:calc(100vh - 48px) !important;
  max-height:calc(100dvh - 48px) !important;
  min-height:0 !important;
  overflow-x:hidden !important;
  overflow-y:auto !important;
  overscroll-behavior-y:contain !important;
  -webkit-overflow-scrolling:touch;
  scrollbar-gutter:stable;
}
@media(max-width:760px){
  .se-app .modal#modal{padding:12px !important;}
  .se-app .modal#modal .sheet,
  .se-app .modal#modal .sheet-in{
    max-height:calc(100vh - 24px) !important;
    max-height:calc(100dvh - 24px) !important;
  }
}


/* v1.1.2: compact photo-guidelines dialog on laptop and tablet viewports.
   This is intentionally scoped to the photo-guidelines modal; calculator cards,
   pharmacy finder popup and all other components retain their existing styles. */
@media (min-width: 761px) and (max-width: 1440px) {
  .se-app .modal#modal {
    padding: 18px 12px !important;
  }
  .se-app .modal#modal .sheet {
    width: min(900px, 100%);
  }
  .se-app .modal#modal .m-left,
  .se-app .modal#modal .m-right {
    padding: 16px;
  }
  .se-app .modal#modal .m-left h3,
  .se-app .modal#modal .m-right h3 {
    font-size: 18px;
    line-height: 1.25;
  }
  .se-app .modal#modal .m-left h3 {
    margin-bottom: 14px;
  }
  .se-app .modal#modal .gh {
    font-size: 14px;
    margin: 14px 0 8px;
  }
  .se-app .modal#modal .gg {
    gap: 12px;
  }
  .se-app .modal#modal .ex {
    gap: 8px;
    font-size: 11px;
    line-height: 1.35;
  }
  .se-app .modal#modal .ex i {
    width: 76px;
    height: 72px;
  }
  .se-app .modal#modal .ex span {
    max-width: 130px;
  }
  .se-app .modal#modal .m-right {
    gap: 14px;
  }
  .se-app .modal#modal .m-right .sub {
    font-size: 13px;
    line-height: 1.4;
    margin: -8px 0 6px;
  }
  .se-app .modal#modal .priv {
    font-size: 11px;
    line-height: 1.4;
  }
}


/* Manual medicine search: emphasize the characters matching the active query. */
.se-app .se-search-highlight {
  background: #fff0a8;
  color: inherit;
  font-weight: 700;
  padding: 0 1px;
  border-radius: 2px;
}


/* Figma match styling: verified stamp and SmartEco match highlight. */
.se-app .imgbox.alt .se-verified-stamp{position:absolute;top:12px;right:12px;z-index:2;width:70px;height:70px;object-fit:contain;pointer-events:none}
.se-app .card.navy .chip.ok{background:#ABF5BF;color:#08244b}
.se-app .card.navy .txt .pname,.se-app .card.navy .txt .pcomp{color:#ABF5BF}
@media(max-width:760px){.se-app .imgbox.alt .se-verified-stamp{width:56px;height:56px;top:10px;right:10px}}


/* SLEW-27 #2: 'You save every year' panel edge per Figma: thin light outline and a scalloped bottom with bumps that bulge downward (was: no outline, small notches cut upward). */
.se-app .panel{-webkit-mask:none !important;mask:none !important;position:relative;border:1px solid rgba(255,255,255,.3);border-bottom:0;margin-bottom:9px}
.se-app .panel::after{content:'';position:absolute;left:-1px;right:-1px;top:100%;height:9px;background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%229%22%20viewBox%3D%220%200%2024%209%22%3E%3Cpath%20d%3D%22M0%200A12%208.5%200%200%200%2024%200Z%22%20fill%3D%22rgba%28243%2C243%2C243%2C0.2%29%22%2F%3E%3Cpath%20d%3D%22M0%200.5A12%208.5%200%200%200%2024%200.5%22%20fill%3D%22none%22%20stroke%3D%22rgba%28255%2C255%2C255%2C0.3%29%22%20stroke-width%3D%221%22%2F%3E%3C%2Fsvg%3E") 0 0/24px 9px repeat-x;pointer-events:none}
.se-app .panel::after{background-repeat:round no-repeat}

/* SLEW-26 #1: on mobile the photo-popup close button sat half outside the popup corner and touched the screen edge. Keep it inside the popup there; desktop keeps the Figma overhang. */
@media (max-width:760px){.se-app .modal .x{top:10px;right:10px}}

/* Lower-price state: the user's medicine is already cheaper than the SmartEco product.
   Replaces the SmartEco card (Figma node 33:13793); Price Comparison is hidden in JS. */
.se-app .card.se-lower{background:var(--grey);border:0;display:flex;flex-direction:column;gap:20px;padding:20px}
.se-app .se-lower-img{position:relative;flex:1 1 auto;min-height:300px;border-radius:20px;overflow:hidden}
.se-app .se-lower-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center}
.se-app .se-lower-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.se-app .se-lower-actions .btn{width:100%;font-size:14px;padding:9px 14px;white-space:nowrap;text-decoration:none}
.se-app .se-lower-actions .btn.out{background:#fff;color:var(--navy);border-color:var(--navy)}
.se-app .se-lower-actions .btn.out:hover,.se-app .se-lower-actions .btn.out:focus-visible{background:var(--navy);color:#fff}
.se-app .se-lower-actions .se-btn-red{background:var(--red);border-color:var(--red);color:#fff;font-weight:500}
.se-app .se-lower-actions .se-btn-red:hover,.se-app .se-lower-actions .se-btn-red:focus-visible{background:#c8141b;border-color:#c8141b;color:#fff}
@media (max-width:1100px){.se-app .se-lower-img{flex:none;min-height:0;aspect-ratio:580/559;width:100%;max-width:520px;margin:0 auto}}
@media (max-width:480px){.se-app .se-lower-actions{grid-template-columns:1fr}.se-app .card.se-lower{gap:16px;padding:16px}}

/* Custom error headings (NO_EXACT_MATCH, UNREADABLE) are longer: keep them clear of the popup close button on mobile. */
@media (max-width: 760px) {
  .se-app #uploadPane h3.se-err-h { padding-right: 36px; }
}


/* v1.1.23: line-height for description / helper texts.
   These texts had no line-height of their own (only the 761-1440px photo-guidelines dialog did), so on phones and on wide
   screens they inherited the theme's value (often 1.7-2) and two-line descriptions looked loose. Values follow the
   plugin's own compact settings (1.35-1.5). Only line-height is set here: no size, spacing, colour or layout changes.
   The #smart-eco-app prefix keeps the theme's paragraph rules from overriding them; the existing laptop-size dialog
   rules above are more specific and still apply. */
#smart-eco-app .se-head p,
#smart-eco-app .sub{line-height:1.5}
#smart-eco-app .hint,
#smart-eco-app .fn{line-height:1.4}
/* Photo-guidelines / upload dialog (moved to <body> inside #se-modal-host by the script). */
#se-modal-host .ex{line-height:1.35}
#se-modal-host .m-right .sub{line-height:1.4}
/* Share popup (added to the page body by the script, so it is not inside #smart-eco-app). */
.se-share-panel .se-share-composition,
.se-share-panel .se-share-pack,
.se-share-panel .se-share-unit{line-height:1.4}
.se-share-panel .se-share-name{line-height:1.3}
.se-share-panel .se-share-price{line-height:1.25}

/* v1.1.24: body-level popup stacking.
   Theme sticky headers (Turbo/Elementor) can use z-index:99999. The photo guide,
   chemist finder and share dialogs are intentionally placed above that header so
   their backdrop covers the complete site UI, matching the working Share dialog. */
#se-modal-host{
  position:relative !important;
  z-index:2147483000 !important;
  isolation:isolate;
}
#se-modal-host > .modal{
  z-index:1 !important;
}
#se-pharmacy-popup{
  position:fixed !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  z-index:2147483000 !important;
  isolation:isolate;
}
#se-pharmacy-popup .smartlab-cf-overlay{
  z-index:1 !important;
}
.se-share-modal{
  z-index:2147483000 !important;
}


/* v1.1.25: the "no exact match" message (custom NO_EXACT_MATCH wording) is shown in green.
   Only that message has the errbox-green class; every other message keeps the red .errbox style above. */
.se-app .errbox.errbox-green{background:rgba(52,199,89,.102);border:1px solid rgba(52,199,89,.102);color:#2e8143;line-height:1.4}
