/* Click Travel · «Мои брони 2.0» (9059:53507). Colours are Coin tokens (badges, segmented control). */
.bk-screen{background:var(--theme-bg-ocean)}
.bk-body{flex:1;min-height:0;padding:24px var(--space-base-l) 120px;display:flex;flex-direction:column;gap:var(--space-base-l)}
.bk-body>*{flex-shrink:0}

/* Segmented control «Активные / Завершенные» */
.bk-seg{display:flex;border-radius:var(--radius-island);overflow:hidden;background:var(--component-segmented-control-accent-normal-bg)}
.bk-seg__item{flex:1;height:44px;display:flex;align-items:center;justify-content:center;gap:6px;padding:0 8px;font:inherit;font-size:14px;line-height:18px;font-weight:500;color:var(--component-segmented-control-accent-normal-title-text);background:none;cursor:pointer}
.bk-seg__item.is-active{background:var(--component-segmented-control-accent-active-bg);color:var(--component-segmented-control-accent-active-title-text)}
.bk-counter{min-width:16px;height:16px;padding:0 4px;border-radius:var(--radius-rounding);font-size:12.5px;line-height:16px;font-weight:600;color:var(--theme-text-always-white);display:inline-flex;align-items:center;justify-content:center}
.bk-counter--success{background:var(--theme-bg-success)}
.bk-counter--muted{background:var(--theme-bg-disabled)}

/* Groups */
.bk-group{display:flex;flex-direction:column;gap:var(--space-base-s)}
.av-app .bk-group h2{margin:0;font-size:17px;line-height:22px;font-weight:600;color:var(--theme-text-primary)}
.bk-empty{margin:24px 0 0;text-align:center;font-size:14px;line-height:18px;color:var(--theme-text-secondary)}

/* Booking card (Flight Details, 10096:44719) */
.bk-card{display:flex;flex-direction:column;gap:4px;padding-bottom:var(--space-base-l);border-radius:var(--radius-island);background:var(--theme-bg-island)}
.bk-card__head{display:flex;align-items:center;gap:var(--space-base-m);padding:var(--space-base-l) var(--space-base-l) 0}
.bk-card__headtext{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.av-app .bk-card p{margin:0}
.bk-card__title{display:flex;align-items:center;gap:var(--space-base-s);font-size:17px;line-height:22px;color:var(--theme-text-primary)}
.bk-meta{display:flex;gap:var(--space-base-s);font-size:14px;line-height:18px;color:var(--theme-text-secondary)}
.bk-meta>span{display:flex;align-items:center;gap:4px}
.bk-cut{position:relative;height:22px;display:flex;align-items:center}
/* Figma «Vector 4»: 12px dashes, 12px gaps, rounded ends, from notch to notch. */
.bk-cut__line{flex:1;margin:0 var(--cut-r,10px);height:2px;border-radius:1px;background-image:linear-gradient(90deg,var(--theme-bg-ocean) 50%,transparent 50%);background-size:23.87px 2px;background-position:-6px 0}
.bk-card__body{display:flex;flex-direction:column;gap:4px;padding:0 var(--space-base-l)}
.bk-card__name{font-size:17px;line-height:22px;font-weight:600;color:var(--theme-text-primary)}
.bk-card__booked{font-size:14px;line-height:18px;color:var(--theme-text-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bk-card__price{display:flex;justify-content:space-between;align-items:center;margin-top:4px}
.bk-price{display:flex;align-items:baseline;gap:4px;color:var(--av-price-color);white-space:nowrap}
.bk-price b{font-size:19.5px;line-height:26px;font-weight:600}
.bk-price span{font-size:17px;line-height:22px}
.bk-card__action{padding:8px var(--space-base-l) 0}

/* Status badges */
.bk-badge{display:inline-flex;align-items:center;gap:4px;padding:4px 8px;border-radius:var(--radius-rounding);font-size:14px;line-height:18px;font-weight:500;white-space:nowrap}
.bk-badge--attention{background:var(--component-badges-attention-bg);color:var(--component-badges-attention-text)}
.bk-badge--success{background:var(--component-badges-success-bg);color:var(--component-badges-success-text)}
.bk-badge--secondary{background:var(--component-badges-secondary-bg);color:var(--component-badges-secondary-text)}
.bk-badge--error{background:var(--component-badges-error-bg);color:var(--component-badges-error-text)}

/* Swipe to delete (Мои брони · Удалить, 10901:9706) */
.bk-swipe{position:relative;touch-action:pan-y}
.bk-swipe__delete{position:absolute;top:0;bottom:0;right:0;width:48px;display:flex;align-items:center;justify-content:center;background:none;cursor:pointer}
.bk-swipe__card{position:relative;z-index:1;transition:transform .2s ease-out;user-select:none}
@media (prefers-reduced-motion: reduce){.bk-swipe__card{transition:none}}

/* «Удалить из списка?» (Alert, 10901:25919) */
.bk-alert-layer{position:absolute;inset:0;z-index:50;display:flex;align-items:center;justify-content:center}
.bk-alert{position:relative;width:358px;max-width:calc(100% - 32px);display:flex;flex-direction:column;align-items:center;gap:32px;padding:32px var(--space-base-l) var(--space-base-l);border-radius:var(--radius-continent);background:var(--theme-bg-island);animation:bk-pop .18s ease-out}
@keyframes bk-pop{from{opacity:0;transform:scale(.96)}}
.bk-alert__text{display:flex;flex-direction:column;gap:8px;text-align:center}
.av-app .bk-alert__text h2{margin:0;font-size:17px;line-height:22px;font-weight:600;color:var(--theme-text-primary)}
.av-app .bk-alert__text p{margin:0;font-size:14px;line-height:18px;color:var(--theme-text-secondary)}
.bk-alert__buttons{align-self:stretch;display:flex;flex-direction:column;gap:8px}
.bk-alert__danger{display:flex;align-items:center;justify-content:center;height:44px;font:inherit;font-size:17px;line-height:22px;font-weight:600;color:var(--theme-text-error);background:none;cursor:pointer}

/* v4 «Мои брони» (08-Travel 14864:41381 / 14868:48011) */
:root[data-v="4"] .bk-seg{height:48px;padding:4px;gap:0;border-radius:16px;background:var(--theme-bg-tertiary)}
:root[data-v="4"] .bk-seg__item{height:40px;border-radius:12px;color:var(--theme-text-secondary)}
:root[data-v="4"] .bk-seg__item.is-active{background:var(--theme-bg-island);color:var(--theme-text-primary)}
:root[data-v="4"] .bk-counter--success,:root[data-v="4"] .bk-counter--muted{background:var(--theme-bg-error)}
.bk-card--v4{gap:0;border-radius:24px}
.av-app .bk-card--v4 .bk-card__head{width:100%;border:0;background:none;font:inherit;color:inherit;text-align:left}
.bk-card--v4 button.bk-card__head{cursor:pointer}
/* The part under the cut opens and closes smoothly (rows 0fr ↔ 1fr). */
.bk-fold{display:grid;grid-template-rows:0fr;transition:grid-template-rows .3s cubic-bezier(.2,.8,.2,1)}
.bk-card--v4.is-open .bk-fold{grid-template-rows:1fr}
.bk-fold__in{min-height:0;overflow:hidden;display:flex;flex-direction:column;gap:4px;opacity:0;transition:opacity .2s ease}
.bk-card--v4.is-open .bk-fold__in{opacity:1;padding-top:4px}
.bk-card--v4 .bk-card__body{gap:8px}
.bk-card--v4 .bk-card__action{padding-top:16px}
.bk-card--v4 .bk-card__action .cds-button{height:44px;border-radius:12px}
@media (prefers-reduced-motion:reduce){.bk-fold,.bk-fold__in{transition:none}}
/* Stacked airline logos at 24px */
.bk-logos{flex:none;position:relative;width:24px;height:36px}
.bk-logos img{position:absolute;display:block}
.bk-logos img:first-child{z-index:2;left:-2px;top:-2px;border-radius:50%;background:var(--theme-bg-island)}
.bk-logos img:last-child{left:0;top:12px}
/* The notches are punched out of the card by the ticket-cut mask (cuts.js); a folded card has no cut, so no mask. */
.bk-card--v4:not(.is-open){-webkit-mask:none!important;mask:none!important}
/* Grey secondary button. */
.av-app .bk-card--v4 .cds-button--secondary{background:var(--theme-bg-tertiary);color:var(--theme-text-primary)}
.bk-mi{flex:none;display:inline-block;line-height:0;color:var(--theme-text-secondary)}
.bk-mi .av-svg{width:100%;height:100%}
.bk-mi :is(path,circle,rect)[fill]:not([fill=none]):not([fill=white]):not([fill="#fff"]):not([fill="#FFFFFF"]){fill:currentColor}
.bk-mi.is-accent{color:var(--theme-icon-accent)}
/* Route / place title: Medium; accent while the booking is active. */
.bk-card--v4 .bk-card__title{font-weight:500}
.bk-card--v4.is-active .bk-card__title>span:first-child{color:var(--theme-text-accent)}

/* Jelly (v4): the card is two islands without a seam — the top part and the lower block (cut, price, status, button).
   On a tap the whole lower block, background included, drops or lifts like marmalade: a gentle stretch, one or two small
   wobbles, then it settles. The row height follows with a soft spring. */
.bk-card.bk-card--v4{padding-bottom:0;background:transparent}
.av-app .bk-card--v4 .bk-card__head{background:var(--theme-bg-island);border-radius:24px 24px 0 0}
.bk-lower{position:relative;padding-bottom:var(--space-base-l);background:var(--theme-bg-island);border-radius:0 0 24px 24px;transform-origin:50% 0}
.bk-card--v4 .bk-fold{transition:grid-template-rows .5s cubic-bezier(.34,1.2,.5,1)}
.bk-card--v4.is-touched.is-open .bk-lower{animation:bk-jelly-down .75s ease-out both}
.bk-card--v4.is-touched:not(.is-open) .bk-lower{animation:bk-jelly-up .75s ease-out both}
@keyframes bk-jelly-down{0%{transform:scale(1,.96)}30%{transform:scale(.99,1.035)}55%{transform:scale(1.005,.985)}78%{transform:scale(.998,1.006)}100%{transform:scale(1,1)}}
/* Closing wobbles the same way as opening (a second name only so the animation restarts). */
@keyframes bk-jelly-up{0%{transform:scale(1,.96)}30%{transform:scale(.99,1.035)}55%{transform:scale(1.005,.985)}78%{transform:scale(.998,1.006)}100%{transform:scale(1,1)}}
@media (prefers-reduced-motion:reduce){.bk-lower{animation:none!important}}
/* No seams: the lower block tucks 1px under the top part (no hairline between them), and the swipe's delete button stays
   hidden until the card is actually swiped, so it never shows through an edge. */
.bk-card--v4 .bk-card__head{position:relative;z-index:1}
.bk-lower{margin-top:-1px}
.bk-swipe:not(.is-moved) .bk-swipe__delete{visibility:hidden}
/* Keep the animated block on its own layer so iOS does not repaint its contents every frame. */
.bk-lower{will-change:transform;-webkit-backface-visibility:hidden;backface-visibility:hidden}
