/* Jeņču Laivas — grozs un rezervācijas paneļi (kopīgi stili) */
:root {
  --jl-green: #1C4D1B;
  --jl-green-2: #2C5F28;
  --jl-lime: #BADD14;
  --jl-bg: #F7F9F3;
  --jl-line: #E3E9DA;
  --jl-muted: #5B6A55;
  --jl-low: #E9A23B;
  --jl-full: #C9524A;
}
html.jl-noscroll, html.jl-noscroll body { overflow: hidden; }

.jl-cart-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 999px; border: 0; background: rgba(255,255,255,.16); color: #fff; cursor: pointer; }
.jl-cart-btn:hover { background: rgba(255,255,255,.26); }
.jl-cart-btn svg { width: 22px; height: 22px; }
a.jl-user-btn, a.jl-user-btn:hover, a.jl-user-btn:focus, a.jl-user-btn:visited { text-decoration: none; color: #fff !important; }
@media (max-width: 600px) { .jl-user-btn { display: none; } }
.jl-cart-btn [data-jl-cart-count] { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--jl-lime); color: var(--jl-green); font: 700 12px/20px 'Onest', sans-serif; text-align: center; }

.jl-drawer, .jl-panel { position: fixed; inset: 0; z-index: 1000; font-family: 'Onest', sans-serif; color: #1C2B19; }
.jl-drawer__backdrop, .jl-panel__backdrop { position: absolute; inset: 0; background: rgba(12, 30, 12, .45); opacity: 0; transition: opacity .25s; }
.jl-drawer__sheet, .jl-panel__sheet { position: absolute; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease; box-shadow: -20px 0 50px rgba(0,0,0,.18); }
.is-open .jl-drawer__backdrop, .is-open .jl-panel__backdrop { opacity: 1; }
.is-open .jl-drawer__sheet, .is-open .jl-panel__sheet { transform: none; }
@media (max-width: 600px) { .jl-drawer__sheet, .jl-panel__sheet { width: 100%; } }

.jl-drawer__head, .jl-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--jl-line); }
.jl-drawer__head h2, .jl-panel__head h2 { font: 700 22px/1.2 'Alegreya', serif; color: var(--jl-green); margin: 0; }
.jl-drawer__body, .jl-panel__body { flex: 1; overflow-y: auto; padding: 18px 22px; }
.jl-drawer__foot, .jl-panel__foot { border-top: 1px solid var(--jl-line); padding: 16px 22px calc(16px + env(safe-area-inset-bottom)); background: #fff; }

.jl-x { width: 40px; height: 40px; border: 0; border-radius: 999px; background: var(--jl-bg); font-size: 24px; line-height: 1; cursor: pointer; color: var(--jl-green); flex: none; }
.jl-back { border: 0; background: none; color: var(--jl-green); font: 600 14px 'Onest', sans-serif; cursor: pointer; padding: 6px 0; }
.jl-link { border: 0; background: none; color: var(--jl-muted); text-decoration: underline; cursor: pointer; font: 13px 'Onest', sans-serif; padding: 0; }
.jl-link:hover { color: var(--jl-full); }

.jl-btn { display: block; width: 100%; padding: 15px 20px; border-radius: 999px; border: 0; font: 700 16px 'Onest', sans-serif; cursor: pointer; text-align: center; text-decoration: none; }
.jl-btn + .jl-btn { margin-top: 8px; }
.jl-btn--primary { background: var(--jl-lime); color: var(--jl-green); }
.jl-btn--primary:hover { background: #A8C912; }
.jl-btn--primary:disabled { opacity: .45; cursor: default; }
.jl-btn--dark { background: var(--jl-green); color: #fff; }
.jl-btn--ghost { background: transparent; color: var(--jl-green); border: 1px solid #C9D6BC; }

.jl-error { background: #FBEAE9; color: #8C2A22; border-radius: 10px; padding: 10px 14px; font-size: 14px; margin: 0 0 12px; }
.jl-empty { text-align: center; color: var(--jl-muted); padding: 40px 10px; }

.jl-group { border: 1px solid var(--jl-line); border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; }
.jl-group__head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.jl-group h3 { font: 700 17px/1.25 'Alegreya', serif; color: var(--jl-green); margin: 0; }
.jl-group__date { font: 400 12px 'JetBrains Mono', monospace; color: var(--jl-muted); margin-top: 4px; letter-spacing: .04em; }
.jl-lines { list-style: none; margin: 12px 0 0; padding: 0; font-size: 14px; }
.jl-lines li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; }
.jl-group__total { display: flex; justify-content: space-between; border-top: 1px dashed var(--jl-line); margin-top: 8px; padding-top: 8px; font-size: 14px; }

.jl-sum { display: flex; justify-content: space-between; font-size: 15px; padding: 3px 0; }
.jl-sum strong { font-size: 18px; color: var(--jl-green); }
.jl-sum--deposit { font-weight: 600; }
.jl-sum--muted { color: var(--jl-muted); font-size: 13px; margin-bottom: 12px; }
.jl-group__actions { display: flex; gap: 14px; flex: none; }
.jl-link--edit { color: var(--jl-green); font-weight: 600; }
.jl-link--edit:hover { color: var(--jl-green-2); }

/* Ritināmā daļa paneļos un grozā: tonēts fons + ēnas augšā/apakšā, kad ir vēl saturs */
.jl-panel__body, .jl-drawer__body {
  background:
    linear-gradient(#F4F7EF 30%, rgba(244,247,239,0)) center top / 100% 40px no-repeat local,
    linear-gradient(rgba(244,247,239,0), #F4F7EF 70%) center bottom / 100% 40px no-repeat local,
    radial-gradient(farthest-side at 50% 0, rgba(20,45,20,.22), rgba(20,45,20,0)) center top / 100% 16px no-repeat scroll,
    radial-gradient(farthest-side at 50% 100%, rgba(20,45,20,.22), rgba(20,45,20,0)) center bottom / 100% 16px no-repeat scroll,
    #F4F7EF;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.jl-panel__head, .jl-drawer__head, .jl-steps { position: relative; z-index: 2; background: #fff; }
.jl-panel__foot, .jl-drawer__foot { position: relative; z-index: 2; box-shadow: 0 -10px 24px rgba(20,45,20,.10); }
.jl-boat, .jl-group { background: #fff; }
.jl-boat.is-selected { background: #F3F8EC; }
.jl-lines strong, .jl-group__total strong, .jl-sum strong, .jl-sum > span:last-child { white-space: nowrap; }
.jl-sum > span:first-child { padding-right: 12px; }
