/* Module cards in the restaurant panel (module-cards.js, owner 22.11.2026): state first, then facts, then actions. */
.mc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:14px}
.mc-grid.mc-single{grid-template-columns:minmax(0,520px)}
.mc-card{position:relative;display:flex;flex-direction:column;gap:10px;padding:16px 16px 16px 20px;border:1px solid #e8e4da;border-radius:16px;background:#fff;box-sizing:border-box;min-width:0}
.mc-card::before{content:"";position:absolute;left:0;top:14px;bottom:14px;width:5px;border-radius:0 4px 4px 0;background:#d9d4ca}
.mc-active::before{background:#2e8b45}
.mc-ending::before{background:#d08a12}
.mc-expired::before{background:#b8402f}
.mc-soon{background:#faf9f6}
.mc-head{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:10px}
.mc-icon{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:#f1efe9;color:#1d2420;font-size:18px}
.mc-active .mc-icon{background:#e5f1e3;color:#245f27}
.mc-name{margin:0;font-size:16px;line-height:1.3;font-weight:700;color:#1d2420;overflow-wrap:anywhere}
.mc-badge{padding:5px 12px;border-radius:999px;font-size:13px;font-weight:700;white-space:nowrap;background:#f1efe9;color:#3d3a35}
.mc-active .mc-badge{background:#e5f1e3;color:#1f6b33}
.mc-ending .mc-badge{background:#fdf0d5;color:#8a5600}
.mc-expired .mc-badge{background:#fbe5e1;color:#9a2f22}
.mc-say{margin:0;font-size:15px;line-height:1.45;font-weight:600;color:#1d2420}
.mc-since{margin:-4px 0 0;font-size:13px;color:#5d6762}
.mc-facts{display:grid;gap:4px;font-size:13px;color:#5d6762}
.mc-fact{position:relative;margin:0;padding:0 0 0 14px;line-height:1.4}
.mc-fact::before{content:"•";position:absolute;left:2px}
.mc-desc{margin:0;font-size:13px;line-height:1.45;color:#5d6762}
.mc-more{color:#5d6762;text-decoration:underline;text-underline-offset:2px}
.mc-note{margin:0;font-size:13px;color:#6b5a3a}
.mc-result{margin:0;font-size:14px;font-weight:600;line-height:1.4}
.mc-result:empty{display:none}
.mc-good{padding:8px 10px;border-radius:10px;background:#e8f4e6;color:#1f6b33}
.mc-bad{padding:8px 10px;border-radius:10px;background:#fbe5e1;color:#9a2f22}
.mc-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:auto}
.mc-btn{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 16px;border-radius:10px;font:inherit;font-size:14px;font-weight:600;cursor:pointer;text-decoration:none;box-sizing:border-box}
.mc-primary,.mc-open{border:0;background:#b35400;color:#fff}
.mc-secondary{border:1px solid #cfc9be;background:#fff;color:#1d2420}
.mc-danger{border:1px solid #b8402f;background:#fff;color:#9a2f22}
.mc-confirm .mc-danger{background:#b8402f;color:#fff}
.mc-btn:disabled{opacity:.5;cursor:default}
.mc-busy{font-size:14px;color:#5d6762}
.mc-confirm{display:grid;gap:8px;padding:12px;border-radius:12px;background:#faf8f3;border:1px solid #ece6da}
.mc-confirm h4{margin:0;font-size:15px}
.mc-confirm p{margin:0;font-size:14px;line-height:1.45}
.mc-confirm-price{font-weight:600}
.mc-terms{display:flex;align-items:flex-start;gap:10px;font-size:14px;line-height:1.4;cursor:pointer}
.mc-terms input{width:20px;height:20px;margin:0;flex:0 0 auto;accent-color:#b35400}
.mc-terms a{color:#b35400}
.mc-loading{margin:0;color:#5d6762}
@media(max-width:560px){.mc-grid,.mc-grid.mc-single{grid-template-columns:1fr}.mc-head{grid-template-columns:36px minmax(0,1fr)}.mc-badge{grid-column:1/-1;justify-self:start}.mc-btn{flex:1 1 auto}}
/* 23.11.2026 redesign (owner: names and purpose must be clear): purpose and "what you get" first, status/price in a quiet box. */
.mc-card{gap:12px;padding:18px 18px 18px 22px}
.mc-head{grid-template-columns:44px minmax(0,1fr) auto}
.mc-icon{width:44px;height:44px;border-radius:12px;background:#fbefe3;color:#b35400}
.mc-icon svg{display:block}
.mc-active .mc-icon{background:#e5f1e3;color:#1f6b33}
.mc-soon .mc-icon{background:#efede8;color:#6b675f}
.mc-name{font-size:17px;line-height:1.25}
.mc-purpose{margin:0;font-size:15px;line-height:1.45;font-weight:600;color:#1d2420}
.mc-includes{display:grid;gap:6px}
.mc-includes-title{margin:0;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#6b675f}
.mc-inc{position:relative;margin:0;padding-left:24px;font-size:14px;line-height:1.4;color:#2b322e}
.mc-inc::before{content:"";position:absolute;left:2px;top:3px;width:14px;height:14px;border-radius:50%;background:#e5f1e3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231f6b33' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat}
.mc-status{display:grid;gap:4px;padding:10px 12px;border-radius:12px;background:#f7f5f0;border:1px solid #ece6da}
.mc-status .mc-say{font-size:14px;font-weight:600}
.mc-status .mc-since{margin:0;font-size:13px}
.mc-price{margin:2px 0 0;font-size:15px;font-weight:700;color:#1d2420}
.mc-status .mc-fact{margin:0;padding:0;font-size:13px;color:#5d6762}
.mc-status .mc-fact::before{content:none}
.mc-desc{margin:-4px 0 0}
@media(max-width:560px){.mc-head{grid-template-columns:40px minmax(0,1fr)}.mc-icon{width:40px;height:40px}}
/* 23.11.2026: "what you get" folds away under the status box. */
.mc-fold{border-top:1px solid #ece6da;padding-top:8px}
.mc-fold-head{cursor:pointer;list-style:none;display:flex;align-items:center;gap:6px;font-size:13px;font-weight:700;color:#5d6762;padding:4px 0}
.mc-fold-head::-webkit-details-marker{display:none}
.mc-fold-head::before{content:"";width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);transition:transform .15s}
.mc-fold[open] .mc-fold-head::before{transform:rotate(45deg)}
.mc-fold .mc-inc{margin:6px 0 0}
.mc-fold .mc-desc{margin:8px 0 0}
/* Stripe billing (owner 23.11.2026): payment line on the card, invoice list under the cards */
.mc-billing{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.mc-billing .mc-btn{margin:0}
.mc-invoices{margin-top:24px;border-top:1px solid rgba(15,23,42,.08);padding-top:16px}
.mc-inv-title{margin:0 0 10px;font-size:16px;font-weight:700}
.mc-inv-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.mc-inv{display:grid;grid-template-columns:minmax(130px,1.2fr) 1fr 1fr 1.2fr auto;gap:10px;align-items:center;padding:10px 12px;border:1px solid rgba(15,23,42,.08);border-radius:10px;background:#fff;font-size:14px}
.mc-inv-no{font-weight:600;font-variant-numeric:tabular-nums}
.mc-inv-sum{font-variant-numeric:tabular-nums;text-align:right}
.mc-inv-pdf{font-weight:600;text-decoration:none;color:inherit;border:1px solid rgba(15,23,42,.15);border-radius:8px;padding:4px 10px}
@media (max-width:600px){.mc-inv{grid-template-columns:1fr auto;row-gap:2px}.mc-inv-date,.mc-inv-how{font-size:12px;opacity:.75}.mc-inv-sum{text-align:left}.mc-inv-pdf{grid-row:1/span 2;grid-column:2}}
/* Billing details + payment method (owner 23.11.2026) */
.mc-account-card{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;align-items:flex-start;padding:12px 14px;border:1px solid rgba(15,23,42,.08);border-radius:10px;background:#fff}
.mc-account-data{min-width:0;flex:1 1 220px}
.mc-account-line{margin:0 0 2px;font-size:14px;overflow-wrap:anywhere}
.mc-account-how{margin-top:6px;font-weight:600}
.mc-account .mc-fact{margin-top:8px}
/* Discount code in the confirm step + round feedback (owner 23.11.2026) */
.mc-coupon{margin:4px 0 10px}
.mc-coupon-toggle{background:none;border:0;padding:0;font:inherit;font-size:14px;font-weight:600;color:#c2410c;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.mc-coupon-row{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap}
.mc-coupon-input{flex:1 1 160px;min-width:0;padding:9px 11px;border:1px solid rgba(15,23,42,.2);border-radius:8px;font:inherit;text-transform:uppercase}
.mc-coupon-row .mc-btn{margin:0}
.mc-coupon-msg{margin:6px 0 0;font-size:13px}
.mc-was{opacity:.6;margin-right:4px}
.mc-busy{display:inline-flex;align-items:center;gap:10px}
.mc-spin{width:20px;height:20px;border-radius:50%;border:3px solid rgba(22,163,74,.2);border-top-color:#16a34a;animation:mc-rot .8s linear infinite;flex:none}
@keyframes mc-rot{to{transform:rotate(360deg)}}
.mc-card{position:relative}
.mc-done{position:absolute;inset:0;z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:rgba(255,255,255,.94);border-radius:inherit;animation:mc-fade .25s ease-out;text-align:center;padding:16px}
.mc-done-icon{width:72px;height:72px}
.mc-done-circle{fill:none;stroke-width:3;stroke-dasharray:151;stroke-dashoffset:151;animation:mc-draw .6s ease-out forwards}
.mc-done-mark{fill:none;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:40;stroke-dashoffset:40;animation:mc-draw .35s .55s ease-out forwards}
.mc-done-ok .mc-done-circle,.mc-done-ok .mc-done-mark,.mc-done-resume .mc-done-circle,.mc-done-resume .mc-done-mark{stroke:#16a34a}
.mc-done-end .mc-done-circle,.mc-done-end .mc-done-mark{stroke:#dc2626}
.mc-done-text{margin:0;font-size:16px;font-weight:700;animation:mc-fade .3s .7s both}
.mc-done-ok .mc-done-text,.mc-done-resume .mc-done-text{color:#15803d}
.mc-done-end .mc-done-text{color:#b91c1c}
@keyframes mc-draw{to{stroke-dashoffset:0}}
@keyframes mc-fade{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.mc-spin{animation-duration:2s}.mc-done-circle,.mc-done-mark{animation:none;stroke-dashoffset:0}}
.mc-then{display:block;margin-top:6px;font-weight:400;font-size:13px;opacity:.85}
/* 29.11.2026 owner: savings in green (with ✓ and words, colour-blind safe); contrast #1f6b33 on #e8f4e6 ≥ 4.5:1 */
.mc-interval .mc-was{margin-left:6px;text-decoration:line-through;opacity:.6}
.mc-gain{display:inline-block;margin-left:6px;padding:1px 8px;border-radius:10px;background:#e8f4e6;color:#1f6b33;border:1px solid #b9dcc6;font-size:12px;font-weight:600}
/* 29.11.2026 owner: friendly success graphic (own design, our colours; reduced motion respected) */
.mc-done .pn-success{display:block;width:120px;height:120px;margin:0 auto 4px}
.mc-done .pn-success-ring{fill:none;stroke:#8cc9a5;stroke-width:3;stroke-linecap:round;stroke-dasharray:2 8;transform-origin:60px 60px;animation:pn-ring 12s linear infinite}
.mc-done .pn-success-check{fill:none;stroke:#1f2a37;stroke-width:9;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:70;stroke-dashoffset:70;animation:pn-draw .5s .25s ease-out forwards}
.mc-done .pn-success-dot{transform-box:fill-box;transform-origin:center;transform:scale(0);animation:pn-pop .45s ease-out forwards}
.mc-done .pn-d1{fill:#2fa36b;animation-delay:.55s}.mc-done .pn-d2{fill:#e0a100;animation-delay:.7s}.mc-done .pn-d3{fill:#2fa36b;animation-delay:.85s}
@keyframes pn-draw{to{stroke-dashoffset:0}}@keyframes pn-pop{0%{transform:scale(0)}70%{transform:scale(1.2)}100%{transform:scale(1)}}@keyframes pn-ring{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.mc-done .pn-success-ring,.mc-done .pn-success-check,.mc-done .pn-success-dot{animation:none;stroke-dashoffset:0;transform:none}}
.mc-done .pn-success{width:96px;height:96px}
/* 29.11.2026 own app: yearly payment only – clearly visible */
.mc-year-only{font-weight:600;color:#7a3d06;background:#fff7ec;border:1px solid #f0c9a4;border-radius:8px;padding:6px 10px}
/* 03.12.2026 owner: subscribe/cancel confirmation in its own window over the page (not squeezed into the module card). */
.mc-dialog{width:min(520px,calc(100vw - 24px));max-height:calc(100vh - 32px);overflow:auto;padding:0;border:0;border-radius:16px;background:#fff;color:#2f3539;box-shadow:0 18px 50px rgba(20,24,28,.28)}
.mc-dialog::backdrop{background:rgba(20,24,28,.45)}
.mc-dialog-head{display:flex;align-items:center;gap:10px;padding:18px 22px 0}
.mc-dialog-head .mc-name{margin:0;font-size:18px}
.mc-dialog .mc-confirm{gap:12px;padding:14px 22px 22px;border:0;border-radius:0;background:transparent}
.mc-dialog .mc-confirm h4{font-size:16px}
.mc-dialog .mc-actions{justify-content:flex-end;gap:10px;margin-top:4px}
@media(max-width:600px){.mc-dialog{inset:auto 0 0 0;width:auto;max-width:none;max-height:92vh;margin:0;border-radius:16px 16px 0 0}.mc-dialog .mc-actions{display:grid;grid-template-columns:1fr 1fr}}
