/* New cart page "Night sky" (inc/fm-cart.php) 2026-10-29
   Loaded after assets/css/fm-checkout.css, which brings the bag, add-on, code and toast parts and the --ck-* colours.
   Normal theme header and footer around it. Phones first, desktop from 900px. */

.fm-cart-body .page-content { padding-top: 0 !important; }
.fm-cartpg { font-family: Poppins, system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ck-text); font-size: 15px; line-height: 1.5; padding-bottom: 48px; }
.fm-cartpg *, .fm-cartpg *::before, .fm-cartpg *::after { box-sizing: border-box; }
.fm-cartpg button, .fm-cartpg input, .fm-cartpg select { font-family: inherit; }
.fm-cartpg button { cursor: pointer; }
.fm-cartpg img { max-width: 100%; height: auto; display: block; }
.fm-cartpg h1, .fm-cartpg h2 { font-family: inherit; letter-spacing: 0; text-transform: none; }
.fm-cartpg :focus-visible { outline: 2px solid var(--ck-gold); outline-offset: 2px; }
.fm-cartpg .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.fm-cartpg.is-busy .fm-cart-hero-cta, .fm-cartpg.is-busy .fm-cart-totals { opacity: .6; transition: opacity .2s; }
.woocommerce-notices-wrapper:empty { display: none; }

/* ---------- night hero ---------- */
.fm-cart-hero { position: relative; overflow: hidden; background: var(--ck-brown); color: #f3ebe2; border-radius: 0 0 32px 32px; padding: 28px 24px 30px; margin: 0 calc(50% - 50vw) 22px; }
.fm-cart-hero.fm-cart-in .fm-cart-hero-in { animation: fmckRise .5s var(--ck-ease) both; }
.fm-cart-star { position: absolute; border-radius: 50%; background: var(--ck-gold-l); animation: fmcartTwinkle 3.4s ease-in-out infinite; }
.fm-cart-hero-in { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; max-width: 1180px; margin: 0 auto; }
.fm-cart-moon { position: relative; width: 120px; height: 120px; flex: none; }
.fm-cart-moon-disc { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: var(--ck-gold-l); animation: fmcartGlow 3.2s ease-in-out infinite; }
.fm-cart-moon-disc i { position: absolute; border-radius: 50%; background: rgba(168,116,63,.2); }
.fm-cart-moon-disc i:nth-child(1) { left: 24%; top: 28%; width: 20px; height: 20px; }
.fm-cart-moon-disc i:nth-child(2) { left: 58%; top: 56%; width: 26px; height: 26px; }
.fm-cart-moon-disc i:nth-child(3) { left: 62%; top: 22%; width: 11px; height: 11px; }
.fm-cart-moon-disc b { position: absolute; inset: 0; border-radius: 50%; background: #3a2c22; transition: transform .8s var(--ck-ease); }
.fm-cart-hero.is-empty .fm-cart-moon-disc { animation: none; }
.fm-cart-hero.is-empty .fm-cart-moon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(226,191,138,.5); }
.fm-cart-hero-txt { display: flex; flex-direction: column; align-items: center; width: 100%; }
.fm-cart-kicker { margin: 0; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ck-gold-l); }
#fm-cart-title:focus { outline: none; }
.fm-cart-hero h1 { margin: 6px 0 0; font-size: 28px; line-height: 1.2; font-weight: 600; color: #fff9f2; }
.fm-cart-sub { margin: 8px 0 0; max-width: 420px; font-size: 15px; line-height: 1.6; color: #e6d6c4; }
.fm-cart-free { width: 100%; max-width: 420px; margin-top: 18px; }
.fm-cart-bar { height: 8px; border-radius: 999px; background: rgba(226,191,138,.18); overflow: hidden; }
.fm-cart-bar i { display: block; height: 100%; border-radius: 999px; background: var(--ck-gold-l); transition: width .7s var(--ck-ease); }
.fm-cart-hero.fm-cart-in .fm-cart-bar i { animation: fmckGrow .9s .2s var(--ck-ease) both; }
.fm-cart-hero.is-free .fm-cart-bar i { background: #8fd19a; }
.fm-cart-region { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0 0; font-size: 13px; font-weight: 400; color: #c9b49a; }
.fm-cartpg .fm-cart-region select { -webkit-appearance: none; appearance: none; height: 40px; max-width: 220px; padding: 0 32px 0 14px; margin: 0; border: 1px solid rgba(226,191,138,.4); border-radius: 999px; background: rgba(255,255,255,.08); color: #fff9f2; font-size: 13px; font-weight: 600; box-shadow: none; }
.fm-cartpg .fm-cart-region select option { color: var(--ck-brown); background: #fff; }
.fm-cart-region svg { position: absolute; right: 12px; pointer-events: none; color: var(--ck-gold-l); }
.fm-cart-selwrap { position: relative; display: inline-flex; align-items: center; }
.fm-cart-min { margin: 6px 0 0; font-size: 12px; color: #c9b49a; }
.fm-cart-min .amount, .fm-cart-min bdi { color: inherit; }
.fm-cart-hero-cta { width: 100%; display: flex; flex-direction: column; gap: 10px; transition: opacity .2s; }
.fm-cart-sum { display: flex; justify-content: space-between; align-items: baseline; padding: 0 6px; }
.fm-cart-sum > span { font-size: 13px; color: #c9b49a; }
.fm-cart-sum b { font-size: 22px; font-weight: 600; color: #fff9f2; }
.fm-cart-sum b .amount, .fm-cart-sum b bdi { color: inherit; }
.fm-cart-secure { margin: 0; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: #c9b49a; }
.fm-cart-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.fm-cart-chips a { height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(226,191,138,.35); background: rgba(255,255,255,.06); color: #f3ebe2; font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; text-decoration: none; transition: border-color .2s; }
.fm-cart-chips a:hover { border-color: var(--ck-gold-l); color: #fff; text-decoration: none; }

/* the clay button */
.fm-cart-btn { position: relative; overflow: hidden; height: 56px; border: 0; border-radius: 999px; background: var(--ck-gold); color: #fff !important; font-weight: 600; font-size: 16px; box-shadow: 0 8px 20px rgba(204,153,102,.35); display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; text-decoration: none !important; transition: transform .15s, background .2s; }
.fm-cart-btn:hover { background: var(--ck-gold-h); }
.fm-cart-btn:active { transform: scale(.97); }
.fm-cart-btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 34%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent); animation: fmckSweep 3.4s ease-in-out infinite; }

/* ---------- columns ---------- */
.fm-cart-cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.fm-cart-main { flex: 999 1 560px; min-width: 0; }
.fm-cart-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.fm-cart-card { background: #fff; border: 1px solid var(--ck-edge); border-radius: 22px; box-shadow: 0 10px 30px rgba(0,0,0,.06); padding: 20px; }
.fm-cart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 4px 10px; }
.fm-cart-head h2, .fm-cart-summary h2, .fm-cart-best h2 { margin: 0; font-size: 16px; font-weight: 600; color: var(--ck-brown); }
.fm-cart-back { display: none; min-height: 44px; align-items: center; font-size: 13px; font-weight: 500; color: var(--ck-gold-t); text-decoration: none; }
.fm-cart-back:hover { color: var(--ck-gold-h); }
.fm-cart-msg { margin: 0 0 10px; padding: 10px 16px; border-radius: 16px; background: #fbeaec; color: var(--ck-red); font-size: 13px; }
.fm-cart-msg[hidden] { display: none; }
.fm-cart-hooks { width: 100%; margin: 0; border: 0; }
.fm-cart-hooks td { padding: 0; border: 0; }
.fm-cart-actions .actions:empty, .fm-cart-hooks .actions > input[type="hidden"]:only-child { padding: 0; }
.fm-cart-addcard { margin-top: 16px; overflow: hidden; }
.fm-cart-addcard .fm-ck-addons { margin-top: 0; }

/* summary */
.fm-cart-summary h2 { margin-bottom: 8px; }
.fm-cart-rows { width: 100%; margin: 0; border: 0; border-collapse: collapse; }
.fm-cart-rows th, .fm-cart-rows td { padding: 5px 0; border: 0; background: none; font-size: 14px; font-weight: 400; color: var(--ck-body); vertical-align: baseline; }
.fm-cart-rows td { text-align: right; color: var(--ck-brown); }
.fm-cart-rows .is-disc td, .fm-cart-rows td.is-free { color: var(--ck-green); font-weight: 500; }
.fm-cart-rows td.is-later { color: var(--ck-muted); font-size: 13px; }
.fm-cart-rows .fm-cart-total th, .fm-cart-rows .fm-cart-total td { padding-top: 14px; border-top: 1px solid var(--ck-line); font-weight: 600; color: var(--ck-brown); }
.fm-cart-rows .fm-cart-total th { font-size: 15px; }
.fm-cart-rows .fm-cart-total td { font-size: 22px; }
.fm-cartpg .fm-ck-codebox input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; margin: 0; border: 1px solid var(--ck-line); border-radius: 999px; background: #fff; font-size: 14px; text-transform: uppercase; box-shadow: none; }
.fm-cartpg .fm-ck-codebox input:focus { border-color: var(--ck-gold); outline: none; box-shadow: 0 0 0 3px rgba(204,153,102,.2); }
.fm-cart-summary .wc-proceed-to-checkout { margin-top: 16px; padding: 0; }
.fm-cart-summary .wc-proceed-to-checkout > * + * { margin-top: 10px; }

/* WhatsApp */
.fm-cart-wa { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 18px 10px 10px; border-radius: 999px; background: #128c4b; color: #fff !important; text-decoration: none !important; box-shadow: 0 8px 18px rgba(18,140,75,.25); transition: background .2s, transform .15s; }
.fm-cart-wa:hover { background: #0f7a41; }
.fm-cart-wa:active { transform: scale(.97); }
.fm-cart-wa-ic { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; flex: none; }
.fm-cart-wa b { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.fm-cart-wa small { display: block; font-size: 12px; opacity: .9; }

/* empty bag */
.fm-cart-best { margin-bottom: 24px; }
.fm-cart-best h2 { margin: 0 4px 14px; }
.fm-cart-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fm-cart-tile { display: flex; flex-direction: column; gap: 6px; color: var(--ck-brown) !important; text-decoration: none !important; }
.fm-cart-tile-img { display: block; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--ck-bg3); }
.fm-cart-tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ck-ease); }
.fm-cart-tile:hover .fm-cart-tile-img img { transform: scale(1.04); }
.fm-cart-tile-n { font-size: 13px; font-weight: 500; line-height: 1.35; }
.fm-cart-tile-p { font-size: 12px; color: var(--ck-muted); }
.fm-cart-isempty .fm-cart-wa { max-width: 460px; }

@media (min-width: 900px) {
	.fm-cart-hero { border-radius: 28px; padding: 40px 48px; margin: 24px 0; }
	.fm-cart-hero-in { flex-direction: row; text-align: left; gap: 40px; }
	.fm-cart-hero-txt { flex: 1; min-width: 0; align-items: flex-start; }
	.fm-cart-region { justify-content: flex-start; }
	.fm-cart-hero h1 { font-size: 32px; }
	.fm-cart-hero-cta { width: 320px; flex: none; }
	.fm-cart-hero.is-empty .fm-cart-chips { justify-content: flex-start; }
	.fm-cart-back { display: inline-flex; }
	.fm-cart-side { position: sticky; top: 100px; }
	.fm-cart-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@keyframes fmcartTwinkle { 0%, 100% { opacity: .2; } 50% { opacity: .9; } }
@keyframes fmcartGlow { 0%, 100% { box-shadow: 0 0 40px 6px rgba(226,191,138,.28); } 50% { box-shadow: 0 0 72px 18px rgba(226,191,138,.5); } }

@media (prefers-reduced-motion: reduce) {
	.fm-cartpg *, .fm-cartpg *::before, .fm-cartpg *::after { animation: none !important; transition: none !important; }
}

/* Weltentanzer 2026-11-04: no free delivery meter (is-logo) - a full moon with the logo in it instead of an empty moon */
.fm-cart-hero.is-logo .fm-cart-moon-disc b { transform: translateX(110%) !important; }
.fm-cart-hero.is-logo .fm-cart-moon-disc i { display: none; }
.fm-cart-hero.is-logo .fm-cart-moon-disc::after { content: ""; position: absolute; inset: 14%; background: #7a522c; -webkit-mask: url(../images/icon-bw.png) center / contain no-repeat; mask: url(../images/icon-bw.png) center / contain no-repeat; opacity: .85; }

/* Weltentanzer: "inkl. MwSt." under the totals */
.fm-incl-vat { display: block; margin-top: 1px; font-size: 11px; font-weight: 400; line-height: 1.2; letter-spacing: 0; opacity: .7; text-align: right; }
.fm-ck-navinfo .fm-incl-vat { order: 3; flex-basis: 100%; }

/* "You save …" (fm_save_pill(), inc/fm-combo.php): sale prices + add-on + combo + codes + free delivery */
.fm-save-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 14px; background: #e7f6ec; color: #1e7a45; font-size: 12.5px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.fm-save-pill svg { flex: none; }
.fm-save-pill .woocommerce-Price-amount, .fm-save-pill bdi { color: inherit; font-weight: 700; }
tr.fm-save-tr td { padding-top: 4px !important; text-align: right !important; border: 0 !important; background: none !important; }
.fm-save-pill.is-hero { align-self: flex-end; margin-top: -2px; background: rgba(154,212,173,.18); color: #9ad4ad; }
.fm-ck-navsave:empty { display: none; }
.fm-ck-navsave { order: 4; flex-basis: 100%; text-align: right; }
.fm-save-pill.is-nav { padding: 3px 10px; font-size: 11.5px; }
