/* 7Marvels cake designer. Colours and type follow the site (migrate/design/7marvels.css): ink, gold, ivory, hairlines,
   square buttons, Playfair Display headings and Lato text. Scoped to #marvels-cake; resets Flatsome's button and field styles. */
/* The preview's gold lettering, as in the prototype: Dancing Script Bold (topper) and Lato Black (number candle),
   bundled in fonts/ (SIL Open Font Licence, Latin subset) under their own names so the site's Lato is unaffected. */
@font-face { font-family: "Marvels Topper"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/dancing-script-700-latin.woff2) format("woff2"); }
@font-face { font-family: "Marvels Number"; font-style: normal; font-weight: 900; font-display: swap; src: url(fonts/lato-900-latin.woff2) format("woff2"); }
#marvels-cake {
    --ink: var(--7m-ink, #2b2623); --text: var(--7m-text, #4a4541); --gold: var(--7m-gold, #9e8451); --gold-text: var(--7m-gold-text, #806a3e);
    --ivory: var(--7m-ivory, #f7f2ea); --line: var(--7m-line, #e8e0d4); --muted: #706760;
    max-width: 1240px; margin: 0 auto; padding: 0 15px 60px; color: var(--text);
}
#marvels-cake button { margin: 0; min-height: 0; line-height: 1.3; text-transform: none; letter-spacing: normal; font: inherit; color: inherit; text-shadow: none; box-shadow: none; }
#marvels-cake input, #marvels-cake textarea { margin: 0; box-shadow: none; }
#marvels-cake label { font-weight: 400; }

/* Heading */
#marvels-cake .mc-hero { text-align: center; padding: 34px 0 24px; }
#marvels-cake .mc-kicker { font-size: .78em; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 10px; }
#marvels-cake .mc-hero h1 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 10px; }
#marvels-cake .mc-hero p { max-width: 40em; margin: 0 auto; }
#marvels-cake .marvels-kids-cta { margin-top: 18px; }   /* the way into /kids-cake-designer/ (style: 7marvels.css) */

/* Start from one of our cakes */
#marvels-cake .mc-presets-wrap { margin-bottom: 26px; }
#marvels-cake .mc-label { font-size: .78em; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
#marvels-cake .mc-presets { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
#marvels-cake .preset { flex: 0 0 150px; scroll-snap-align: start; border: 1px solid var(--line); background: #fff; padding: 0; text-align: left; cursor: pointer; transition: border-color .2s; }
#marvels-cake .preset:hover { border-color: var(--gold); }
#marvels-cake .preset img { width: 150px; height: 170px; object-fit: cover; display: block; }
#marvels-cake .preset span { display: block; font-size: 13px; padding: 9px 11px 11px; color: var(--ink); line-height: 1.3; }

#marvels-cake .mc-main { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 30px; align-items: start; }

/* Preview */
#marvels-cake .mc-stage { position: sticky; top: var(--mc-top, 20px); background: radial-gradient(120% 90% at 50% 0%, #fff 0%, #faf6ef 55%, #f1e9dc 100%); border: 1px solid var(--line); overflow: hidden; }
#marvels-cake .mc-preview svg { width: 100%; height: auto; display: block; }
#marvels-cake .mc-stage-foot { display: flex; justify-content: space-between; align-items: end; gap: 12px; padding: 6px 24px 16px; background: #e2d6c5; }
#marvels-cake .mc-what { font-size: 14px; line-height: 1.4; }
#marvels-cake .mc-what b { display: block; font-size: 16px; font-weight: 400; color: var(--ink); font-family: "Playfair Display", serif; }
#marvels-cake .mc-price { text-align: right; }
#marvels-cake .mc-price small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .16em; color: #5f5852; }   /* darker than --muted: it sits on the beige bar */
#marvels-cake .mc-total { font-family: "Playfair Display", serif; font-size: 32px; line-height: 1.1; color: var(--ink); }
#marvels-cake .pop { animation: mc-pop .45s cubic-bezier(.2, 1.4, .4, 1); transform-origin: 50% 90%; transform-box: fill-box; }
@keyframes mc-pop { from { transform: scale(.94); opacity: .6; } to { transform: scale(1); opacity: 1; } }
#marvels-cake .flame { animation: mc-flicker 1.3s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes mc-flicker { 0% { transform: scale(1, 1) skewX(0deg); } 40% { transform: scale(.92, 1.08) skewX(3deg); } 100% { transform: scale(1.04, .95) skewX(-3deg); } }
@media (prefers-reduced-motion: reduce) { #marvels-cake .pop, #marvels-cake .flame { animation: none; } }

/* Builder */
#marvels-cake .mc-builder { background: #fff; border: 1px solid var(--line); }
#marvels-cake .mc-steps { display: flex; padding: 0 10px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
#marvels-cake .mc-steps::-webkit-scrollbar { display: none; }
#marvels-cake .mc-steps button { flex: 1 0 auto; border: 0; background: none; padding: 14px 6px 12px; font-size: 13px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
#marvels-cake .mc-steps .n { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ivory); font-size: 11px; margin-right: 6px; color: var(--ink); }
#marvels-cake .mc-steps button.done .n { background: #e8dcc8; }
#marvels-cake .mc-steps button[aria-current="step"] { color: var(--ink); border-bottom-color: var(--gold); }
#marvels-cake .mc-steps button[aria-current="step"] .n { background: var(--ink); color: #fff; }
#marvels-cake .mc-panel { padding: 24px 26px 8px; min-height: 460px; }
#marvels-cake .mc-panel h2 { font-size: 26px; margin: 0 0 4px; }
#marvels-cake .mc-panel .lead { color: var(--muted); margin: 0 0 18px; font-size: 15px; }
#marvels-cake .mc-panel h3 { font-family: Lato, sans-serif; font-size: 12px; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); margin: 24px 0 10px; }

#marvels-cake .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
#marvels-cake .opt { position: relative; border: 1px solid var(--line); background: #fff; padding: 12px; text-align: left; cursor: pointer; transition: border-color .15s; }
#marvels-cake .opt:hover { border-color: var(--gold); }
#marvels-cake .opt[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #fdfbf7; }
#marvels-cake .opt[aria-pressed="true"]::after { content: "✓"; position: absolute; top: 8px; right: 10px; font-size: 12px; color: var(--ink); }
#marvels-cake .opt .t { display: block; font-size: 14px; color: var(--ink); }
#marvels-cake .opt .s { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
#marvels-cake .opt .p { display: block; font-size: 12px; color: var(--gold-text); margin-top: 6px; letter-spacing: .02em; }
#marvels-cake .opt svg.icon { width: 100%; height: 64px; display: block; margin-bottom: 6px; }
#marvels-cake .opt .dot { width: 26px; height: 26px; border-radius: 50%; display: block; margin-bottom: 8px; box-shadow: inset 0 -3px 6px rgba(0, 0, 0, .15); }

#marvels-cake .swatches { display: flex; flex-wrap: wrap; gap: 10px; }
#marvels-cake .sw { width: 40px; height: 40px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; position: relative; }
#marvels-cake .sw[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
#marvels-cake .sw.custom { background: conic-gradient(#f4c6cf, #f6e7a1, #bfe3cf, #bcd6ee, #cdb8e6, #f4c6cf); overflow: hidden; margin: 0; }
#marvels-cake .sw.custom input { opacity: 0; position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; padding: 0; border: 0; }

#marvels-cake .chips { display: flex; flex-wrap: wrap; gap: 8px; }
#marvels-cake .sub .chips { margin-top: 10px; }
#marvels-cake .chip { border: 1px solid var(--line); background: #fff; padding: 6px 14px 6px 6px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: var(--ink); }
#marvels-cake .chip:hover { border-color: var(--gold); }
#marvels-cake .chip img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
#marvels-cake .chip[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #fdfbf7; }
#marvels-cake .chip.plain { padding: 9px 14px; }
#marvels-cake .board-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }

#marvels-cake .sub { background: var(--ivory); padding: 14px 16px; margin-top: 12px; font-size: 14px; }
#marvels-cake .sub b { font-weight: 400; color: var(--ink); }
#marvels-cake .mc-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
#marvels-cake label.f { display: block; font-size: 14px; color: var(--ink); margin: 16px 0 6px; }
#marvels-cake .sub label.f { margin-top: 0; }
#marvels-cake input[type=text], #marvels-cake input[type=date], #marvels-cake textarea { width: 100%; height: auto; border: 1px solid var(--line); padding: 11px 13px; background: #fff; font-size: 16px; color: var(--ink); }
#marvels-cake input.short { max-width: 220px; }
#marvels-cake input:focus, #marvels-cake textarea:focus { border-color: var(--gold); outline: 0; box-shadow: 0 0 0 3px rgba(158, 132, 81, .15); }
#marvels-cake button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
#marvels-cake .stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); background: #fff; }
#marvels-cake .stepper button { border: 0; background: none; width: 38px; height: 38px; font-size: 18px; cursor: pointer; }
#marvels-cake .stepper output { min-width: 34px; text-align: center; color: var(--ink); }
#marvels-cake .hint { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
#marvels-cake .hint-top { margin: -4px 0 10px; }
#marvels-cake #mc-date-hint { color: #a3452f; min-height: 1em; }

#marvels-cake .mc-bar { display: flex; justify-content: flex-end; align-items: center; padding: 16px 26px 22px; border-top: 1px solid var(--line); margin-top: 18px; gap: 12px; }
#marvels-cake .btn { border: 1px solid var(--ink); padding: 13px 26px; cursor: pointer; background: var(--ink); color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; transition: background-color .2s, border-color .2s; }
#marvels-cake .btn:hover { background: var(--gold-text); border-color: var(--gold-text); }
#marvels-cake .mc-back { margin-right: auto; }
#marvels-cake .btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
#marvels-cake .btn.ghost:hover { border-color: var(--ink); }
#marvels-cake [hidden] { display: none !important; }
#marvels-cake .basket { margin: 22px 0 0; }
#marvels-cake .basket .btn { width: 100%; padding: 16px 26px; }
#marvels-cake .mc-links { justify-content: space-between; margin-top: 14px; }
#marvels-cake .link { border: 0; background: none; padding: 4px 0; cursor: pointer; font-size: 14px; color: var(--gold-text); text-decoration: underline; text-underline-offset: 3px; }
#marvels-cake .link:hover { color: var(--ink); }

#marvels-cake table.bill { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0; }
#marvels-cake table.bill td { padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text); }
#marvels-cake table.bill td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
#marvels-cake table.bill tr.total td { border-bottom: 0; border-top: 1px solid var(--ink); font-family: "Playfair Display", serif; font-size: 22px; color: var(--ink); padding-top: 12px; }
#marvels-cake .note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
#marvels-cake .mc-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(30px); background: var(--ink); color: #fff; padding: 10px 18px; font-size: 14px; opacity: 0; transition: .25s; pointer-events: none; z-index: 100; }
#marvels-cake .mc-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 849px) {
    #marvels-cake .mc-hero { padding: 22px 0 16px; }
    #marvels-cake .mc-main { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    #marvels-cake .mc-stage { top: var(--mc-top, 0); z-index: 5; margin: 0 -15px; border-width: 0 0 1px; }
    #marvels-cake .mc-preview svg { max-height: 30vh; }
    #marvels-cake .mc-stage-foot { padding: 4px 16px 10px; }
    #marvels-cake .mc-total { font-size: 24px; }
    #marvels-cake .mc-builder { margin: 0 -15px; border-width: 1px 0; }
    #marvels-cake .mc-panel { padding: 20px 16px 6px; min-height: 0; }
    #marvels-cake .mc-bar { padding: 14px 16px 18px; }
    #marvels-cake .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
