.lfc-card,.lfc-card *{box-sizing:border-box}
.lfc-card{--lfc-accent:#4cbaa0;--lfc-background:#102b24;--lfc-text:#f4fff9;--lfc-width:360px;--lfc-gap:24px;--lfc-bottom:24px;position:fixed;right:var(--lfc-gap);bottom:max(var(--lfc-bottom),env(safe-area-inset-bottom));width:min(var(--lfc-width),calc(100vw - var(--lfc-gap) - var(--lfc-gap)));z-index:9999;border-radius:30px;background:var(--lfc-background);color:var(--lfc-text);font-family:'IBM Plex Sans Thai',sans-serif;box-shadow:0 14px 40px #0004;line-height:1.4;text-align:left;isolation:isolate}
.lfc-card[data-side=left]{right:auto;left:var(--lfc-gap)}
.lfc-card .lfc-panel{padding:24px 22px 16px;border-radius:inherit;background:radial-gradient(ellipse at 65% 70%,#4cbaa018,transparent 70%);max-height:calc(100dvh - 100px - var(--lfc-bottom));overflow-y:auto}
.lfc-card .lfc-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.lfc-card .lfc-time{display:flex;gap:7px;font-variant-numeric:tabular-nums;max-width:100%;flex-wrap:wrap}
.lfc-card .lfc-unit{text-align:center;position:relative;min-width:32px}
.lfc-card .lfc-unit:not(:last-child){padding-right:7px}
.lfc-card .lfc-unit:not(:last-child):after{content:':';position:absolute;right:-4px;top:0;font-size:22px}
.lfc-card .lfc-unit>span{font-size:23px;font-weight:600;line-height:1.2}
.lfc-card .lfc-unit small{display:block;margin-top:5px;font-size:12px;color:var(--lfc-text);opacity:.8;font-weight:400}
.lfc-card .lfc-brand{color:var(--lfc-accent);font-size:17px;line-height:1.1;font-weight:600;text-align:right;overflow-wrap:anywhere;max-width:95px;margin-left:auto}
.lfc-card .lfc-track{display:block;width:100%;height:auto;overflow:visible;margin:10px 0 12px}
.lfc-card .lfc-track path{fill:none;stroke:var(--lfc-accent);stroke-width:14;stroke-linecap:round}
.lfc-card .lfc-base{opacity:.2}
.lfc-card .lfc-arc{stroke-dasharray:0 100}
.lfc-card .lfc-tip{fill:var(--lfc-accent)}
.lfc-card .lfc-dot{fill:#effff8}
.lfc-card .lfc-copy{margin:0;color:var(--lfc-accent);font-size:14px;overflow-wrap:anywhere}
.lfc-card .lfc-copy span{font-weight:400;color:var(--lfc-text);opacity:.8}
.lfc-card .lfc-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:13px;flex-wrap:wrap}
.lfc-card .lfc-footer time,.lfc-card .lfc-duration-label{font-size:12px;opacity:.8}
.lfc-card .lfc-book{display:inline-flex;align-items:center;min-height:44px;padding:8px 0 8px 8px;color:var(--lfc-accent);font-size:14px;text-decoration:none;font-family:inherit;overflow-wrap:anywhere}
.lfc-card .lfc-book:hover{color:var(--lfc-text)}
.lfc-card .lfc-toggle{position:absolute;right:0;top:-54px;display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid var(--lfc-accent);border-radius:50%;background:var(--lfc-background);color:var(--lfc-accent);cursor:pointer;box-shadow:none}
.lfc-card .lfc-toggle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.5}
.lfc-card .lfc-toggle[aria-expanded=false] svg{transform:rotate(180deg)}
.lfc-card.is-collapsed{width:44px;height:44px;border-radius:50%}
.lfc-card.is-collapsed .lfc-toggle{top:0}
.lfc-card .lfc-status,.lfc-card .lfc-warning{font-size:14px;color:var(--lfc-text);margin:12px 0;overflow-wrap:anywhere}
.lfc-card [hidden],.lfc-card[hidden]{display:none!important}
.lfc-card a:focus-visible,.lfc-card button:focus-visible{outline:3px solid var(--lfc-text);outline-offset:3px}
@media(max-width:1024px){.lfc-card{--lfc-width:340px;--lfc-gap:20px;--lfc-bottom:20px}}
@media(max-width:767px){.lfc-card{--lfc-width:310px;--lfc-gap:12px;--lfc-bottom:12px}.lfc-card .lfc-panel{padding:20px 16px 12px}.lfc-card .lfc-unit>span{font-size:21px}.lfc-card .lfc-brand{font-size:15px}}

/* Subtle outer glow while seconds are counting. */
.lfc-card.is-counting [data-time="seconds"]{color:var(--lfc-text);text-shadow:0 0 5px var(--lfc-accent),0 0 12px color-mix(in srgb,var(--lfc-accent) 45%,transparent)}
.lfc-linear{display:none}
.lfc-card[data-layout=banner]{--lfc-banner-width:1000px;--lfc-banner-height:320px;width:min(var(--lfc-banner-width),calc(100vw - var(--lfc-gap) - var(--lfc-gap)));border-radius:18px}
.lfc-card[data-layout=banner] .lfc-panel{position:relative;min-height:var(--lfc-banner-height);padding:28px;display:flex;align-items:center;justify-content:flex-end;background:none;overflow:hidden;max-height:none}
.lfc-banner-image{position:absolute;inset:0;display:block;z-index:-1;border-radius:inherit;overflow:hidden}
.lfc-banner-image img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}
.lfc-card[data-layout=banner] .lfc-content{width:51%;min-width:0;position:relative}
.lfc-card[data-layout=banner] .lfc-header{display:block}
.lfc-card[data-layout=banner] .lfc-time{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;flex-wrap:nowrap}
.lfc-card[data-layout=banner] .lfc-unit{min-width:0;padding:16px 4px 12px;border:1px solid #ffffff80;border-radius:16px;background:linear-gradient(180deg,#263c3de6,var(--lfc-accent));box-shadow:0 5px 16px #0001}
.lfc-card[data-layout=banner] .lfc-unit>span{font-size:clamp(24px,4vw,56px);font-weight:400;overflow-wrap:anywhere}
.lfc-card[data-layout=banner] .lfc-unit small{font-size:14px;opacity:1}
.lfc-card[data-layout=banner] .lfc-unit:not(:last-child):after{right:-13px;top:22%;color:#fff;text-shadow:0 1px 4px #0005;font-size:32px}
.lfc-card[data-layout=banner] .lfc-track{display:none}
.lfc-card[data-layout=banner] .lfc-linear{display:block;height:9px;border-radius:9px;background:#ffffffb3;overflow:hidden;margin:20px 0 12px}
.lfc-card[data-layout=banner] .lfc-linear span{display:block;height:100%;width:0;background:var(--lfc-accent);border-radius:inherit}
.lfc-card[data-layout=banner] .lfc-brand{max-width:none;margin:0 0 10px;text-align:right;order:0}
.lfc-card[data-layout=banner] .lfc-book{background:linear-gradient(120deg,#397e78,var(--lfc-accent));border:1px solid #fff6;border-radius:28px;padding:8px 25px;min-height:44px;font-size:22px;color:#fff;justify-content:center;box-shadow:0 4px 14px #0002;margin-left:auto}
.lfc-card[data-layout=banner] .lfc-footer time,.lfc-card[data-layout=banner] .lfc-duration-label,.lfc-card[data-layout=banner] .lfc-copy,.lfc-card[data-layout=banner] .lfc-status{background:#102b24d9;color:#fff;opacity:1;border-radius:8px;padding:6px 10px}
.lfc-card[data-layout=banner]:not([data-banner-copy=yes]) .lfc-brand,.lfc-card[data-layout=banner]:not([data-banner-copy=yes]) .lfc-copy,.lfc-card[data-layout=banner]:not([data-banner-copy=yes]) .lfc-footer time,.lfc-card[data-layout=banner]:not([data-banner-copy=yes]) .lfc-duration-label{display:none}
.lfc-card[data-layout=banner].is-collapsed{width:44px;height:44px;border-radius:50%}
@media(max-width:1024px){.lfc-card[data-layout=banner]{--lfc-banner-width:720px;--lfc-banner-height:280px}.lfc-card[data-layout=banner] .lfc-panel{padding:20px}.lfc-card[data-layout=banner] .lfc-content{width:53%}.lfc-card[data-layout=banner] .lfc-time{gap:10px}.lfc-card[data-layout=banner] .lfc-unit:not(:last-child):after{right:-9px;font-size:24px}}
@media(max-width:767px){.lfc-card[data-layout=banner]{--lfc-banner-width:360px;--lfc-banner-height:340px}.lfc-card[data-layout=banner] .lfc-panel{padding:140px 14px 14px;align-items:flex-end}.lfc-card[data-layout=banner] .lfc-content{width:100%}.lfc-card[data-layout=banner] .lfc-unit{border-radius:12px;padding:12px 2px 10px}.lfc-card[data-layout=banner] .lfc-unit>span{font-size:30px}.lfc-card[data-layout=banner] .lfc-unit small{font-size:12px}.lfc-card[data-layout=banner] .lfc-linear{margin:12px 0 8px}.lfc-card[data-layout=banner] .lfc-book{font-size:18px}.lfc-card[data-layout=banner] .lfc-footer{margin-top:8px}}

/* Shared digit color; glow never overrides the seconds foreground. */
.lfc-card .lfc-unit>span[data-time]{color:var(--lfc-text)}
.lfc-card.is-counting [data-time="seconds"]{text-shadow:0 0 5px color-mix(in srgb,var(--lfc-text) 45%,transparent),0 0 12px color-mix(in srgb,var(--lfc-text) 25%,transparent)}
.lfc-card[data-layout=banner] .lfc-panel{padding-top:var(--lfc-top-space,28px)}
@media(max-width:1024px){.lfc-card[data-layout=banner] .lfc-panel{padding-top:var(--lfc-top-space,20px)}}
@media(max-width:767px){
.lfc-card[data-layout=banner]{--lfc-banner-height:220px}
.lfc-card[data-layout=banner] .lfc-panel{padding:var(--lfc-top-space,12px) 14px 12px}
.lfc-card[data-layout=banner] .lfc-unit{padding:8px 2px}
.lfc-card[data-layout=banner] .lfc-unit>span{font-size:28px}
.lfc-card[data-layout=banner] .lfc-linear{margin:10px 0 6px}
}

/* Scale from the selected fixed corner without moving the card away from the edge. */
.lfc-card{--lfc-scale:.7;transform:scale(var(--lfc-scale));transform-origin:bottom right}
.lfc-card[data-side=left]{transform-origin:bottom left}
.lfc-card.is-collapsed{transform:none}
@media(max-width:1024px){.lfc-card{--lfc-scale:.85}}
@media(max-width:767px){.lfc-card{--lfc-scale:1}}
