/* ---------- festival cart (js/cart.js): the bag in the top bar, the side panel, the "added" note ---------- */
.cart-panel svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* the bag: the same navy outline square as the WhatsApp icon beside it */
.bar .act-cart { position: relative; width: 32px; height: 32px; padding: 0; align-self: center; border: 0; border-radius: 7px; cursor: pointer; animation: none; color: #1E3A6E; }   /* background and ring: the glass rule for all bar icons in site.css */
.bar .act-cart svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.bar .act-cart:hover { transform: none; }
.cart-n { position: absolute; top: -7px; inset-inline-start: -7px; min-width: 18px; height: 18px; padding: 0 4px; box-sizing: border-box; display: grid; place-items: center; border-radius: 99px; font: 600 11px/1 "Heebo", sans-serif; color: #fff; background: linear-gradient(90deg, #4DB5FF, #5A8DFF); box-shadow: 0 0 0 2px #fff, 0 4px 8px -3px rgba(77, 141, 255, .8); transform: scale(0); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.act-cart.has .cart-n { transform: scale(1); }
.act-cart.bump { animation: cart-bump .5s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes cart-bump { 30% { transform: scale(1.18) rotate(-6deg); } 60% { transform: scale(.95) rotate(3deg); } }
@media (max-width: 760px) { .bar .act-cart { width: 28px; height: 28px; } .bar .act-cart svg { width: 17px; height: 17px; } }

/* the panel slides in from the left (the page reads right to left; the summary side) */
.cart-panel { position: fixed; inset: 0; z-index: 70; }
.cart-panel[hidden] { display: none; }
.cart-scrim { position: absolute; inset: 0; background: rgba(1, 20, 40, .35); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s; }
.cart-box { position: absolute; top: 10px; bottom: 10px; left: 10px; width: min(430px, calc(100% - 20px)); box-sizing: border-box; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; border-radius: 24px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .82), rgba(240, 248, 252, .7)); border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: inset 0 1.5px 0 #fff, 0 30px 60px -20px rgba(1, 28, 64, .55); -webkit-backdrop-filter: blur(30px) saturate(190%); backdrop-filter: blur(30px) saturate(190%);
  transform: translateX(-108%); transition: transform .38s cubic-bezier(.22, 1, .36, 1); font-family: "Heebo", "Segoe UI", Arial, sans-serif; }
.cart-panel.on .cart-scrim { opacity: 1; }
.cart-panel.on .cart-box { transform: none; }
html.cart-open { overflow: hidden; }
.cart-box header { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 12px; }
.cart-box h2 { margin: 0; font: 400 30px/1 var(--title); color: #023859; }
.cart-x { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; color: #023859; background: rgba(255, 255, 255, .7); box-shadow: inset 0 1px 0 #fff, 0 4px 10px -6px rgba(1, 28, 64, .4); }
.cart-x svg { width: 18px; height: 18px; }
.cart-list { margin: 0; padding: 4px 16px 12px; list-style: none; overflow-y: auto; display: grid; align-content: start; gap: 10px; }
.cart-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t rm" "q p"; align-items: center; gap: 10px 12px; padding: 14px 14px 12px; border-radius: 16px; background: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .9); box-shadow: inset 0 1px 0 #fff, 0 6px 14px -10px rgba(1, 28, 64, .35); }
.cart-t { grid-area: t; display: grid; gap: 3px; min-width: 0; }
.cart-t b { font: 400 21px/1.15 var(--title); color: #023859; }
.cart-t span { font-size: 14px; color: #4E6B80; }
.cart-q { grid-area: q; justify-self: start; display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 99px; background: rgba(255, 255, 255, .7); border: 1px solid rgba(2, 56, 89, .1); }
.cart-q button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; color: #fff; background: linear-gradient(150deg, #26658C, #023859); }
.cart-q button:disabled { opacity: .3; cursor: default; }
.cart-q svg { width: 16px; height: 16px; stroke-width: 2.4; }
.cart-q output { min-width: 30px; text-align: center; font: 400 22px/1 var(--title); color: #023859; }
.cart-p { grid-area: p; font: 400 24px/1 var(--title); color: #023859; }
.cart-rm { grid-area: rm; align-self: start; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; color: #9C2B22; background: transparent; }
.cart-rm:hover { background: rgba(194, 72, 61, .1); }
.cart-rm svg { width: 18px; height: 18px; }
.cart-empty { display: grid; justify-items: center; align-content: center; gap: 10px; padding: 30px; text-align: center; color: #4E6B80; }
.cart-empty[hidden] { display: none; }
.cart-empty svg { width: 54px; height: 54px; color: #8FB3C8; stroke-width: 1.4; }
.cart-empty p { margin: 0; font-size: 17px; }
.cart-link { color: #26658C; font-size: 16px; }
.cart-foot { display: grid; gap: 10px; padding: 14px 18px 18px; border-top: 1px solid rgba(2, 56, 89, .1); background: rgba(255, 255, 255, .5); }
.cart-foot[hidden] { display: none; }
.cart-sum { display: flex; align-items: baseline; justify-content: space-between; margin: 0; font-size: 15px; color: #4E6B80; }
.cart-sum b { font: 400 34px/1 var(--title); color: #023859; }
.cart-go { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 20px; border-radius: 99px; text-decoration: none; font: 500 20px/1 "Heebo", sans-serif; color: #fff; background: linear-gradient(90deg, #4DB5FF 0%, #5A8DFF 100%); box-shadow: 0 16px 32px -14px rgba(77, 141, 255, .75), inset 0 1px 0 rgba(255, 255, 255, .35); }
.cart-go svg { width: 20px; height: 20px; stroke-width: 2; }
.cart-more { padding: 8px; border: 0; background: none; cursor: pointer; font: 400 15px/1 "Heebo", sans-serif; color: #26658C; text-decoration: underline; text-underline-offset: 3px; }
/* "added to cart" */
.cart-tip { position: fixed; z-index: 65; top: calc(92px + env(safe-area-inset-top, 0px)); left: 50%; translate: -50% -12px; margin: 0; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; padding-inline-start: 18px; border-radius: 99px; font: 400 15px/1.2 "Heebo", sans-serif; color: #fff; background: rgba(2, 40, 70, .9); box-shadow: 0 16px 30px -12px rgba(1, 20, 40, .6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); opacity: 0; pointer-events: none; transition: opacity .25s, translate .3s cubic-bezier(.22, 1, .36, 1); white-space: nowrap; }
.cart-tip.on { opacity: 1; translate: -50% 0; pointer-events: auto; }
.cart-tip button { padding: 7px 12px; border: 0; border-radius: 99px; cursor: pointer; font: 500 14px/1 "Heebo", sans-serif; color: #023859; background: #fff; }
@media (max-width: 560px) { .cart-tip { top: calc(76px + env(safe-area-inset-top, 0px)); } .cart-box { top: auto; bottom: 0; left: 0; width: 100%; max-height: 88svh; border-radius: 24px 24px 0 0; transform: translateY(105%); } .cart-panel.on .cart-box { transform: none; } }
@media (prefers-reduced-motion: reduce) { .cart-box, .cart-scrim, .cart-tip, .cart-n { transition: none; } .act-cart.bump { animation: none; } }
/* the bag lines up with its neighbours: the same 1px optical drop, the same corner on phones, a glyph of the same visual weight */
.bar .act-cart { top: 1px; }
.bar .act-cart svg { width: 20px; height: 20px; margin-top: 0; stroke-width: 1.9; }
@media (max-width: 760px) { .bar .act-cart { border-radius: 6px; } .bar .act-cart svg { width: 18px; height: 18px; } }

/* the day of every line (a festival on several days): two pills; a line without a day asks for one before paying */
.cart-days { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cart-days button { padding: 6px 12px; border-radius: 99px; border: 1px solid rgba(2, 56, 89, .25); background: rgba(255, 255, 255, .7); color: #023859; font: 600 13.5px/1.1 var(--ui); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.cart-days button:hover { border-color: #26658C; }
.cart-days button[aria-pressed="true"] { background: #023859; border-color: #023859; color: #fff; }
.cart-days button:focus-visible { outline: 2px solid #26658C; outline-offset: 2px; }
li.no-day .cart-days::before { content: "בחרו תאריך:"; align-self: center; font: 600 13px/1 var(--ui); color: #B4552D; }
li.no-day.ask { animation: day-ask .5s ease 2; }
@keyframes day-ask { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { li.no-day.ask { animation: none; outline: 2px solid #B4552D; } }
:root[data-theme="dark"] .cart-days button { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); color: #EAF2FA; }
:root[data-theme="dark"] .cart-days button[aria-pressed="true"] { background: #EAF2FA; color: #0B1F38; }
@media (max-width: 760px) { li.no-day .cart-days::before { flex-basis: 100%; } }

/* the date of a tour stands on its own: a framed box with a calendar label and two big day buttons (weekday over date);
   until a date is picked the box is amber and breathes, so it can't be missed */
.cart-days { align-items: center; gap: 8px; margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(2, 56, 89, .05); border: 1px solid rgba(2, 56, 89, .14); }
.cart-days .cd-h { display: inline-flex; align-items: center; gap: 6px; margin-inline-end: 4px; font: 700 15px/1 var(--ui); color: #023859; }
.cart-days .cd-h svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.cart-days button { display: grid; justify-items: center; gap: 3px; min-width: 88px; padding: 8px 14px; border: 1.5px solid rgba(2, 56, 89, .3); background: #fff; }
.cart-days button b { font: 700 16px/1.1 var(--ui); }
.cart-days button small { font: 600 13px/1 var(--ui); opacity: .8; }
.cart-days button[aria-pressed="true"] small { opacity: .9; }
li.no-day .cart-days::before { content: none; }
li.no-day .cart-days { background: #FFF6E8; border-color: #E9A23B; animation: day-wait 2.4s ease-in-out infinite; }
li.no-day .cart-days .cd-h { color: #B4552D; }
@keyframes day-wait { 50% { box-shadow: 0 0 0 4px rgba(233, 162, 59, .25); } }
@media (prefers-reduced-motion: reduce) { li.no-day .cart-days { animation: none; } }
:root[data-theme="dark"] .cart-days { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .18); }
:root[data-theme="dark"] .cart-days .cd-h { color: #EAF2FA; }
:root[data-theme="dark"] li.no-day .cart-days { background: rgba(233, 162, 59, .12); border-color: #E9A23B; }
/* on the payment page the box is a full row of the tour card */
.co-cart li > .cart-days { grid-column: 1 / -1; margin-top: 2px; }
@media (max-width: 760px) { .cart-days button { flex: 1 1 0; min-width: 0; } .cart-days .cd-h { flex-basis: 100%; } }
.cart-days button.cd-out { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
