/* ==========================================================================
   CleverBox Online Booking — ЄДИНИЙ власний CSS (стилі всіх компонентів).
   Порядок: 1) токени :root  2) --f7-* змінні  3) перебивання від класів F7
            4) власні класи cbx- (БЕМ) — тільки якщо інакше ніяк.
   Файли F7 не редагуємо. Правила — README.md. Еталон розмітки — public/ui.html.
   ========================================================================== */

/* ---------- Шрифт ---------- */
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope-VariableFont_wght.ttf') format('truetype');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Розміри з рамкою і padding усередині ----------
   F7 ставить border-box лише своїм компонентам; без цього власні cbx-* (span / div / img) — content-box браузера,
   і розміри з макета (там * { border-box }) росли на padding. Swiper: .swiper-wrapper { box-sizing: initial } у F7 — конкретніше, лишається. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ---------- 1. Токени (UI-INVENTORY.md §c, §d) ---------- */
:root {
  --cbx-font: 'Manrope', system-ui, -apple-system, Roboto, sans-serif;
  --cbx-line-height: 1.29;      /* текст (Figma 129%) */
  --cbx-line-height-auto: 1.366; /* Figma «авто» для Manrope */
  --cbx-navbar-height: 72px;    /* штатна; довгий заголовок — вища (app.js navbarFit) */

  /* акцент салону: inline --cbx-cta-accent на <html> (App.ui.accent / App.util.accent, з btn_online_color); без нього — жовтий */
  --cbx-primary: var(--cbx-cta-accent, #FFD700);
  --cbx-primary-rgb: 255, 215, 0; /* лише жовтий фолбек — не використовувати (акцент не враховує) */
  --cbx-text: #111827;
  --cbx-text-2: #6B7280;
  --cbx-text-3: #9CA3AF;
  --cbx-bg: #EEF0F3;          /* фон сторінки */
  --cbx-body-bg: #cecece;     /* поза віджетом (ширше 600px) */
  --cbx-fill: #F3F4F7;        /* поля, secondary-кнопки, чіпи, кружки */
  --cbx-consent-bg: #F5F5F5;  /* плашка згоди (10–12) */
  --cbx-surface: #FFFFFF;     /* картки */
  --cbx-border: #E5E7EB;      /* рамки, розділювачі, disabled-кнопка */
  --cbx-link: #2563EB;

  --cbx-success: #22C55E;
  --cbx-success-bg: #F0FDF4;
  --cbx-success-border: #BBF7D0;
  --cbx-success-text: #166534;

  --cbx-danger: #EF4444;
  --cbx-danger-bg: rgba(239, 68, 68, .1);
  --cbx-danger-border: rgba(239, 68, 68, .15);

  --cbx-info-bg: #EFF6FF;
  --cbx-info-border: #BFDBFE;
  --cbx-info-text: #1E40AF;

  --cbx-warning-bg: #FEF3C7;
  --cbx-warning-border: #FDE68A;
  --cbx-warning-text: #92400E;
  --cbx-warning-accent: #E65100;

  --cbx-pink: #FF4A96;
  --cbx-pink-bg: #FFDFED;

  --cbx-brand: #FF7D7D;       /* «CleverBox:CRM» у футері */

  --cbx-overlay: rgba(0, 0, 0, .4);
  --cbx-viewer-bg: #0B0D12;   /* перегляд робіт майстра (photoBrowser) */
  --cbx-star: #F59E0B;        /* зірки оцінки, бари рейтингу (майстер) */
  --cbx-blur: 15px;

  /* поверхні й дрібні кольори інтерфейсу (раніше — напряму в правилах) */
  --cbx-fill-soft: #F8F8F8;         /* картка відгуку, список філій */
  --cbx-note-bg: #F6F7F9;           /* примітка послуги, ціна */
  --cbx-warning-bg-soft: #FFFBEB;   /* плашка-попередження */
  --cbx-rating-bg: #FFFDEF;         /* плашка рейтингу у відгуках */
  --cbx-rating-border: #FFF6BB;
  --cbx-rating-text: #555555;
  --cbx-success-tag-bg: #DCFCE7;    /* тег «−200 ₴», бейдж «N з M» абонемента */
  --cbx-bullet: #D6DAE0;            /* неактивна риска пагінації */
  --cbx-tabbar-inactive: #878C96;   /* неактивна вкладка таббару */
  --cbx-glass: rgba(255, 255, 255, .4);          /* «скляні» бари (таббар, нижня панель) */
  --cbx-glass-border: rgba(229, 231, 235, .8);   /* рамка таббару */
  --cbx-tool-bg: rgba(156, 163, 175, .17);       /* ✕ у правому куті navbar */
  --cbx-ripple: rgba(0, 0, 0, .06);              /* ripple F7 */
  --cbx-pressed: rgba(0, 0, 0, .04);             /* натиснутий рядок списку */
  --cbx-ring: rgba(0, 0, 0, .08);                /* обвідка лого салону */

  /* Текст на заливках — від світлоти фону (relative color: L < 72 → білий, інакше чорний), фолбек — нижче, у @supports.
     --cbx-on-primary: текст на --cbx-primary (кнопки, бейджі, F7 --f7-md-on-primary). Фолбек без relative color — темний
     (не --cbx-text: у темній темі він світлий).
     ПАСТКА: var(--cbx-primary) у такій змінній обчислюється там, де її оголошено (тут — :root). Якщо колір салону задаватимуть
     не на <html>, а на елементі нижче — там же треба переоголосити й --cbx-on-primary (і рядок з @supports нижче), інакше текст
     рахуватиметься від кольору з :root. */
  --cbx-on-light: #111827;    /* текст на світлій заливці (фолбек) */
  --cbx-on-dark: #FFFFFF;     /* текст на темній / насиченій заливці (фолбек) */
  --cbx-on-brand: #FFFFFF;    /* іконка на кольорі бренду месенджера (bg-color-telegram…, ### share) */
  --cbx-on-primary: #111827;
  --cbx-on-text: var(--cbx-on-dark); /* текст на заливці --cbx-text («сьогодні» у днях, тост App.Info, ✓ плитки) */

  --cbx-radius-xs: 4px;       /* ✕ послуги (36): 0/12/0/4 */
  --cbx-radius-sm: 8px;       /* 🌙/мова, дні, слоти */
  --cbx-radius: 12px;         /* кнопки, поля, плитки, бейджі, плашки */
  --cbx-radius-card: 16px;    /* картки, сегмент */
  --cbx-radius-lg: 20px;      /* sheet, діалог */
  --cbx-radius-pill: 999px;

  --cbx-shadow-card: 0 2px 8px rgba(0, 0, 0, .08);
  --cbx-shadow-primary: 0 4px 10px color-mix(in srgb, var(--cbx-primary) 40%, transparent);
  --cbx-shadow-xs: 0 1px 3px rgba(0, 0, 0, .06);

  /* кнопки: lg — .button-large (primary), md — .button, sm — .button-small */
  --cbx-btn-lg: 52px;
  --cbx-btn-md: 44px;
  --cbx-btn-sm: 36px;
  --cbx-field-height: 52px;
  --cbx-gap: 16px;

  --cbx-width-min: 360px;
  --cbx-width-max: 600px;

  /* Палітра F7: new Framework7({ colors }) збирає її з --cbx-color-<name> (main.js, ui.html) */
  --cbx-color-primary: var(--cbx-primary);
  --cbx-color-black: var(--cbx-text);
  --cbx-color-gray: var(--cbx-text-2);
  --cbx-color-red: var(--cbx-danger);
  --cbx-color-green: var(--cbx-success);
  --cbx-color-yellow: #FFD700; /* жовтий лишається жовтим (не акцент) */
  --cbx-color-orange: var(--cbx-warning-accent);
  --cbx-color-pink: var(--cbx-pink);
  --cbx-color-blue: var(--cbx-link);
  --cbx-color-telegram: #2B7FFF;
  --cbx-color-viber: #7C529E;
  --cbx-color-whatsapp: #42C553;
  --cbx-color-instagram: #E60076;
  --cbx-color-facebook: #1877F2;
}

/* ---------- 1a. Темна тема ----------
   F7 9.2 ставить клас dark на <html> (darkMode: true | 'auto'; перемикач 🌙 — app.setDarkMode). Базові значення — макет
   crm2_makets «продаж сертифікатів…» ([data-theme=dark] у *.dc.html); решта підібрана за тією ж логікою.
   Кожен новий токен з :root — і тут. --cbx-primary у темній не змінюється (акцент салону — як прийшов). */
.dark {
  --cbx-bg: #111318;
  --cbx-surface: #1c1f29;
  --cbx-fill: #262b38;
  --cbx-consent-bg: #161a22;
  --cbx-border: #3a4157;
  --cbx-body-bg: #0b0d12;
  --cbx-text: #f1f5f9;
  --cbx-text-2: #a8b3c8;
  --cbx-text-3: #6e7a94;
  --cbx-link: #60a5fa;

  --cbx-success-bg: #071810;
  --cbx-success-border: #145228;
  --cbx-success-text: #4ade80;
  --cbx-info-bg: #0d1a2e;
  --cbx-info-border: #1e3a5f;
  --cbx-info-text: #93c5fd;
  --cbx-warning-bg: #231a06;
  --cbx-warning-border: #6b4c14;
  --cbx-warning-text: #fbbf24;
  --cbx-warning-accent: #fb923c;

  --cbx-danger: #f87171;
  --cbx-danger-bg: rgba(248, 113, 113, .14);
  --cbx-danger-border: rgba(248, 113, 113, .3);
  --cbx-pink-bg: #3a1526;

  --cbx-overlay: rgba(0, 0, 0, .6);
  --cbx-shadow-card: 0 2px 8px rgba(0, 0, 0, .4);
  --cbx-shadow-xs: 0 1px 3px rgba(0, 0, 0, .4);

  --cbx-fill-soft: #20242f;
  --cbx-note-bg: #232733;
  --cbx-warning-bg-soft: #1d1607;
  --cbx-rating-bg: #1f1c0c;
  --cbx-rating-border: #4d4310;
  --cbx-rating-text: #cbd2de;
  --cbx-success-tag-bg: #0d2a18;
  --cbx-bullet: #3a4157;
  --cbx-tabbar-inactive: #8b95ab;
  --cbx-glass: rgba(28, 31, 41, .6);
  --cbx-glass-border: rgba(58, 65, 87, .8);
  --cbx-tool-bg: rgba(168, 179, 200, .14);
  --cbx-ripple: rgba(255, 255, 255, .08);
  --cbx-pressed: rgba(255, 255, 255, .06);
  --cbx-ring: rgba(255, 255, 255, .12);

  --cbx-on-text: var(--cbx-on-light); /* --cbx-text світлий; з relative color — обчислюється (@supports нижче) */
}

/* ---------- 2. Змінні F7 (тема md) ----------
   F7 генерує MD3-палітру з colors і кладе її в <style> на початку <head>,
   тому ті самі селектори тут (пізніше в каскаді) перемагають.
   body.color-theme-* (set.theme з datawc, start-screen) — F7 (.md [class*="color-"]) скидає на ньому змінні
   на колір теми (заголовки блоків ставали жовтими) — тому й body з класом теми.
   .md.dark: темна MD3-палітра F7 (.dark, .md.dark { --f7-text-color }) — наші значення мають перемагати і там. */
.md,
.md.dark,
.md body[class*="color-theme-"],
.md.dark body[class*="color-theme-"] {
  --f7-font-family: var(--cbx-font);
  --f7-text-color: var(--cbx-text);
  --f7-line-height: var(--cbx-line-height);
  --f7-font-size: 14px;

  /* MD3-палітра → наші токени */
  --f7-md-primary: var(--cbx-primary);
  --f7-md-primary-shade: var(--cbx-primary);
  --f7-md-primary-tint: var(--cbx-primary);
  --f7-md-on-primary: var(--cbx-on-primary);
  --f7-md-primary-container: var(--cbx-fill);
  --f7-md-on-primary-container: var(--cbx-text);
  --f7-md-secondary-container: var(--cbx-fill);
  --f7-md-on-secondary-container: var(--cbx-text);
  --f7-md-surface: var(--cbx-bg);
  --f7-md-surface-1: var(--cbx-surface);
  --f7-md-surface-2: var(--cbx-surface);
  --f7-md-surface-3: var(--cbx-surface);
  --f7-md-surface-variant: var(--cbx-fill);
  --f7-md-on-surface: var(--cbx-text);
  --f7-md-on-surface-variant: var(--cbx-text-2);
  --f7-md-outline: var(--cbx-border);
  --f7-md-outline-variant: var(--cbx-border);

  --f7-page-bg-color: var(--cbx-bg);
  --f7-bars-bg-color: var(--cbx-surface);
  --f7-bars-border-color: var(--cbx-border);
  --f7-touch-ripple-color: var(--cbx-ripple);

  /* Navbar */
  --f7-navbar-height: var(--cbx-navbar-height);
  --f7-navbar-title-font-size: 20px;
  --f7-navbar-title-font-weight: 600;
  --f7-navbar-title-line-height: var(--cbx-line-height); /* макет 21: 2 рядки по 25.8 */
  --f7-navbar-title-margin-left: 12px;
  --f7-navbar-subtitle-font-size: 12px;
  --f7-navbar-subtitle-line-height: var(--cbx-line-height);
  --f7-navbar-subtitle-text-color: var(--cbx-text-2);
  --f7-navbar-inner-padding-left: 16px;
  --f7-navbar-inner-padding-right: 16px;
  --f7-navbar-link-color: var(--cbx-text-3);

  /* Button */
  --f7-button-height: var(--cbx-btn-md);
  --f7-button-font-size: 13px;
  --f7-button-font-weight: 600;
  --f7-button-border-radius: var(--cbx-radius);
  --f7-button-text-color: var(--cbx-text);
  --f7-button-border-color: var(--cbx-border);
  --f7-button-large-height: var(--cbx-btn-lg);
  --f7-button-large-font-size: 16px;
  --f7-button-large-font-weight: 700;
  --f7-button-small-height: var(--cbx-btn-sm);
  --f7-button-small-font-size: 13px;
  --f7-button-small-font-weight: 600;
  --f7-button-fill-text-color: var(--f7-md-on-primary);

  /* Segmented */
  --f7-segmented-strong-bg-color: var(--cbx-border);
  --f7-segmented-strong-padding: 4px;
  --f7-segmented-strong-between-buttons: 4px;
  --f7-segmented-strong-button-font-weight: 600;
  --f7-segmented-strong-button-active-font-weight: 600;
  --f7-segmented-strong-button-text-color: var(--cbx-text-2);
  --f7-segmented-strong-button-active-text-color: var(--cbx-text);
  --f7-segmented-strong-button-active-bg-color: var(--cbx-surface);
  --f7-segmented-strong-button-active-box-shadow: none;

  /* Card */
  --f7-card-border-radius: var(--cbx-radius-card);
  --f7-card-box-shadow: var(--cbx-shadow-card);
  --f7-card-bg-color: var(--cbx-surface);
  --f7-card-outline-border-color: var(--cbx-border);
  --f7-card-header-font-size: 16px;
  --f7-card-header-font-weight: 600;
  --f7-card-header-min-height: 0px;
  --f7-card-header-border-color: var(--cbx-border);
  --f7-card-margin-vertical: var(--cbx-gap);

  /* List */
  --f7-list-bg-color: var(--cbx-surface);
  --f7-list-font-size: 15px;
  --f7-list-margin-vertical: var(--cbx-gap);
  --f7-list-inset-border-radius: var(--cbx-radius-card);
  --f7-list-item-border-color: var(--cbx-border);
  --f7-list-item-title-font-weight: 600;
  --f7-list-media-item-title-font-weight: 600;
  --f7-list-item-subtitle-font-size: 12px;
  --f7-list-item-subtitle-text-color: var(--cbx-text-2);
  --f7-list-item-after-font-size: 15px;
  --f7-list-item-after-text-color: var(--cbx-text);
  --f7-list-item-after-font-weight: 600;
  --f7-list-item-media-margin: 12px;
  --f7-list-media-item-padding-vertical: 10px;
  --f7-list-chevron-icon-color: var(--cbx-text-3);
  --f7-list-chevron-icon-font-size: 16px;
  --f7-list-link-pressed-bg-color: var(--cbx-pressed);

  /* Inputs */
  --f7-input-font-size: 15px;
  --f7-input-height: 20px;
  --f7-input-text-color: var(--cbx-text);
  --f7-input-placeholder-color: var(--cbx-text-3);
  --f7-input-bg-color: transparent;
  --f7-input-item-bg-color: transparent; /* фон і рамку малюємо на .item-input */
  --f7-label-font-size: 12px;
  --f7-label-text-color: var(--cbx-text-3);
  --f7-label-focused-text-color: var(--cbx-text-3);
  --f7-floating-label-scale: calc(15 / 12);
  --f7-input-error-text-color: var(--cbx-danger);
  --f7-input-error-font-size: 13px;
  --f7-textarea-height: 72px;

  /* Searchbar */
  --f7-searchbar-input-bg-color: var(--cbx-surface);
  --f7-searchbar-inline-input-height: 42px;
  --f7-searchbar-inline-input-border-radius: var(--cbx-radius);
  --f7-searchbar-input-font-size: 14px;
  --f7-searchbar-placeholder-color: var(--cbx-text-3);
  --f7-searchbar-search-icon-color: var(--cbx-text-3);
  --f7-searchbar-inline-input-padding-horizontal: 16px;

  /* Chip / Badge */
  --f7-chip-height: 32px;
  --f7-chip-font-size: 13px;
  --f7-chip-font-weight: 600;
  --f7-chip-border-radius: var(--cbx-radius);
  --f7-chip-bg-color: var(--cbx-fill);
  --f7-chip-text-color: var(--cbx-text-2);
  --f7-chip-outline-border-color: var(--cbx-border);
  --f7-badge-size: 20px;
  --f7-badge-padding: 0 8px;
  --f7-badge-font-size: 10px;
  --f7-badge-font-weight: 700;
  --f7-block-title-white-space: normal;

  /* Block: заголовки (у картках — Card) */
  --f7-block-title-font-size: 16px;
  --f7-block-title-font-weight: 700;
  --f7-block-title-line-height: var(--cbx-line-height);
  --f7-block-title-text-color: var(--cbx-text);
  --f7-block-title-medium-font-size: 20px;
  --f7-block-title-medium-font-weight: 600;
  --f7-block-title-medium-line-height: var(--cbx-line-height);
  --f7-block-title-medium-text-color: var(--cbx-text);
  --f7-block-header-font-size: 13px;
  --f7-block-header-text-color: var(--cbx-text-2);

  /* Grid: плитки */
  --f7-grid-gap: 10px;

  /* Checkbox */
  --f7-checkbox-size: 20px;
  --f7-checkbox-border-radius: 4px;
  --f7-checkbox-border-width: 1.5px;
  --f7-checkbox-inactive-color: var(--cbx-text-2);
  --f7-checkbox-active-color: var(--cbx-text);

  /* Sheet / Dialog */
  --f7-sheet-border-radius: var(--cbx-radius-lg);
  --f7-sheet-bg-color: var(--cbx-surface);
  --f7-dialog-bg-color: var(--cbx-surface);
  --f7-dialog-width: 328px;
  --f7-dialog-border-radius: var(--cbx-radius-lg);
  --f7-dialog-inner-padding: 24px;
  --f7-dialog-text-align: center;
  --f7-dialog-title-font-size: 20px;
  --f7-dialog-title-font-weight: 600;
  --f7-dialog-font-size: 14px;
  --f7-dialog-text-color: var(--cbx-text-2);

  /* Toolbar / Tabbar */
  --f7-toolbar-bg-color: var(--cbx-glass);
  --f7-tabbar-icons-height: 72px;
  --f7-tabbar-icon-size: 20px;
  --f7-tabbar-label-font-size: 12px;
  --f7-tabbar-label-font-weight: 600;
  --f7-tabbar-link-inactive-color: var(--cbx-tabbar-inactive);
  --f7-tabbar-link-active-color: var(--cbx-text);

  /* Swiper (Swiper Element): риски пагінації */
  --swiper-pagination-color: var(--cbx-text);
  --swiper-pagination-bullet-inactive-color: var(--cbx-bullet);
  --swiper-pagination-bullet-inactive-opacity: 1;
  --swiper-pagination-bullet-width: 16px;
  --swiper-pagination-bullet-height: 4px;
  --swiper-pagination-bullet-border-radius: 2px;
  --swiper-pagination-bullet-horizontal-gap: 2px;
  --swiper-pagination-bottom: 0px;
}

/* Кольори F7 (.color-*): точні токени замість MD3-тонів, які генерує F7 (.color-X і .dark .color-X у <head>).
   container / on-container — тонований фон і текст (бейджі, кружки іконок).
   on-primary тут — фолбек; з relative color — від світлоти --f7-md-primary (спільне правило в @supports нижче). */
.color-red,
.dark .color-red {
  --f7-md-primary: var(--cbx-danger);
  --f7-md-on-primary: var(--cbx-on-dark);
  --f7-md-primary-container: var(--cbx-danger-bg);
  --f7-md-on-primary-container: var(--cbx-danger);
  --f7-button-border-color: var(--cbx-danger-border);
}
.color-green,
.dark .color-green {
  --f7-md-primary: var(--cbx-success);
  --f7-md-on-primary: var(--cbx-on-dark);
  --f7-md-primary-container: var(--cbx-success-bg);
  --f7-md-on-primary-container: var(--cbx-success-text);
}
.color-yellow,
.dark .color-yellow {
  --f7-md-primary: var(--cbx-primary);
  --f7-md-on-primary: var(--cbx-on-primary);
  --f7-md-primary-container: var(--cbx-warning-bg);
  --f7-md-on-primary-container: var(--cbx-warning-text);
}
.color-orange,
.dark .color-orange {
  --f7-md-primary: var(--cbx-warning-accent);
  --f7-md-on-primary: var(--cbx-on-dark);
  --f7-md-primary-container: var(--cbx-warning-bg);
  --f7-md-on-primary-container: var(--cbx-warning-accent);
}
.color-pink,
.dark .color-pink {
  --f7-md-primary: var(--cbx-pink);
  --f7-md-on-primary: var(--cbx-on-dark);
  --f7-md-primary-container: var(--cbx-pink-bg);
  --f7-md-on-primary-container: var(--cbx-pink);
}
.color-blue,
.dark .color-blue {
  --f7-md-primary: var(--cbx-link);
  --f7-md-on-primary: var(--cbx-on-dark);
  --f7-md-primary-container: var(--cbx-info-bg);
  --f7-md-on-primary-container: var(--cbx-link);
}
.color-gray,
.dark .color-gray {
  --f7-md-primary: var(--cbx-text-2);
  --f7-md-on-primary: var(--cbx-on-dark);
  --f7-md-primary-container: var(--cbx-fill);
  --f7-md-on-primary-container: var(--cbx-text-2);
}
.color-black,
.dark .color-black {
  --f7-md-primary: var(--cbx-text);
  --f7-md-on-primary: var(--cbx-on-dark);
  --f7-md-primary-container: var(--cbx-fill);
  --f7-md-on-primary-container: var(--cbx-text);
}

/* Кнопка запису майстра (sticky CTA, шторка відгуків, переглядач робіт) і ховер слота — колір акценту --cbx-primary
   (= --cbx-cta-accent, фолбек — жовтий). Наведення — фон, освітлений color-mix (18% білого).
   --cbx-cta-hover / --cbx-cta-text — необов'язкові ручні перебивання. *-c — обчислені значення, задаються на самому елементі. */
.button-fill.cbx-cta,
.cbx-notice--slots .button {
  --cbx-cta-c: var(--cbx-primary);
  --cbx-cta-hover-c: var(--cbx-cta-hover, color-mix(in srgb, var(--cbx-cta-c) 82%, #fff));
  --cbx-cta-text-c: var(--cbx-cta-text, var(--cbx-on-primary));
  --cbx-cta-hover-text-c: var(--cbx-cta-text, var(--cbx-on-primary));
}

/* Текст на кольорових заливках — ОДНА реалізація: lch(from <фон> calc((72 - l) * infinity) 0 0) — L < 72 → білий, інакше чорний.
   Для акценту (--cbx-on-primary, CTA: --cbx-cta-text-c, --cbx-cta-hover-text-c) межа 60: колір обирає салон, середньо-світлим
   кольорам (бірюзовий, синій) потрібен чорний текст. .color-*, --cbx-on-text та інші заливки — 72.
   Фолбеки (без relative color: iOS < 18, Chrome < 125) — у правилах вище. Новий колір заливки з текстом — сюди ж.
   Обчислюється на тому елементі, де оголошено (див. пастку біля --cbx-on-primary у :root). */
@supports (color: lch(from red l c h)) {
  :root {
    --cbx-on-primary: lch(from var(--cbx-primary) calc((60 - l) * infinity) 0 0);
    --cbx-on-text: lch(from var(--cbx-text) calc((72 - l) * infinity) 0 0);
  }
  .color-red,
  .color-green,
  .color-yellow,
  .color-orange,
  .color-pink,
  .color-blue,
  .color-gray,
  .color-black,
  .dark .color-red,
  .dark .color-green,
  .dark .color-yellow,
  .dark .color-orange,
  .dark .color-pink,
  .dark .color-blue,
  .dark .color-gray,
  .dark .color-black {
    --f7-md-on-primary: lch(from var(--f7-md-primary) calc((72 - l) * infinity) 0 0);
  }
  .button-fill.cbx-cta,
  .cbx-notice--slots .button {
    --cbx-cta-text-c: var(--cbx-cta-text, lch(from var(--cbx-cta-c) calc((60 - l) * infinity) 0 0));
    --cbx-cta-hover-text-c: var(--cbx-cta-text, lch(from var(--cbx-cta-hover-c) calc((60 - l) * infinity) 0 0));
  }
}

/* ---------- 3. Перебивання від класів F7 ---------- */

/* Ширина віджета 360–600px, ширше — по центру.
   transform робить #app контейнером для position:fixed (popup/sheet не вилазять за межі). */
body,
.dark body {
  background: var(--cbx-body-bg);
}
#app {
  min-width: var(--cbx-width-min);
  max-width: var(--cbx-width-max);
  margin: 0 auto;
  transform: translateZ(0);
}

/* Веб (не Cordova): скрол документа, а не .page-content — сторінка росте по вмісту.
   F7 позиціонує бари/шторки відносно #app; тут вони fixed у межах колонки віджета.
   device-cordova F7 ставить на <html> сам. */
html:not(.device-cordova) {
  overscroll-behavior: auto; /* F7 ставить none — Safari 26 тоді не скролить документ колесом/трекпадом зовсім */
  --cbx-col-left: calc(50% - min(50%, var(--cbx-width-max) / 2)); /* лівий край колонки віджета */
  --cbx-col-width: min(100%, var(--cbx-width-max));
}
html:not(.device-cordova),
html:not(.device-cordova) body,
html:not(.device-cordova) #app,
html:not(.device-cordova) #app > .view {
  height: auto;
  min-height: 100%;
  overflow: visible;
}
html:not(.device-cordova) #app {
  transform: none;
}
/* колонка обрізає по горизонталі: попередня сторінка (md: -24px) і сторінки під час переходу не виступають за її межі */
html:not(.device-cordova) #app > .view {
  overflow-x: clip;
}
/* відкрита шторка: скролиться лише її вміст, документ під нею — ні */
html:not(.device-cordova):has(#app .sheet-modal.modal-in) {
  overflow: hidden;
}
html:not(.device-cordova) .page-current {
  position: relative;
  min-height: 100vh;
  height: auto;
}
/* відступ під вмістом: інакше margin останнього блоку виходить за .page-content і під body з'являється смуга.
   Через змінну F7, щоб не перебити відступ під таббар (.toolbar-bottom ~ * ставить її сам) */
html:not(.device-cordova) .page {
  --f7-page-content-extra-padding-bottom: 16px;
}
html:not(.device-cordova) .page-current > .page-content {
  height: auto;
  overflow: visible;
}
/* navbar лишається вгорі екрана; головний (прозорий) — їде з вмістом, як на макеті */
html:not(.device-cordova) .page-current > .navbar:not(.navbar-transparent) {
  position: fixed;
  left: var(--cbx-col-left);
  width: var(--cbx-col-width);
}
html:not(.device-cordova) .page-current > .toolbar-bottom:not(.tabbar) {
  position: fixed;
  left: var(--cbx-col-left);
  width: var(--cbx-col-width);
  transform: none; /* F7: translateZ(0) + backface-visibility: hidden — окремий шар; у вбудованих браузерах iOS (Instagram) кнопка в ньому зникала */
  backface-visibility: visible;
}
html:not(.device-cordova) .page-current > .toolbar.tabbar {
  position: fixed;
  left: calc(var(--cbx-col-left) + 16px);
  width: calc(var(--cbx-col-width) - 32px);
}
html:not(.device-cordova) .sheet-modal {
  position: fixed;
  left: var(--cbx-col-left);
  width: var(--cbx-col-width);
}
html:not(.device-cordova) .sheet-backdrop,
html:not(.device-cordova) .dialog-backdrop,
html:not(.device-cordova) .dialog,
html:not(.device-cordova) .toast,
html:not(.device-cordova) .preloader-backdrop,
html:not(.device-cordova) .preloader-modal {
  position: fixed; /* прелоадер F7 (absolute у #app) — по центру вікна = колонки, незалежно від скролу документа */
}

/* popup (спеціалісти комплексу, політика скасування): на висоту вікна в колонці віджета (#app росте з документом,
   тож absolute-popup F7 виходив вищим за вікно — нижня панель за краєм); скрол — у вмісті popup, бари — штатні absolute F7 */
html:not(.device-cordova) .popup {
  position: fixed;
  top: 0;
  left: var(--cbx-col-left);
  width: var(--cbx-col-width);
  height: 100%;
  margin: 0;
}
html:not(.device-cordova):has(#app .popup.modal-in) {
  overflow: hidden;
}
html:not(.device-cordova) .popup .page-current {
  min-height: 0;
  height: 100%;
}
html:not(.device-cordova) .popup .page-current > .page-content {
  height: 100%;
  overflow: auto;
}
html:not(.device-cordova) .popup .page-current > .navbar,
html:not(.device-cordova) .popup .page-current > .toolbar-bottom:not(.tabbar) {
  position: absolute;
  left: 0;
  width: 100%;
}

/* Іконки FA усередині компонентів F7: розмір задає компонент, не шрифт FA */
.icon.fa, .icon.fas, .icon.far, .icon.fal, .icon.fab {
  width: auto;
  height: auto;
  font-size: 16px;
  line-height: 1;
}

/* ===== Navbar ===== */
.navbar .title {
  display: flex;
  flex-direction: column;
  white-space: normal;
}
/* довгий заголовок: до 2 рядків, далі …; navbar росте за вмістом (макет 21: 2 рядки + «Крок N з M» — 100, відступи 14).
   .navbar-inner — за вмістом (мін. штатна); app.js navbarFit ставить сторінці --f7-navbar-height → F7 бере її і для відступу .page-content */
.navbar .title:not(:has(> .subtitle)),
.navbar .title > .cbx-navbar__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.navbar:not(.navbar-transparent) > .navbar-inner {
  top: 0;
  bottom: auto;
  height: auto;
  min-height: calc(var(--cbx-navbar-height) + var(--f7-safe-area-top));
  padding-top: calc(14px + var(--f7-safe-area-top));
  padding-bottom: 14px;
}
/* вищий за штатний (макет 21): ‹, заголовок і кнопки праворуч — зверху, на 14 */
.navbar.cbx-navbar--tall > .navbar-inner {
  align-items: flex-start;
}
.navbar .left .link.back {
  width: 36px;
  height: 36px;
  min-width: 0;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
  background: var(--cbx-fill);
}
/* «Крок N з M» */
.navbar .subtitle {
  font-weight: 500;
}
/* md F7: .left margin 4px з обох боків → ‹ назад на 20, заголовок на 72; макет — 16 / 64 (16 + 36 + 12) */
.md .navbar .left {
  margin-left: 0;
  margin-right: 0;
}
.navbar .right {
  gap: 10px;
}
/* правий край кнопок = край карток (16px): md F7 дає .right margin-right 4px,
   а без .left/.title (головна) — position:absolute; right:0, тобто 4px від краю */
.md .navbar .right {
  margin-right: 0;
}
.md .navbar .right:first-child {
  right: calc(var(--f7-navbar-inner-padding-right) + var(--f7-safe-area-right));
}
/* online у панелі сайту (ws.min.js, клас — core/config.js): ✕ панелі 40×40 у правому верхньому куті поверх віджета — 🌙 і мова лівіше */
.cbx-in-frame .navbar .right {
  padding-right: 44px;
}
/* 🌙 і мова — маленькі outline-кнопки 30px з білим фоном (md F7 робить a з однією іконкою 48px) */
.md .navbar .right a.button {
  width: auto;
}
.navbar .button {
  --f7-button-bg-color: var(--cbx-surface);
  --f7-button-small-height: 30px;
  --f7-button-border-radius: var(--cbx-radius-sm);
  --f7-button-padding-horizontal: 6px;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}
.navbar .button .icon {
  font-size: 16px;
  color: var(--cbx-text-2);
}
.navbar .button .icon.fa-chevron-down {
  width: 12px;
  font-size: 12px;
  color: var(--cbx-text-3);
}
/* мова — ширина як у макеті (72) */
.navbar .smart-select.button {
  min-width: 72px;
}
/* мова — Smart Select: підпис у <span> (valueEl); F7 дає span + .icon відступ 4px — проміжок і так задає gap кнопки */
.navbar .smart-select > span + .icon {
  margin-left: 0;
}
/* головний navbar: без фону й рамки (фон F7 показує лише після прокрутки — .navbar-transparent-visible);
   🌙 і мова — на 16px від верху; перша картка — на 58px від верху, як на макеті */
.navbar-transparent {
  --f7-navbar-height: 63px;
}
.navbar-transparent ~ * {
  --f7-page-navbar-offset: calc(48px + var(--f7-safe-area-top)); /* 48 + відступ картки 10 (головна) = 58 */
}
.navbar-transparent .navbar-inner {
  align-items: flex-start;
  padding-top: 16px;
}
.md .navbar-transparent .right {
  height: auto;
  align-items: flex-start;
}
.navbar-transparent .right .link.icon-only {
  margin-top: -16px;
  margin-left: 14px; /* 24px від кнопки мови */
}
/* ✕ закрити (віджет на сайті) — сіра вкладка в правому верхньому куті */
.navbar .right .link.icon-only {
  align-self: flex-start;
  width: 64px;
  height: 51px;
  margin-right: calc(-1 * var(--f7-navbar-inner-padding-right));
  justify-content: center;
  border-radius: 0 0 0 var(--cbx-radius-card);
  background: var(--cbx-tool-bg);
  color: var(--cbx-text-2);
}
.navbar .right .link.icon-only .icon {
  font-size: 22px;
}

/* ===== Кнопки ===== */
.button {
  gap: 8px;
}
.button .icon {
  font-size: 14px;
}
.button-large .icon {
  font-size: 16px;
}
.button-fill {
  --f7-button-pressed-bg-color: var(--f7-md-primary);
}
.button-tonal {
  --f7-button-bg-color: var(--cbx-fill);
  --f7-button-text-color: var(--cbx-text);
}
.button-outline {
  background: var(--cbx-surface);
}
/* вибрано / додано */
.button-outline.button-active {
  --f7-button-border-color: var(--cbx-text);
  --f7-button-text-color: var(--cbx-text);
  background: var(--cbx-surface);
}
.button-outline[class*="color-"],
.button:not(.button-fill)[class*="color-"] {
  --f7-button-text-color: var(--f7-md-primary);
}
.button.disabled {
  opacity: 1;
  --f7-button-bg-color: var(--cbx-border);
  --f7-button-fill-bg-color: var(--cbx-border);
  --f7-button-text-color: var(--cbx-text-3);
  --f7-button-fill-text-color: var(--cbx-text-3);
  box-shadow: none;
}

/* посилання в тексті */
.link {
  gap: 4px;
  color: var(--cbx-link);
  font-size: 13px;
  font-weight: 500;
}
.link .icon {
  font-size: 12px;
}

/* ===== Поля (list + item-input) ===== */
.md .list .item-input {
  position: relative;
  min-height: var(--cbx-field-height);
  margin-bottom: 12px;
  padding: 0 0 0 16px;
  border: 1px solid transparent;
  border-radius: var(--cbx-radius);
  background: var(--cbx-fill);
}
.list .item-input:last-child {
  margin-bottom: 0;
}
.list .item-input .item-inner {
  padding: 7px 16px 7px 0; /* 52 з рамкою 1 (--cbx-field-height) */
  min-height: 0;
  align-self: center;
}
.list .item-input .item-inner {
  position: static;
}
.md .list .item-input .item-inner:after,
.md .list .item-input .item-input-wrap:after,
.md .list .item-input.item-content:after {
  display: none;
}
.list .item-input.item-input-focused,
.list .item-input:focus-within {
  border-color: var(--cbx-text);
  background: var(--cbx-surface); /* активне поле — білий фон, темна рамка */
}
.list .item-input.item-input-invalid {
  border-color: var(--cbx-danger);
}
.list .item-input .item-title.item-floating-label {
  font-size: var(--f7-label-font-size);
  color: var(--cbx-text-3);
}
.list .item-input textarea {
  height: var(--f7-textarea-height);
  padding: 0;
}
.list .item-input .item-media {
  align-self: center;
  min-width: 0;
  padding: 0;
  gap: 4px;
  font-size: 16px;
}
.list .item-input .item-media .icon {
  font-size: 11px;
  color: var(--cbx-text-3);
}
.list .item-input > .item-after {
  align-self: center;
  margin: 0;
  padding-right: 16px;
  color: var(--cbx-text-3);
  font-weight: 400;
}
.list ul:has(> .item-input) {
  background: none;
}
.list ul:has(> .item-input):before,
.list ul:has(> .item-input):after {
  display: none;
}
/* текст помилки — під полем, з ⓘ */
.list .item-input .item-input-wrap {
  position: static;
}
/* видно лише при .item-input-invalid (як у F7: інакше display: none) — display: flex без умови показував текст під наступним полем після виправлення */
.list .item-input .item-input-error-message {
  align-items: center;
  gap: 6px;
  top: calc(100% + 8px);
}
.list .item-input.item-input-invalid .item-input-error-message {
  display: flex;
}
/* бронювання (39): довгий текст помилки — переносом, не обрізати (відступ знизу — online.js за висотою) */
.list .item-input .item-input-error-message:has(.icon) {
  align-items: flex-start;
  white-space: normal;
  line-height: var(--cbx-line-height);
}
.list .item-input .item-input-error-message > .icon {
  margin-top: 2px;
}
.md .list .item-input.item-input-invalid {
  margin-bottom: 36px; /* місце під текст помилки (absolute); li.item-input-invalid програвав .md .list .item-input */
}
/* F7 validate (вхід, крок 3 / профіль) додає .item-input-with-error-message → padding-bottom: 24px !important: поле росте, текст помилки
   зсувається на наступне поле. Висота поля — як без помилки, місце під текст — margin-bottom вище */
.md .list .item-input.item-input-with-error-message {
  padding-bottom: 0 !important;
}
/* телефон: кнопка країни intlTelInput — у .item-media (login-user.js переносить), шеврон макета — у кнопці; поле — без відступу під прапорець */
.list .item-input .iti {
  display: block;
}
.list .item-input .iti input {
  padding-left: 0;
  padding-right: 0;
}
/* кнопка країни — на всю висоту поля від лівого краю (зручно натискати) */
.list .item-input .item-media:has(.iti__flag-container) {
  align-self: stretch;
  margin-left: -16px;
}
.list .item-input .iti__flag-container {
  position: static;
  height: 100%;
  padding: 0;
}
.list .item-input .iti__selected-flag {
  gap: 4px;
  padding: 0 0 0 16px;
  outline: none;
}
.list .item-input .iti__arrow {
  display: none;
}

/* ===== Пошук ===== */
/* пошук на білій поверхні (картка, шторка) — сірий фон, як у полів (list + item-input); на фоні сторінки — білий */
.card .searchbar,
.sheet-modal .searchbar {
  --f7-searchbar-input-bg-color: var(--cbx-fill);
}
.searchbar-inline {
  --f7-searchbar-input-border-radius: var(--cbx-radius);
}
/* ✕ очистити (поза макетом — рішення Романа): F7 показує .input-clear-button лише з .input-with-value — тут показ за станом пошуку (if) */
.searchbar .searchbar-input-wrap .input-clear-button {
  --f7-searchbar-input-clear-button-color: var(--cbx-text-3);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.searchbar-inline .searchbar-input-wrap input {
  padding-left: 40px;
}
.searchbar .searchbar-icon.icon {
  left: 16px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: 0;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--cbx-text-3);
}
.searchbar .searchbar-icon.icon:after {
  content: none;
}

/* ===== Segmented ===== */
.segmented-strong {
  border-radius: var(--cbx-radius-card);
}
/* таби візитів (58; макет): 45 = 2 + 41 + 2, без проміжків, 13/600 */
.segmented-strong {
  --f7-segmented-strong-padding: 2px;
  --f7-segmented-strong-between-buttons: 0px;
}
.segmented-strong .button {
  height: 41px;
  font-size: 13px;
  border-radius: var(--cbx-radius);
}
.segmented-strong .segmented-highlight {
  border-radius: var(--cbx-radius);
}
/* pill-вибір: міста, місяці, суми — окремі кнопки .button-outline з проміжком, горизонтальний скрол */
.segmented-round {
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.segmented-round .button,
.segmented-round .button:first-child,
.segmented-round .button:last-child {
  flex: 0 0 auto;
  width: auto;
  padding: 0 16px;
  border: 1px solid var(--cbx-border);
  border-radius: var(--cbx-radius-pill);
  color: var(--cbx-text-2);
  font-size: 14px;
}
.segmented-round .button:before {
  display: none;
}
/* F7: .segmented .button-outline не першої кнопки — без лівої рамки */
.segmented-round .button.button-outline:not(:first-child) {
  border-left: 1px solid var(--cbx-border);
}
.segmented-round .button.button-outline.button-active:not(:first-child) {
  border-left-color: var(--cbx-text);
}
.segmented-round .button.button-active {
  border-color: var(--cbx-text);
  color: var(--cbx-text);
}
/* pill-вибір як поле F7: рядок .item-input без фону, рамки й вертикальних відступів поля (анкета входу, auth-new; підпис — над рядком) */
.list .item-input:has(> .item-inner > .item-input-wrap > .segmented-round),
.list .item-input.item-input-invalid:has(> .item-inner > .item-input-wrap > .segmented-round) {
  padding-left: 0;
  border-color: transparent;
  background: none;
}
.item-input .item-inner:has(> .item-input-wrap > .segmented-round) {
  padding-top: 0;
  padding-bottom: 0;
}
/* з помилкою — рамки кольору помилки, як у поля (усі 4 сторони: перебиває ліву рамку не першої кнопки) */
.item-input-invalid .segmented-round .button.button-outline,
.item-input-invalid .segmented-round .button.button-outline:not(:first-child) {
  border-color: var(--cbx-danger);
}

/* ===== Card ===== */
.card {
  overflow: hidden;
}
.card-header {
  padding-top: 16px;
  padding-bottom: 16px;
}
.card-header + .card-content {
  border-top: 1px solid var(--cbx-border);
}
.card-outline {
  border-radius: var(--cbx-radius);
}
/* заголовки в картці: F7-блоки без своїх відступів */
.card .block-title {
  margin: 0 0 12px;
  padding: 0;
}
.card .block-header {
  margin: -6px 0 12px;
  padding: 0;
  font-weight: 500;
}
/* підпис секції «НАПИСАТИ НАМ» */
.card .block-title.text-color-gray {
  font-size: 14px;
  text-transform: uppercase;
}
/* поля в картці (вхід, профіль): F7 тягне .list у .card-content-padding на -16px — тут без цього, 16 до кнопки */
.card-content-padding > .list:not(.media-list) {
  margin-top: 0;
  margin-bottom: 16px;
}
/* плитки (стать) → кнопка: 24 */
.card-content-padding > .grid + .button {
  margin-top: 24px;
}
/* media-list у картці («Що ви отримуєте»): рядки по краях вмісту картки */
.card .media-list {
  margin: 4px 0 -16px;
  --f7-list-item-padding-horizontal: 0px;
}

/* статус у правому верхньому куті картки */
.card > .badge {
  position: absolute;
  top: 0;
  right: 0;
  height: 24px;
  padding: 0 8px;
  border-radius: 0 var(--cbx-radius-card) 0 var(--cbx-radius);
  font-size: 11px;
  font-weight: 600;
  text-transform: none;
}

/* ===== Списки ===== */
.list-strong.inset > ul {
  box-shadow: var(--cbx-shadow-card);
}
/* inset-список без тіні (згода з офертою) — фоном сторінки */
.list.inset:not(.list-strong) > ul {
  background: var(--cbx-bg);
  border-radius: var(--f7-list-inset-border-radius); /* = --cbx-radius-card; локально — через змінну (філії 21) */
}
.list .item-title {
  font-size: 15px;
}
.media-list .item-title {
  font-size: 15px;
}
/* рядок меню (без media-list): 14/500 */
.list:not(.media-list) .item-title {
  font-size: 14px;
  font-weight: 500;
}
/* рядок без посилання в media-list (історія, профіль): 13/600 + підпис 11 */
.media-list li.item-content .item-title {
  font-size: 13px;
}
.media-list li.item-content .item-subtitle {
  font-size: 11px;
  white-space: normal;
}
/* сума / ✏️ праворуч — по центру висоти рядка */
.media-list li.item-content .item-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 8px;
}
.media-list li.item-content .item-title-row {
  display: contents;
}
.media-list li.item-content .item-after {
  grid-column: 2;
  grid-row: 1 / span 2;
}
.media-list li.item-content .item-subtitle {
  grid-column: 1;
}
.list .item-subtitle,
.list .item-footer {
  font-size: 12px;
  color: var(--cbx-text-2);
  font-weight: 400;
}
/* chevron FA замість шрифтового F7 */
.list .item-link .item-inner:before {
  font-family: 'Font Awesome 5 Pro';
  font-weight: 400;
  content: '\f054';
  font-size: 14px;
  color: var(--cbx-text-3);
}
.list .item-media .icon {
  font-size: 16px;
  color: var(--cbx-text-3);
  width: 20px;
  text-align: center;
}
/* рядок-посилання лише із заголовком (46: Google Calendar, Маршрут) — заголовок по центру кружка */
.media-list .item-link .item-inner:not(:has(.item-subtitle, .item-text)) {
  align-self: center;
  min-height: 0;
}
/* список рядків-посилань: 16 від краю картки до кружка (10 дає рядок + 6 тут), між рядками — без змін */
.media-list.chevron-center > ul {
  padding: 6px 0;
}
/* іконка в кружку: bg-color-* — суцільний бренд/колір і біла іконка; color-* — тонований; text-color-* — без кружка (50: «Вийти») */
.list .item-media .icon[class*="color-"]:not([class*=" text-color-"]) {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 14px;
  color: var(--cbx-on-brand);
}
.list .item-media .icon[class*="color-"]:not([class*="bg-color-"]):not([class*=" text-color-"]) {
  background: var(--f7-md-primary-container);
  color: var(--f7-md-on-primary-container);
}
.list .item-after[class*="text-color-"] {
  font-size: 14px;
  font-weight: 700;
}

/* ===== Accordion (категорія послуг = окрема картка) ===== */
.accordion-list.inset > ul {
  background: none;
  box-shadow: none;
}
.accordion-list.inset .accordion-item {
  margin-bottom: var(--cbx-gap);
  border-radius: var(--cbx-radius-card);
  background: var(--cbx-surface);
  box-shadow: var(--cbx-shadow-card);
  overflow: hidden;
}
/* категорія (23): 71 — 16 + назва 15 + 4 + «N послуг» 12/500 + 16 */
.accordion-list.inset .accordion-item > .item-link {
  --f7-list-item-padding-vertical: 16px;
}
.accordion-list.inset .accordion-item > .item-link .item-title {
  text-transform: uppercase;
  /* назва категорії: до 2 рядків, далі … (F7 .item-title — nowrap в 1 рядок) */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
  overflow: hidden;
}
.accordion-list.inset .accordion-item > .item-link .item-subtitle {
  margin-top: 4px;
  font-weight: 500;
}
/* акції → категорії 24 (23) */
.block:has(> swiper-container) + .accordion-list {
  margin-top: 24px;
}
.accordion-list .accordion-item > .item-link .item-inner:before,
.accordion-list .accordion-item > .item-link .item-inner:after {
  display: none;
}
.accordion-list .accordion-item > .item-link .item-inner {
  padding-right: 48px;
}
.accordion-list .accordion-item > .item-link .item-title {
  font-weight: 700;
}
.accordion-list .accordion-item > .item-link .item-inner:before {
  display: block;
  content: '\f078';
  width: 16px; /* F7 md — 8px: іконка 16 по центру вилазила на 4px праворуч */
  font-size: 16px;
  right: 16px;
}
.accordion-list .accordion-item-opened > .item-link .item-inner:before {
  content: '\f077';
}
.accordion-list .accordion-item-opened .accordion-item-content {
  padding: 0 16px 16px;
}

/* ===== Badge / Chip ===== */
.badge {
  gap: 4px;
  background: var(--f7-md-primary-container);
  color: var(--f7-md-on-primary-container);
  border-radius: var(--cbx-radius);
  text-transform: uppercase;
}
.chip {
  gap: 6px;
}
.chip-outline {
  --f7-chip-height: 24px;
  --f7-chip-font-size: 12px;
  --f7-chip-font-weight: 500;
  --f7-chip-padding-horizontal: 7px; /* + рамка 1 = текст на 8, як у макеті (рамка всередині) */
  background: var(--cbx-fill);
  border-radius: var(--cbx-radius-pill);
  color: var(--cbx-text-2);
}
/* рейтинг: ⭐ 5.0 | 45 reviews › */
a.chip {
  --f7-chip-border-radius: var(--cbx-radius-pill);
  --f7-chip-font-size: 12px;
  height: 31px;
}
a.chip .chip-media {
  font-size: 15px;
  width: auto;
  height: auto;
  background: none;
}
a.chip b {
  font-size: 15px;
  font-weight: 700;
  color: var(--cbx-text);
  padding-right: 8px;
  border-right: 1px solid var(--cbx-border);
  margin-right: 2px;
}
a.chip .icon {
  font-size: 12px;
  color: var(--cbx-text-3);
}

/* ===== Checkbox ===== */
.checkbox i.icon-checkbox {
  border-color: var(--cbx-text-2);
}
.checkbox input:checked ~ i.icon-checkbox,
.item-checkbox input:checked ~ .icon-checkbox {
  background: var(--cbx-text);
  border-color: var(--cbx-text);
}
.list .item-checkbox .item-title {
  white-space: normal;
  font-size: 14px;
  font-weight: 400;
  color: var(--cbx-text-2);
}

/* ===== Прапорець мови (navbar: кнопка мови і пункти Smart Select) =====
   Однаковий бокс 20×20 і для emoji-прапорців, і для мов без прапорця (ru — код у плашці розміром з прапорець); відступ до тексту однаковий:
   у кнопці — margin-left підпису, у списку — item-media F7. Пункт списку отримує клас через data-option-icon="cbx-flag cbx-flag-xx". */
.cbx-flag,
.smart-select-popover .item-media .icon.cbx-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 20px;
  height: 20px;
  font-style: normal;
  font-size: 16px;
  line-height: 1;
  color: var(--cbx-text-2);
}
.cbx-flag-ua::before { content: '🇺🇦'; }
.cbx-flag-en::before { content: '🇬🇧'; }
.cbx-flag-pl::before { content: '🇵🇱'; }
.cbx-flag-by::before { content: '🇧🇾'; }
.cbx-flag-es::before { content: '🇪🇸'; }
.cbx-flag-sk::before { content: '🇸🇰'; }
/* ru — плашка розміром з emoji-прапорець (16×12 у боксі 20×20) */
.cbx-flag-ru::before {
  content: 'ru';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 16px;
  height: 12px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-size: 8px;
  font-weight: 700;
}
.navbar .smart-select > .cbx-flag + span {
  margin-left: 6px; /* F7 дає .button > i + span 4px */
}

/* ===== Smart Select у popover (вибір мови) — штатний F7, перебивання під бібліотеку ===== */
.smart-select-popover {
  --f7-popover-width: 220px;
  --f7-popover-border-radius: var(--cbx-radius);
  --f7-popover-bg-color: var(--cbx-surface);
  box-shadow: var(--cbx-shadow-card);
}
.smart-select-popover .list {
  margin: 4px 0;
  --f7-list-bg-color: transparent;
  --f7-list-item-title-font-size: 14px;
  --f7-list-item-title-font-weight: 500;
}
/* вибраний пункт — галочка (far fa-check) замість радіо-кола md; невибрані — без позначки */
.md .smart-select-popover .icon-radio {
  --f7-radio-size: 16px;
  border: 0;
}
.md .smart-select-popover .icon-radio:after {
  content: '\f00c';
  font: 400 16px/16px 'Font Awesome 5 Pro';
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  margin: 0;
  border-radius: 0;
  background: none;
  color: var(--cbx-text);
  transform: none;
  opacity: 0;
}
.md .smart-select-popover label.item-radio input[type='radio']:checked ~ .icon-radio:after {
  background: none; /* F7 md: заливка-крапка вибраного радіо */
  opacity: 1;
}

/* ===== Sheet ===== */
.sheet-modal {
  height: auto;
  border-radius: var(--cbx-radius-lg) var(--cbx-radius-lg) 0 0;
}
.sheet-modal-inner {
  position: relative;
  padding: 24px 0 16px;
}
.sheet-modal .block-title {
  margin-top: 0;
  padding-right: 64px;
  font-size: 18px;
  font-weight: 600;
  line-height: var(--cbx-line-height);
  white-space: normal;
  color: var(--cbx-text);
}
.sheet-modal .block-header {
  margin-top: -12px;
  font-size: 12px;
  color: var(--cbx-text-2);
}
.sheet-modal .link.sheet-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2; /* над .page-content шторки (F7 z-index 1, іде в DOM після ✕ — перекривала кнопку, «Детальніше» продажу) */
}
/* круглі іконки-кнопки (✕ у sheet, ✏️) */
.link.icon-only.sheet-close,
.list .item-after .link.icon-only {
  width: 36px;
  height: 36px;
  margin: -8px 0;
  justify-content: center;
  border-radius: 50%;
  background: var(--cbx-fill);
  color: var(--cbx-text-2);
}
.link.icon-only.sheet-close .icon {
  font-size: 18px;
}
/* ✕ у шторці — на 16 від верху (25, 54; макет): без від’ємного margin рядка списку */
.sheet-modal .link.icon-only.sheet-close {
  margin: 0;
}
/* шторка з полем — поповнення (54; макет): заголовок «авто» на 27, підпис через 2, поле через 12, суми 24 через 12, кнопка через 40, під нею 32 */
.sheet-modal:has(input) .sheet-modal-inner {
  padding: 27px 0 32px;
}
.sheet-modal:has(input) .block-title {
  margin-bottom: 0;
  line-height: var(--cbx-line-height-auto);
}
.sheet-modal:has(input) .block-header {
  margin-top: 2px;
}
.sheet-modal:has(input) .list,
.sheet-modal:has(input) .block {
  margin: 12px 0 0;
}
.sheet-modal:has(input) .block:last-child {
  margin-top: 40px;
}
.sheet-modal:has(input) .item-input .item-after {
  font-weight: 500;
  line-height: 1;
}
/* пресети сум — чипи вибору 24 (не кнопки-дії): 12/600, текст на 8 (7 + рамка), між ними 4 */
.sheet-modal:has(input) .segmented-round {
  gap: 4px;
}
.sheet-modal:has(input) .segmented-round {
  --f7-button-small-height: 24px;
}
.sheet-modal:has(input) .segmented-round .button {
  padding: 0 7px;
  font-size: 12px;
  font-weight: 600;
}
/* довгий вміст (відгуки): заголовок і ✕ на місці, скрол — у .page-content шторки */
.sheet-modal:has(.page-content) {
  flex-direction: column;
  max-height: calc(100% - 133px);
}
/* flex — лише коли шторка показана. F7 при відкритті ставить inline style="display: block",
   тому !important; закриту (без modal-in/out) F7 ховає сам. */
.sheet-modal:has(.page-content).modal-in,
.sheet-modal:has(.page-content).modal-out {
  display: flex !important;
}
/* шторка з height:auto — max-height:100% у дочірнього не діє; стискаємо як flex-елемент */
.sheet-modal:has(.page-content) .sheet-modal-inner {
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;
  min-height: 0;
  height: auto;
  max-height: 100%;
  padding-bottom: 0;
}
.sheet-modal:has(.page-content) .sheet-modal-inner > :not(.page-content) {
  flex-shrink: 0; /* стискається лише список */
}
.sheet-modal .page-content {
  position: static;
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  padding: 0 0 calc(16px + var(--f7-safe-area-bottom));
}
.sheet-modal .page-content > .block {
  margin: 0 0 24px;
}
.sheet-modal .page-content > .block:last-child {
  margin-bottom: 0;
}
.sheet-backdrop,
.dialog-backdrop {
  background: var(--cbx-overlay);
  backdrop-filter: blur(var(--cbx-blur));
}

/* ===== Dialog ===== */
.dialog {
  box-shadow: none;
}
.dialog.modal-in {
  display: block;
}
.dialog-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-bottom: 0;
}
.dialog-title {
  margin: 0;
  line-height: var(--cbx-line-height);
}
.dialog-text {
  margin: 0;
}
.dialog-inner > .icon,
.cbx-otp > .icon,
.cbx-result > .icon {
  width: 72px;
  height: 72px;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--f7-md-primary-container);
  color: var(--f7-md-on-primary-container);
  font-size: 32px;
  font-style: normal;
}
.md .dialog-buttons {
  height: auto;
  gap: 12px;
  padding: 24px;
  justify-content: center;
}
.dialog-buttons .button {
  flex: 1;
  max-width: 100%;
}
.dialog-buttons .button:only-child {
  flex: 0 0 136px;
}
/* діалог (51; макет): заголовок на 40 від верху, бокові 16; кнопки через 26, між ними 10, під ними 40, r12 (F7 md — button-round) */
.dialog > .dialog-inner {
  padding: 40px 16px 0;
}
.md .dialog > .dialog-buttons {
  gap: 10px;
  padding: 26px 16px 40px;
}
.dialog .dialog-button {
  border-radius: var(--cbx-radius);
}
/* App.Alert з текстом: F7 md .dialog-title + .dialog-text — margin-top 20 (+ gap 8); як у 51 — лише gap */
.md .dialog-title + .dialog-text {
  margin-top: 0;
}

/* Dialog-вміст у картці (19-login-success: іконка, заголовок, текст, кнопка на всю ширину) */
.card > .dialog-inner {
  padding: 40px 16px 0;
  gap: 12px;
  text-align: center;
}
.card > .dialog-inner > .icon {
  margin-bottom: 12px;
}
.card > .dialog-inner .dialog-text {
  margin: 0;
  line-height: var(--cbx-line-height);
  color: var(--cbx-text-2);
  font-size: 13px;
  font-weight: 500;
}
.card > .dialog-buttons {
  padding: 24px 16px 40px;
}
.card > .dialog-buttons .button:only-child {
  flex: 1;
}
/* дві дії в картці (29: вільна дата + список очікування) — колонкою */
.card > .dialog-buttons:has(.button + .button) {
  flex-direction: column;
  gap: 12px;
}
.card > .dialog-buttons:has(.button + .button) .button {
  flex: none;
}
/* успіх входу, посилання на оплату поповнення (56) — без navbar, картка на 52 від верху */
.page[data-name="login-success"] > .page-content,
.page[data-name="balance-success"] > .page-content {
  padding-top: 36px;
}

/* ===== Нижня панель з CTA (13–16: «Підтвердити») ===== */
.toolbar-bottom:not(.tabbar),
.toolbar-bottom:not(.tabbar) ~ * {
  --f7-toolbar-height: 76px;
}
.toolbar-bottom:not(.tabbar) {
  --f7-toolbar-bg-color: var(--cbx-surface);
}
.toolbar-bottom:not(.tabbar):before {
  display: none;
}
.toolbar-bottom:not(.tabbar) .toolbar-inner {
  padding: 12px 16px;
}
.toolbar-bottom:not(.tabbar) .button {
  flex: 1;
}

/* ===== Tabbar: «скляна» pill ===== */
.toolbar.tabbar {
  left: 16px;
  bottom: 12px;
  width: calc(100% - 32px);
  border: .6px solid var(--cbx-glass-border);
  border-radius: var(--cbx-radius-pill);
  backdrop-filter: blur(var(--cbx-blur));
}
/* «+ Запис» виступає над таббаром: F7 обрізає (overflow: hidden у .toolbar, .toolbar-inner, md .tab-link) — лише для нашого таббару */
.toolbar:has(.cbx-tabbar-add),
.toolbar-inner:has(.cbx-tabbar-add),
.md .tabbar-icons .tab-link.cbx-tabbar-add {
  overflow: visible;
}
/* контент сторінки не ховається під «плаваючим» таббаром: + відступ знизу (12) + проміжок (12) */
.toolbar-bottom:has(.cbx-tabbar-add) ~ * {
  --f7-page-content-extra-padding-bottom: 24px;
}
.toolbar.tabbar .toolbar-inner:before,
.toolbar.tabbar:before,
.toolbar.tabbar:after,
.tabbar .tab-link-highlight {
  display: none;
}
/* пункти — з відступом 15 від країв pill (макет 03) */
.toolbar.tabbar .toolbar-inner {
  padding: 0 15px;
}
.tabbar-icons .tab-link > span {
  line-height: var(--cbx-line-height-auto);
}
.tabbar-icons .tab-link {
  gap: 4px;
  color: var(--f7-tabbar-link-inactive-color);
}
.tabbar-icons .tab-link-active {
  color: var(--f7-tabbar-link-active-color);
}
/* іконка FA без класу .icon: md-індикатор F7 малюється в .icon::before і затирає гліф FA */
.tabbar-icons .tab-link > [class*="fa-"] {
  height: 22px;
  font-size: 20px;
  line-height: 22px;
}

/* ===== Swiper (Swiper Element) ===== */
swiper-container::part(container) {
  padding-bottom: 16px;
}
swiper-container[slides-per-view="auto"] > swiper-slide {
  width: 84%;
  padding: 2px 0 8px; /* місце для тіні картки */
}
swiper-slide > .card {
  margin: 0;
  height: 100%;
}

/* ===== Сіра плашка (згода на вході, 10–12): block-strong inset ===== */
.page-content > .card:has(+ .block-strong.inset) {
  margin-bottom: 12px; /* margin картки 16 інакше перекриває 12 плашки */
}
.block-strong.inset {
  --f7-block-strong-bg-color: var(--cbx-consent-bg);
  --f7-block-inset-border-radius: var(--cbx-radius);
  margin-top: 12px;
  border: 1px solid var(--cbx-border);
  text-align: center;
  font-size: 13px;
  color: var(--cbx-text-2);
}
.block-strong.inset p {
  margin: 0;
}
.block-strong a {
  color: var(--cbx-link);
  text-decoration: underline;
}

/* ===== Типографіка блоків ===== */
.block-footer {
  text-align: center;
  font-size: 12px;
  color: var(--cbx-text-3);
}
.block-footer b {
  color: var(--cbx-brand);
}
/* головна: між картками 10 (01-home-guest … 08, 20), на інших екранах — 16; шторка відгуків — без змін */
.page[data-name="start-screen"] > .page-content {
  --f7-card-margin-vertical: 10px;
  --f7-list-margin-vertical: 10px;
}
/* посилання (01/03): рядок 64 (кружок 36), назва / підпис «авто» через 4 */
.page[data-name="start-screen"] .media-list.chevron-center {
  --f7-list-media-item-padding-vertical: 11.6px;
}
.page[data-name="start-screen"] .media-list.chevron-center > ul {
  padding: 4px 0;
}
/* «НАПИСАТИ НАМ» — «авто» */
.page[data-name="start-screen"] .block-title.text-color-gray {
  line-height: var(--cbx-line-height-auto);
}
.page[data-name="start-screen"] .media-list.chevron-center .item-title,
.page[data-name="start-screen"] .media-list.chevron-center .item-subtitle {
  line-height: var(--cbx-line-height-auto);
}
.page[data-name="start-screen"] .media-list.chevron-center .item-subtitle {
  margin-top: 4px;
}
/* профіль (17, 52): підпис під заголовком → поле 16 */
.page[data-name="user-profile"] .card .block-title-medium + .block-header {
  margin-bottom: 16px;
}
/* «Що ви отримуєте» (10): заголовок 16 «авто», рядки 55 — назва 14 «авто», підпис 12 через 4 */
.page[data-name="login-user"] .card .block-title:not(.block-title-medium) {
  line-height: var(--cbx-line-height-auto);
}
.page[data-name="login-user"] .card .media-list {
  --f7-list-media-item-padding-vertical: 8px;
  margin: -4px 0 -7px;
}
.page[data-name="login-user"] .card .media-list .item-title {
  font-size: 14px;
  line-height: var(--cbx-line-height-auto);
}
.page[data-name="login-user"] .card .media-list .item-subtitle {
  margin-top: 4.4px; /* рядок 55 */
  font-size: 12px;
}
/* футер сторінки (Powered by) — окремо від картки над ним */
.page-content > .block-footer {
  margin: 24px 0 32px;
}

/* ===== Запис (21–37): перебивання класів F7 ===== */
/* відступи блоків — 16, як між картками (макет) */
.page[data-name="choose-filiation"],
.page[data-name="online-record"],
.page[data-name="modal-complex"],
.page[data-name="modal-policy"],
.page[data-name="modal-success"],
.page[data-name="waitlist"],
.page[data-name="master-slot"] {
  --f7-block-margin-vertical: var(--cbx-gap);
  --f7-line-height: var(--cbx-line-height); /* popup: custom.css ставить 1.2 на .popup */
}
.page[data-name="modal-policy"] .cbx-policy p {
  padding: 0;
}
/* промо-картка (23): заголовок 15, умова 12 */
swiper-slide .card .block-title {
  margin-bottom: 4px;
  font-size: 15px;
}
swiper-slide .card .block-header {
  margin: 0 0 12px;
  font-size: 12px;
}
/* «назад» без .back (кроки запису: prevStep mobi, popup-close) — той самий кружок */
.navbar .left .link.icon-only {
  width: 36px;
  height: 36px;
  min-width: 0;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
  background: var(--cbx-fill);
}
/* «Очікують бронювання (N)» (37) — у subnavbar під заголовком */
.navbar .subnavbar {
  position: relative;
  height: auto;
  background: var(--cbx-surface);
}
.navbar .subnavbar .subnavbar-inner,
.navbar .subnavbar > .list {
  width: 100%;
}
.navbar .subnavbar > .list {
  margin: 12px 16px; /* відступ від лінії navbar */
}
.navbar .subnavbar > .list > ul {
  padding: 0;
  background: var(--cbx-surface);
  border: 1px solid var(--cbx-border);
  border-radius: var(--cbx-radius-card);
}
.navbar .subnavbar .item-media .icon[class*="color-"] {
  width: 40px;
  height: 40px;
  font-size: 18px;
  font-style: normal;
}
/* F7 md: a з однією іконкою в navbar — 48px (icon-only); тут рядок на всю ширину */
.md .navbar .subnavbar a.item-link {
  width: 100%;
  padding: 0 0 0 12px;
}
.navbar .subnavbar .item-inner {
  align-self: center;
}
.navbar .subnavbar .item-title {
  font-size: 15px;
  font-weight: 600;
}
/* сторінка з subnavbar: вміст нижче на висоту банера */
html:not(.device-cordova) .page-current > .navbar:has(.subnavbar) ~ .page-content {
  padding-top: calc(var(--f7-navbar-height) + 86px + var(--f7-safe-area-top)); /* банер 62 + 12 + 12 */
}

/* Нижня панель: підказка / плашка + кнопки — колонкою; висота — за вмістом (F7 бере --f7-toolbar-height і для відступу вмісту) */
.toolbar-bottom:not(.tabbar) .toolbar-inner {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  gap: 8px;
}
.toolbar-bottom:not(.tabbar) .toolbar-inner > .block-footer {
  margin: 0;
  padding: 0;
  font-weight: 500;
}
.toolbar-bottom:not(.tabbar) .button {
  flex: none;
  transform: none; /* F7 .md .button: translateZ(0) + transition .3s — див. вище, захист від зникнення кнопки (Instagram, iOS) */
  transition: none;
}
/* фон і текст напряму від акценту, без запасного ланцюжка F7 (--f7-button-fill-bg-color, var(--f7-theme-color)) */
.toolbar-bottom:not(.tabbar) .button-fill:not(.disabled):not(.cbx-cta):not([class*="color-"]) {
  --f7-button-bg-color: var(--cbx-primary);
  --f7-button-text-color: var(--cbx-on-primary);
}
.toolbar-bottom:not(.tabbar):has(.block-footer),
.toolbar-bottom:not(.tabbar):has(.block-footer) ~ * {
  --f7-toolbar-height: 102px;
}
.toolbar-bottom:not(.tabbar):has(.cbx-notice),
.toolbar-bottom:not(.tabbar):has(.cbx-notice) ~ * {
  --f7-toolbar-height: 124px; /* 12 + плашка 38 + 10 + 52 + 12 */
}
/* плашка → кнопка 10 (27, 30, 33) */
.toolbar-bottom:not(.tabbar):has(.cbx-notice) .toolbar-inner {
  gap: 10px;
}
/* плашка «спеціаліст / дата · час» у 2 рядки (30): 53 */
.toolbar-bottom:not(.tabbar):has(.cbx-notice > div > small),
.toolbar-bottom:not(.tabbar):has(.cbx-notice > div > small) ~ * {
  --f7-toolbar-height: 139px;
}
/* 2 великі кнопки без плашки (26: «Продовжити без додаткових» + «Продовжити»): 12 + 52 + 12 + 52 + 12 */
.toolbar-bottom:not(.tabbar):has(.button + .button),
.toolbar-bottom:not(.tabbar):has(.button + .button) ~ * {
  --f7-toolbar-height: 140px;
}
.toolbar-bottom:not(.tabbar):has(.cbx-notice):has(.button + .button),
.toolbar-bottom:not(.tabbar):has(.cbx-notice):has(.button + .button) ~ * {
  --f7-toolbar-height: 190px; /* 12 + плашка 38 + 12 + 52 + 12 + 52 + 12 */
}
/* плашка + 2 кнопки (36): відступи 12 */
.toolbar-bottom:not(.tabbar):has(.cbx-notice):has(.button + .button) .toolbar-inner {
  gap: 12px;
}

/* заголовок картки (Оберіть спеціаліста / день / час, Ваші послуги) */
.card-header {
  font-size: 16px;
  font-weight: 600;
  line-height: var(--cbx-line-height-auto); /* «Ваші послуги» 16 — «авто» */
}

/* обраний рядок списку (F7 .item-selected): білий з рамкою */
.list li.item-selected > .item-content,
.list li.item-selected > a.item-content {
  background: var(--cbx-surface);
  box-shadow: inset 0 0 0 1px var(--cbx-text);
}

/* шторка-підтвердження (confirmBack): вміст як у діалозі */
.sheet-modal .dialog-inner {
  padding: 0 24px;
  text-align: center;
}
.sheet-modal .dialog-buttons {
  display: flex;
}

/* перехід між кроками запису (одна сторінка) — анімації сторінок F7 md */
#app.fade-effect:has(.page-current[data-name="online-record"]) {
  animation: none;
}
.page-content.cbx-step-forward {
  animation: md-page-next-to-current var(--f7-page-transition-duration) cubic-bezier(0, .8, .3, 1);
}
.page-content.cbx-step-backward {
  animation: md-page-previous-to-current calc(var(--f7-page-transition-duration) / 2) cubic-bezier(0, 1, .8, 1);
}

/* ---------- 4. Власні класи (cbx-, БЕМ) ---------- */

/* Плашка-повідомлення: у F7 немає компонента з семантичними кольорами */
.cbx-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid;
  border-radius: var(--cbx-radius);
  font-size: 14px;
  line-height: var(--cbx-line-height);
}
.cbx-notice > .icon {
  flex: none;
  font-size: 14px;
}
.cbx-notice small {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.cbx-notice__after {
  margin-left: auto;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 700;
}
.cbx-notice--info {
  font-size: 13px;
  background: var(--cbx-info-bg);
  border-color: var(--cbx-info-border);
  color: var(--cbx-info-text);
}
.cbx-notice--warning {
  background: var(--cbx-warning-bg-soft);
  border-color: var(--cbx-warning-border);
  border-radius: var(--cbx-radius-card);
  color: var(--cbx-text-2);
}
.cbx-notice--warning b {
  color: var(--cbx-text);
}
.cbx-notice--success {
  padding: 10px 12px;
  background: var(--cbx-success-bg);
  border-color: var(--cbx-success-border);
  color: var(--cbx-success-text);
  font-size: 13px;
}
/* Плашка рейтингу у відгуках: ⭐ 4.69 / 5.0 … 14 348 відгуків */
.cbx-notice--rating {
  gap: 6px;
  background: var(--cbx-rating-bg);
  border-color: var(--cbx-rating-border);
  color: var(--cbx-rating-text);
  font-size: 13px;
  font-weight: 500;
}
.cbx-notice--rating > b {
  font-size: 22px;
  font-weight: 700;
  color: var(--cbx-text);
}
.cbx-notice--rating > span:first-child {
  font-size: 22px;
}
.cbx-notice--rating .cbx-notice__after {
  font-size: 12px;
  font-weight: 500;
}

/* Картка відгуку: сіра, без тіні; ім'я в один рядок з «…», дата праворуч */
.card.cbx-review {
  margin: 0 0 10px;
  padding: 16px;
  background: var(--cbx-fill-soft);
  border-radius: var(--cbx-radius);
  box-shadow: none;
  font-size: 13px;
}
.cbx-review__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.cbx-review__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 14px;
  font-weight: 600;
}
.cbx-review__date {
  font-size: 12px;
  font-weight: 500;
  color: var(--cbx-text-2);
}
.cbx-review__stars {
  font-size: 16px;
  line-height: 24px;
}
.cbx-review__text {
  margin-top: 6px;
  line-height: 1.29;
  overflow-wrap: anywhere;
}

/* Центральна «+ Запис» у таббарі: у F7 немає піднятої вкладки */
.tabbar-icons .cbx-tabbar-add > [class*="fa-"] {
  width: 48px;
  height: 48px;
  margin-top: -26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--cbx-primary);
  box-shadow: var(--cbx-shadow-primary);
  color: var(--cbx-on-primary);
}

/* Позначка вибору в кутку плитки — чорний кружок з ✓ (у F7 checkbox інший вигляд) */
.cbx-check {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--cbx-text);
  color: var(--cbx-on-text);
  font-size: 10px;
}

/* Шапка салону: лого + назва + опис (3 рядки) + чіп рейтингу.
   Media-list F7 у картці тягне правила рядків історії/профілю — тому свій блок */
.cbx-salon {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.cbx-salon__logo {
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--cbx-ring);
  object-fit: cover;
}
.cbx-salon__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.cbx-salon__title {
  margin-bottom: -4px;
  font-size: 18px;
  font-weight: 700;
  line-height: var(--cbx-line-height-auto);
}
.cbx-salon__text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  line-height: var(--cbx-line-height);
  color: var(--cbx-text-2);
}

/* Плитка: кнопка (outline / tonal / active — базові) з іконкою над підписом.
   У F7 кнопка лише в рядок. Підпис — до 2 рядків, далі «…» */
.button.cbx-tile {
  --f7-button-text-color: var(--cbx-text-2);
  height: auto;
  flex-direction: column;
  gap: 6px;
  padding: 15px 4px;
  font-size: 11px;
  font-weight: 500;
  line-height: var(--cbx-line-height);
  white-space: normal;
}
.cbx-tile > .icon {
  font-size: 22px;
  color: var(--cbx-text-3);
}
.cbx-tile > span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* лише іконка: 4 в ряд — 60, 5 в ряд — 52 */
.button.cbx-tile:not(:has(> span)) {
  padding: 18px 0;
}
.grid-cols-5 > .button.cbx-tile:not(:has(> span)) {
  padding: 14px 0;
}
/* швидкі посилання (tonal): однакова висота для 1 і 2 рядків підпису */
.button-tonal.cbx-tile {
  min-height: 88px;
  padding: 16px 12px;
}
/* один месенджер: іконка й підпис в рядок, ширина по вмісту */
.button.cbx-tile--row {
  display: inline-flex;
  width: auto;
  height: 48px;
  flex-direction: row;
  padding: 0 16px;
  font-size: 14px;
}
/* вибір (стать): підпис 14, обрана — базовий .button-active */
.button.cbx-tile--choice {
  gap: 8px;
  padding: 11px 4px;
  font-size: 14px;
  line-height: 1;
}
.cbx-tile.button-active {
  --f7-button-text-color: var(--cbx-text);
  font-weight: 600;
}

/* Код з SMS: 4 клітинки. У F7 немає поля коду.
   Стани — класи F7: .input-focused на клітинці, .input-invalid на блоці */
.cbx-otp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 24px;
  text-align: center;
}
.cbx-otp > .icon {
  margin: 0;
}
.cbx-otp > .block-title {
  margin-bottom: -12px;
}
.cbx-otp > p {
  margin: 0;
  font-size: 13px;
}
.cbx-otp > p .link {
  display: flex;
  justify-content: center;
  margin-top: 4px;
  font-size: 12px;
  line-height: var(--cbx-line-height);
}
.cbx-otp__cells {
  position: relative;
  display: flex;
  gap: 10px;
}
/* поле введення — одне, прозоре поверх клітинок (цифри показують клітинки) */
.cbx-otp__cells > input {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  font-size: 16px; /* iOS не збільшує сторінку при фокусі */
}
.cbx-otp__cell {
  box-sizing: border-box; /* 52 з рамкою */
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--cbx-radius);
  background: var(--cbx-fill);
  font-size: 20px;
  font-weight: 600;
}
.cbx-otp__cell.input-focused {
  border-color: var(--cbx-text);
}
.cbx-otp__cell.input-focused:empty:after {
  content: '';
  width: 1px;
  height: 22px;
  background: var(--cbx-text);
}
.cbx-otp.input-invalid .cbx-otp__cell {
  border-color: var(--cbx-danger);
}
.cbx-otp.input-invalid .input-error-message {
  position: static;
  display: block; /* довгий серверний текст (LC.wrongCode, 44) — переносом, ⓘ у рядку */
  width: auto;
  margin-top: -14px;
  white-space: normal;
}
.cbx-otp .input-error-message > .icon {
  margin-right: 4px;
  vertical-align: -1px;
}
.cbx-otp > .block-footer {
  margin: 0;
  padding: 0;
  color: var(--cbx-text-2);
}

/* ===== Запис (21–37): власні класи ===== */

/* Картка філії (21–22): фото зліва на всю висоту — у F7 немає горизонтальної картки */
.card.cbx-filial {
  display: flex;
  cursor: pointer;
}
.cbx-filial__img {
  flex: 0 0 130px;
  width: 130px;
  min-height: 164px;
  object-fit: cover;
}
.cbx-filial__body {
  flex: 1;
  min-width: 0;
  padding: 12px 16px 12px 12px;
}
/* місто → картка 24 (21) */
.block + .card.cbx-filial {
  margin-top: 24px;
}
.cbx-filial .block-header {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cbx-filial .block-title {
  margin: 0 0 8px;
  font-size: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cbx-filial__rate {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1;
}
.cbx-filial__rate .link {
  margin-left: 2px; /* ⭐ → оцінка 2, оцінка → відгуки 4 */
  font-size: 12px;
  font-weight: 400;
}
.cbx-filial .list {
  margin: 0;
  --f7-list-inset-border-radius: var(--cbx-radius);
  --f7-list-item-padding-horizontal: 12px;
  --f7-list-item-min-height: 36px;
  --f7-list-item-media-margin: 4px;
  --f7-list-item-padding-vertical: 8px;
}
.cbx-filial .list > ul {
  background: var(--cbx-fill-soft);
}
.cbx-filial .list .item-title {
  font-size: 12px;
  font-weight: 400;
  color: var(--cbx-text-2);
  white-space: normal;
}
.cbx-filial .list .item-media .icon {
  width: 13px;
  font-size: 13px;
  color: var(--cbx-text-2);
}
/* «Маршрут»: a.item-content має gap 4 — іконка й текст як в адреси */
.cbx-filial .list a.item-content {
  gap: 0;
}
.cbx-filial .list a .item-title,
.cbx-filial .list a .item-media .icon {
  color: var(--cbx-link);
}

/* Картка послуги / допу (24, 26, 31): назва + ціна, мета (⏱, бейджі), сірі блоки, «Про послугу», вибір; емодзі — ярлик у кутку */
.card.cbx-service {
  position: relative;
}
.accordion-item-content > .card.cbx-service {
  margin: 0 0 12px;
}
.accordion-item-content > .card.cbx-service:last-child {
  margin-bottom: 0;
}
.cbx-service--active {
  --f7-card-outline-border-color: var(--cbx-text);
}
.cbx-service__emo {
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cbx-fill);
  border-radius: var(--cbx-radius-card) 0 var(--cbx-radius-card) 0;
  font-size: 15px;
}
.cbx-service .card-content-padding {
  padding: 12px 12px 16px; /* 26: знизу 16 */
}
.cbx-service__emo ~ .card-content > .cbx-service__head,
.cbx-service__emo ~ .card-content > .cbx-service__meta {
  padding-left: 29px;
}
.cbx-service__head {
  display: flex;
  align-items: center; /* назва й ціна — по центру (26) */
  gap: 12px;
}
.cbx-service__head .block-title {
  flex: 1;
  margin: 0;
  font-size: 14px;
}
.cbx-service__head > b {
  font-size: 16px;
  white-space: nowrap;
}
.cbx-service__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--cbx-text-2);
}
.cbx-service__meta .icon {
  font-size: 14px;
  color: var(--cbx-text-3);
}
.cbx-service__meta .badge {
  --f7-badge-size: 18px;
  background: var(--cbx-info-bg);
  color: var(--cbx-link);
  line-height: 1;
}
.cbx-service__note {
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--cbx-note-bg);
  border-radius: 10px;
  font-size: 12px;
  color: var(--cbx-text-2);
  white-space: pre-line;
}
.cbx-service__info > .link {
  margin-left: 4px; /* «Про послугу» на 16 від краю картки (26) */
}
.cbx-service__info {
  margin-top: 12px;
}
.cbx-service__info > .cbx-service__note {
  display: none;
  margin-top: 6px;
}
.cbx-service__info.show > .cbx-service__note {
  display: block;
}
.cbx-service__info .link .icon {
  font-size: 10px;
  transition: transform .2s;
}
.cbx-service__info.show .link:not(.cbx-service__photos) .icon {
  transform: rotate(180deg);
}
/* «Фото» в одному рядку з «Про послугу» (опис послуги — блоком нижче) */
.cbx-service__info > .cbx-service__photos.link {
  margin: 0 0 0 16px;
}
.cbx-service .card-content > .button,
.cbx-service .card-content > label.button {
  margin-top: 16px;
}
/* варіанти / рівні ціни — під лінією */
.cbx-service__prices {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--cbx-border);
}
.cbx-price {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--cbx-note-bg);
  border-radius: 10px;
}
.cbx-price--active {
  background: var(--cbx-surface);
  box-shadow: inset 0 0 0 1px var(--cbx-text);
}
.cbx-price__title {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
}
.cbx-price__title small {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
  color: var(--cbx-text-2);
}
.cbx-price__title .icon {
  font-size: 14px;
  color: var(--cbx-text-3);
}
.cbx-price > b {
  font-size: 15px;
  white-space: nowrap;
}
.cbx-price > .button {
  flex: none;
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

/* вкладена картка (outline) у вмісті картки — без бокових відступів */
.card-content > .card {
  margin: 12px 0 0;
}

/* Горизонтальний скрол плиток (спеціалісти, 28) */
.cbx-hscroll {
  display: flex;
  gap: 10px;
  margin: 0 -16px;
  padding: 0 16px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
/* Аватар: фото або емодзі в сірому кружку */
.cbx-avatar {
  width: 42px;
  height: 42px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--cbx-fill);
  object-fit: cover;
  font-size: 18px;
  font-style: normal;
}
.icon.cbx-avatar {
  display: inline-flex; /* F7 i.icon — inline-block: емодзі зверху кола */
  width: 42px;
  height: 42px;
  font-size: 18px;
  line-height: 1; /* емодзі / гліф по центру кола */
  color: var(--cbx-text-2);
}
/* Плитка спеціаліста: аватар, ім'я (2 рядки), рейтинг на нижньому краї; обрана — рамка + ✓ */
.button.cbx-tile--spec {
  position: relative;
  flex: 0 0 120px;
  height: auto;
  min-height: 104px;
  padding: 12px;
  gap: 6px;
  overflow: visible;
}
.cbx-tile--spec > span:not(.chip):not(.cbx-check) {
  font-size: 12px;
  font-weight: 600;
  color: var(--cbx-text-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
}
.cbx-tile--spec.button-active > span:not(.chip):not(.cbx-check) {
  color: var(--cbx-text);
}
.cbx-tile--spec > small {
  font-size: 11px;
  font-weight: 500;
  color: var(--cbx-success-text);
  white-space: normal;
}
.cbx-tile--spec > .chip {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex; /* .cbx-tile > span дає -webkit-box */
  align-items: center;
  height: auto;
  padding: 0 6px;
  line-height: 20px; /* висота 20 — від рядка, не від F7 chip (32) */
  gap: 2px;
  background: var(--cbx-surface);
  box-shadow: var(--cbx-shadow-card);
  border-radius: var(--cbx-radius-pill);
  font-size: 12px;
  color: var(--cbx-text);
}
.cbx-tile--spec > .cbx-check {
  position: absolute;
  top: 6px;
  right: 6px;
  display: inline-flex; /* .cbx-tile > span дає -webkit-box — ✓ не по центру */
}
.cbx-check > .icon {
  width: auto;
  height: auto;
  font-size: 8px;
  line-height: 1;
}
.grid > .button.cbx-tile--spec {
  flex: auto;
}
/* комплекс (31–32): «Будь-який» / «Виберіть спеціаліста» — проміжок 10, як у горизонтальному скролі */
.grid:has(> .cbx-tile--spec) {
  gap: 10px;
}

/* Рядки вибору (29, 33–35): сірі, обраний (F7 .item-selected) — білий з рамкою і ✓ */
.list.cbx-options {
  margin: 0;
  --f7-list-item-padding-horizontal: 12px;
  --f7-list-media-item-padding-vertical: 12px;
  --f7-list-item-media-margin: 8px;
}
/* рядок на всю ширину, відступи 12 (34–35); F7 md media-list дає margin 6 + padding 6 */
.md .list.cbx-options:not(.inset):not(.inset-md):not(.menu-list) li > .item-content {
  margin: 0;
  padding-left: 12px;
  padding-right: 12px; /* ✓ / «Змінити» на 12 від краю */
}
.list.cbx-options > ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: none;
}
.list.cbx-options > ul:before,
.list.cbx-options > ul:after,
.list.cbx-options .item-inner:after {
  display: none;
}
.list.cbx-options li > .item-content {
  background: var(--cbx-fill);
  border-radius: var(--cbx-radius);
}
.list.cbx-options .item-inner {
  padding-right: 0;
  display: flex; /* назва по центру рядка, коли вона одна (35: «Будь-який вільний спеціаліст») */
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
}

.list.cbx-options .item-content {
  align-items: center;
}
/* спеціалісти комплексу (33): шапка 12 (назва 600, «· N послуг» 400), бейдж 9; послуга 14/600; спеціаліст 12/500; «Змінити» 12 */
.page[data-name="modal-complex"] .page-content > .card:first-child {
  --f7-card-border-radius: var(--cbx-radius);
}
.page[data-name="modal-complex"] .cbx-service__head .block-header {
  font-size: 12px;
  font-weight: 400;
}
.page[data-name="modal-complex"] .cbx-service__head div.block-header {
  font-weight: 600;
}
.page[data-name="modal-complex"] .cbx-service__head .badge {
  font-size: 9px;
  line-height: 1;
}
.page[data-name="modal-complex"] .card-outline > .card-content-padding {
  padding: 12px;
}
.page[data-name="modal-complex"] .card-outline .block-title {
  font-size: 14px;
  font-weight: 600;
}
.page[data-name="modal-complex"] .card-outline .cbx-options .cbx-avatar {
  width: 42px;
  height: 42px;
  background: var(--cbx-surface); /* на сірому рядку — біле коло (33); 42 замість 36 макета — рішення Романа */
}
.page[data-name="modal-complex"] .card-outline .cbx-options .item-inner {
  margin-left: 8px;
}
.page[data-name="modal-complex"] .card-outline .cbx-options .item-title {
  font-size: 12px;
  font-weight: 500;
}
/* вибір спеціаліста (34–35): назва в 1 рядок з «…», як підпис */
.page[data-name="modal-complex"] .page-content > .card > .card-content > .cbx-options .item-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.page[data-name="modal-complex"] .card-outline .cbx-options .button-small {
  font-size: 12px;
}
.list.cbx-options .item-media {
  align-self: center;
  padding: 12px 0; /* рядок щонайменше 66: аватар 42 + 12 + 12 */
}
/* аватар-іконка: на сірому рядку — біла, на обраному (білому) — сіра */
.list.cbx-options li:not(.item-selected) .icon.cbx-avatar {
  background: var(--cbx-surface);
}
/* ✓ у рядку — 24, іконка 12 (34) */
.list.cbx-options .item-content > .cbx-check {
  width: 24px;
  height: 24px;
}
.list.cbx-options .cbx-check > .icon {
  font-size: 12px;
}
.list .item-media .cbx-avatar {
  width: 42px;
  height: 42px;
  font-size: 18px;
}
.list.cbx-options .item-title {
  font-size: 14px;
  font-weight: 600;
  white-space: normal;
}
.list.cbx-options .item-content > .button,
.list.cbx-options .item-content > .cbx-check {
  flex: none;
  margin-left: 8px;
}
.list.cbx-options .item-content > .button {
  height: 32px;
  padding: 0 16px;
}
.list.cbx-options .chip {
  height: 22px;
  padding: 0 8px;
  background: var(--cbx-surface);
  border-radius: var(--cbx-radius-pill);
  font-size: 12px;
  color: var(--cbx-text);
}
.list.cbx-options + .list.cbx-options {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--cbx-border);
}
.card-outline .list.cbx-options {
  margin-top: 12px;
}

/* Сітка днів (28–30): Пн–Нд, клітинка 39 r8; крапка — є вільний час (зелена) / немає (червона) */
.cbx-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 16px;
  text-align: center;
}
/* місяці над днями (28): 12/700 */
.segmented-round:has(+ .cbx-days) .button {
  height: 32px;
  border-radius: var(--cbx-radius);
  font-size: 12px;
  font-weight: 700;
}
/* «Оберіть день» (28): назва на 21 від верху картки, місяці — на 71 */
.card:has(.cbx-days) > .card-header {
  padding-top: 21px;
  padding-bottom: 11px;
}
/* «Оберіть спеціаліста» (28): плитки на 12 під шапкою */
.card-header + .card-content-padding:has(> .cbx-hscroll) {
  padding-top: 12px;
}
/* рейтинг спеціаліста (28) */
.cbx-tile--spec .chip b {
  font-weight: 700;
}
.cbx-days > span {
  padding-bottom: 8px;
  line-height: 1;
  font-size: 13px;
  font-weight: 500;
  color: var(--cbx-text-2);
}
.cbx-days__day.button {
  position: relative;
  height: 39px;
  padding: 0;
  border-radius: var(--cbx-radius-sm);
  font-size: 13px;
}
.cbx-days__day:after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--cbx-danger);
}
.cbx-days__day--free:after {
  background: var(--cbx-success);
}
/* лист очікування (online, крок 3.8): місяць + рік між стрілками над сіткою днів; дні без крапок */
.cbx-month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.cbx-month-nav > b {
  font-size: 15px;
  font-weight: 700;
  color: var(--cbx-text);
}
.cbx-month-nav > b > span {
  font-weight: 500;
  color: var(--cbx-text-2);
}
.cbx-month-nav > .button {
  flex: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--cbx-radius-sm);
}
.cbx-days--plain .cbx-days__day:after {
  display: none;
}

/* Слоти часу (28, 30): групи з емодзі, розділені лінією; 4 в ряд */
.cbx-slots + .cbx-slots {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--cbx-border);
}
.cbx-slots .block-title {
  font-size: 15px;
  font-weight: 600;
}
.cbx-slots__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.cbx-slots__grid > .button {
  height: 36px;
  padding: 0;
  border-radius: var(--cbx-radius-sm);
  font-size: 13px;
}

/* Чіпи в рядок з переносом (час / тривалість, допи) */
.cbx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cbx-chips:empty {
  display: none;
}
.block-title + .cbx-chips {
  margin-top: 4px;
}
/* дата → чіпи часу (36): відступ 8, чіпи r8 без margin F7 */
.block-title-medium:has(+ .cbx-chips) {
  --f7-block-title-medium-line-height: var(--cbx-line-height-auto); /* дата 20 (36) — «авто» */
  margin-bottom: 8px;
}
.block-title-medium + .cbx-chips {
  --f7-chip-border-radius: var(--cbx-radius-sm);
  margin-top: 0;
}
.block-title-medium + .cbx-chips .chip {
  margin: 0;
}

/* Шапка перевірки (36): дата + чіпи, лінія, філія з адресою */
.cbx-salon-line {
  padding-top: 11px; /* від лінії до назви 12 (лінія 1 + 11) */
  border-top: 1px solid var(--cbx-border);
}
.card-content:has(+ .cbx-salon-line) {
  padding-bottom: 12px;
}
.cbx-salon-line .block-title {
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 600;
}
.cbx-salon-line .block-header {
  margin: 0;
}

/* Послуга в кошику (36, далі 45/46/60/63): ✕ у кутку, мета, ціна праворуч */
.card.cbx-cart-item {
  position: relative;
  margin: 0 0 16px; /* 36, 46, 63: між послугами 16 */
}
.card.cbx-cart-item:last-child {
  margin-bottom: 0; /* 45: остання в картці без суми */
}
.cbx-cart-item .block-title {
  margin: 0 32px 8px 0;
  font-size: 15px;
  font-weight: 600;
}
.cbx-cart-item__remove.link.icon-only {
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 30px;
  justify-content: center;
  background: var(--cbx-danger-bg);
  border-radius: 0 var(--cbx-radius) 0 var(--cbx-radius-xs);
  color: var(--cbx-danger);
}
.cbx-cart-item .chip {
  height: 24px;
  max-width: 100%;
  font-size: 12px;
  font-weight: 500;
}
.cbx-cart-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--cbx-text-2);
}
.cbx-cart-item__meta .icon {
  width: 14px; /* як у макеті: текст на 4 від іконки */
  text-align: center;
  font-size: 14px;
  color: var(--cbx-text-3);
}
.cbx-cart-item__meta > b {
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--cbx-text);
}

/* Разом (36) і «До оплати зараз» */
.cbx-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--cbx-border);
  font-size: 15px;
  color: var(--cbx-text-2);
}
.cbx-total > b {
  font-size: 20px;
  color: var(--cbx-text);
}
.card.cbx-prepay {
  margin: 16px 0 0;
  --f7-card-outline-border-color: var(--cbx-text);
}
.cbx-prepay .card-content {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cbx-prepay .card-content > div {
  flex: 1;
  font-size: 14px;
}
.cbx-prepay .card-content > div > b {
  font-weight: 600;
}
.cbx-prepay small {
  display: block;
  font-size: 13px;
  color: var(--cbx-text-2);
}
.cbx-prepay strong {
  font-size: 24px;
  white-space: nowrap;
}

/* Політика скасування (36) */
.cbx-policy .block-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
}
.cbx-policy .block-title .icon {
  font-size: 14px;
  color: var(--cbx-text-3);
}
.cbx-policy p {
  white-space: pre-line;
  margin: 0 0 10px;
  padding-left: 22px;
  font-size: 12px;
  color: var(--cbx-text-2);
}
.cbx-policy .link {
  margin-left: 22px;
}
.cbx-policy .link .icon {
  font-size: 10px;
}
/* Повідомлення про політику конфіденційності (login-user): великі літери, як було в тексті з налаштувань */
.cbx-privacy-note p {
  margin: 0;
  text-align: center;
  text-transform: uppercase;
}

/* new: гарантія передплати (36, case=prepay; етап Б, прототип Романа — Main.dc.html / Guest.dc.html) — картка клієнта, вибір гарантії (cbx-options), «До оплати зараз», шторка */
.cbx-guar-client .card-content {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cbx-guar-client .card-content > div {
  flex: 1;
  min-width: 0;
}
.cbx-guar-client b {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--cbx-text);
}
.cbx-guar-client small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--cbx-text-2);
}
.cbx-guar-client .link {
  flex: none;
  font-size: 13px;
  font-weight: 600;
}
.cbx-guar .block-header,
.cbx-guar-sheet .cbx-guar__code .block-header {
  margin-top: -6px;
  font-size: 13px;
  color: var(--cbx-text-2);
}
.cbx-guar .item-subtitle,
.cbx-guar-sheet .cbx-options .item-subtitle {
  white-space: normal; /* підпис варіанта — у 2 рядки, без «…» */
  font-size: 12px;
  color: var(--cbx-text-2);
}
.cbx-guar .item-subtitle.cbx-guar__warm {
  color: var(--cbx-warning-text); /* «Недостатньо коштів…» (прототип — теплий колір) */
}
.cbx-guar .cbx-options .item-after,
.cbx-guar-sheet .cbx-options .item-after {
  font-size: 14px;
  font-weight: 700;
  color: var(--cbx-text);
}
/* неактивний варіант (мало коштів, «Не діє на послуги…», прострочений): пунктирна рамка, без F7-прозорості — підпис читається */
.cbx-guar .cbx-options li.disabled,
.cbx-guar-sheet .cbx-options li.disabled {
  opacity: 1;
}
.cbx-guar .cbx-options li.disabled > .item-content,
.cbx-guar-sheet .cbx-options li.disabled > .item-content {
  background: none;
  border: 1px dashed var(--cbx-border);
}
.cbx-guar .cbx-options li.disabled .item-title,
.cbx-guar .cbx-options li.disabled .item-after,
.cbx-guar-sheet .cbx-options li.disabled .item-title,
.cbx-guar-sheet .cbx-options li.disabled .item-after {
  color: var(--cbx-text-2);
}
/* код сертифіката: поле + «Перевірити» в рядок (Б — інлайн під варіантами, А — у шторці) */
.cbx-guar__code {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
}
.cbx-guar__code .block-header {
  margin: 0;
  font-weight: 600;
}
.cbx-guar__code-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.card .cbx-guar__code-row .list,
.sheet-modal .cbx-guar__code-row .list {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.cbx-guar__code-row .list li.item-content {
  margin: 0;
}
.cbx-guar__code-row > .button {
  flex: none;
}
/* «До оплати зараз» — окрема картка (прототип), зелена плашка всередині */
.card.cbx-prepay--now {
  margin: var(--f7-card-margin-vertical) var(--f7-card-margin-horizontal);
}
.cbx-prepay--now .card-footer {
  min-height: 0;
  padding: 0 16px 16px;
}
.cbx-prepay--now .card-footer:before {
  display: none;
}
.cbx-prepay--now .card-footer .cbx-notice {
  flex: 1;
}
/* бейдж гарантії на картці послуги */
.badge.cbx-guar-tag {
  margin-left: 8px;
  vertical-align: middle;
  background: var(--cbx-success-bg);
  color: var(--cbx-success-text);
  font-size: 11px;
  font-weight: 700;
  text-transform: none;
}
/* шторка: рядок балансу (А — сірий, Б — зелений з телефоном), «Перевірка», текст, OTP, кнопки одна під одною */
.cbx-guar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: var(--cbx-radius);
  background: var(--cbx-fill);
  font-size: 14px;
  color: var(--cbx-text-2);
}
.cbx-guar__row b {
  white-space: nowrap;
  color: var(--cbx-text);
}
.cbx-guar__row--ok {
  background: var(--cbx-success-bg);
  color: var(--cbx-success-text);
}
.cbx-guar__row--ok small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
}
.cbx-guar__row--ok b {
  font-size: 17px;
  font-weight: 800;
  color: var(--cbx-success-text);
}
.cbx-guar__fail {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--cbx-text);
}
.cbx-guar__add {
  margin-top: 10px;
  border-style: dashed;
}
.cbx-guar-sheet .block > .list:not(.cbx-options) {
  margin: 12px -16px 0; /* поле телефону — по краях вмісту, як поповнення (54) */
}
.cbx-guar-sheet p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: var(--cbx-line-height);
  color: var(--cbx-text-2);
}
.cbx-guar-sheet p b {
  color: var(--cbx-text);
}
.cbx-guar-sheet .cbx-options + p,
.cbx-guar-sheet .cbx-guar__code + p,
.cbx-guar-sheet .cbx-guar__add + p {
  margin-top: 12px;
}
.cbx-guar-sheet .cbx-otp {
  padding: 4px 0 0;
}
.cbx-guar-sheet .block .button + .button {
  margin-top: 8px;
}

/* плашка-підсумок (36): «передоплата 200 ₴» в один рядок */
.cbx-notice__after small {
  display: inline;
  margin-right: 4px;
  font-weight: 500;
  color: var(--cbx-text-2);
}
/* «N послуг · передоплата сума» (36): 12/500, сума 14, ✓ → текст 4 */
.toolbar .cbx-notice--success {
  gap: 4px;
  padding-top: 9px; /* висота 38 з рамкою */
  padding-bottom: 9px;
  font-size: 12px;
  font-weight: 500;
}
.toolbar .cbx-notice--success .cbx-notice__after {
  font-size: 14px;
}
/* «спеціаліст / дата · час» (30): 11/500 сірий + 13/600 */
.toolbar .cbx-notice--success > div > small {
  margin-bottom: 2px;
  font-size: 11px;
  color: var(--cbx-text-2);
}
.toolbar .cbx-notice--success > div > b {
  font-size: 13px;
  font-weight: 600;
}
/* результат запису (45/46): рядки-посилання 14 */
.page[data-name="modal-success"] .list .item-title {
  font-size: 14px;
  line-height: var(--cbx-line-height-auto);
}
/* коментар (38): поле 94 */
.list .item-input textarea {
  height: 62px;
}
/* немає вільного часу (29) — заголовок 16 */
.page[data-name="online-record"] .card > .dialog-inner .dialog-title {
  font-size: 16px;
  font-weight: 700;
}

/* ===== Бронювання (38–46) ===== */
/* нижня панель: CTA 52 + «На головний» 44 (45) */
.toolbar-bottom:not(.tabbar):has(.button-large + .button:not(.button-large)),
.toolbar-bottom:not(.tabbar):has(.button-large + .button:not(.button-large)) ~ * {
  --f7-toolbar-height: 132px; /* 12 + 52 + 12 + 44 + 12 */
}
.toolbar-bottom:not(.tabbar):has(.button-large + .button:not(.button-large)) .toolbar-inner {
  gap: 12px;
}
/* плашка + CTA 52 + «Додати ще послугу» 44 (36) */
.toolbar-bottom:not(.tabbar):has(.cbx-notice):has(.button-large + .button:not(.button-large)),
.toolbar-bottom:not(.tabbar):has(.cbx-notice):has(.button-large + .button:not(.button-large)) ~ * {
  --f7-toolbar-height: 182px; /* 12 + 38 + 12 + 52 + 12 + 44 + 12 */
}
/* default-кнопка панелі — 44, шрифт за макетом 14 («Додати ще послугу» 36, «На головний екран» 45/46) */
.toolbar-bottom:not(.tabbar) .toolbar-inner > .button:not(.button-large):not(.button-small) {
  font-size: 14px;
}
/* картка з dialog-вмістом без кнопок (оплата броні, крок 6) — відступ знизу як зверху */
.card > .dialog-inner:last-child {
  padding-bottom: 40px;
}
/* Результат запису (45–46): іконка-кружок 72 ліворуч, заголовок 20 і підзаголовок праворуч.
   cbx: у F7 немає горизонтального блоку «іконка + заголовок» (.dialog-inner — колонкою, по центру) */
.cbx-result {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cbx-result > .icon {
  flex: none;
  margin: 0;
}
/* іконка статусу результату (45 — очікує оплати, 46 — створено): кольори макета через токени */
.cbx-result--warning > .icon {
  background: var(--cbx-warning-bg);
  color: var(--cbx-warning-accent);
}
.cbx-result--success > .icon {
  background: var(--cbx-success-bg);
  color: var(--cbx-success);
}
.cbx-result .block-title {
  margin-bottom: 4px;
  font-weight: 700;
}
.cbx-result .block-header {
  margin: 0;
}

/* ===== Скасування візиту (cancel-visit): модалки 1/2 — діалог, 3/4 — картка результату ===== */
.dialog.cbx-cancel-dialog {
  --f7-dialog-width: min(calc(100vw - 32px), 420px);
  border-radius: var(--cbx-radius-card);
  text-align: center;
}
.dialog.cbx-cancel-dialog > .dialog-inner {
  gap: 16px;
  padding: 32px 20px 0;
}
.cbx-cancel-dialog__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 44px;
  height: 44px;
  justify-content: center;
  border-radius: var(--cbx-radius);
  color: var(--cbx-text-2);
  font-size: 20px;
}
.cbx-cancel-icon,
.dialog-inner > .icon.cbx-cancel-icon {
  margin-bottom: 0;
  background: var(--cbx-warning-bg);
  color: var(--cbx-warning-accent);
}
.cbx-result > .icon.cbx-cancel-icon--muted {
  background: var(--cbx-fill);
  color: var(--cbx-text-2);
}
.cbx-cancel-dialog .dialog-text {
  color: var(--cbx-text-2);
  font-size: 15px;
  line-height: 1.5;
}
/* телефон адміністратора філії (модалка 1) */
.cbx-cancel-contact {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: var(--cbx-radius-card);
  background: var(--cbx-note-bg);
  text-align: left;
}
.cbx-cancel-contact small {
  color: var(--cbx-text-2);
  font-size: 13px;
}
.cbx-cancel-contact a {
  color: var(--cbx-text);
  font-size: 17px;
  font-weight: 700;
}
/* плашка штрафу (модалки 2 і 4) */
.cbx-notice.cbx-cancel-fine {
  width: 100%;
  box-sizing: border-box;
  align-items: flex-start;
  gap: 12px;
  border-radius: var(--cbx-radius);
  color: var(--cbx-warning-text);
  text-align: left;
}
.cbx-notice.cbx-cancel-fine > .icon {
  margin-top: 2px;
  font-size: 18px;
}
.md .dialog.cbx-cancel-dialog > .dialog-buttons {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 16px 20px 20px;
}
.dialog.cbx-cancel-dialog .dialog-buttons .button {
  flex: none;
  gap: 10px;
}
.cbx-cancel-dialog__hint {
  margin: 4px 0 0;
  color: var(--cbx-text-2);
  font-size: 14px;
  line-height: 1.6;
}
.cbx-cancel-dialog__hint a {
  color: var(--cbx-text);
  font-weight: 700;
  white-space: nowrap;
}
/* результат (3/4): по центру, колонкою */
.cbx-cancel-result .cbx-result {
  flex-direction: column;
  gap: 16px;
  padding: 32px 20px 24px;
  text-align: center;
}
.cbx-cancel-result .cbx-result .block-title {
  margin: 0;
}
.cbx-cancel-visit {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-radius: var(--cbx-radius-card);
  background: var(--cbx-note-bg);
  text-align: left;
  font-size: 14px;
}
.cbx-cancel-visit > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cbx-cancel-visit .icon {
  color: var(--cbx-text-2);
  font-size: 14px;
}
.cbx-cancel-visit__date {
  font-weight: 600;
}
.cbx-cancel-visit__date s {
  text-decoration-color: var(--cbx-text-3);
}
.cbx-cancel-visit__addr {
  color: var(--cbx-text-2);
}
.cbx-cancel-result__bye {
  margin: 0;
  color: var(--cbx-text-2);
  font-size: 15px;
  line-height: 1.5;
}
.cbx-cancel-result .button {
  width: 100%;
  gap: 10px;
}

/* ===== Кабінет (50–63) ===== */
/* «Мої візити» (58–62) — без navbar: таби на 24 від верху */
.page[data-name="visits"] > .page-content {
  padding-top: 24px;
}
.page[data-name="visits"] > .page-content > .block:first-child {
  margin: 0 0 24px;
}
/* порожній стан (58, 61, 62; макет): емодзі 32 без кружка на 24 від верху, заголовок 15/700 через 12, під кнопкою 24 */
.page[data-name="visits"] .card > .dialog-inner {
  padding-top: 24px;
}
.page[data-name="visits"] .card > .dialog-inner > .icon {
  width: auto;
  height: 32px;
  margin: 0;
  background: none;
  line-height: 32px;
}
.page[data-name="visits"] .card > .dialog-inner .dialog-title {
  font-size: 15px;
  font-weight: 700;
}
.page[data-name="visits"] .card > .dialog-buttons {
  padding-bottom: 24px;
}
/* «Ще» (50) — без navbar: перша картка на 24 від верху (8 + відступ списку 16) */
.page[data-name="more"] > .page-content {
  padding-top: 8px;
}
/* картка профілю (50; макет) — 74: аватар 42 + 16 / 16, текст через 8; ім’я 14/600, телефон 12; ✏️ 32 */
.page[data-name="more"] .media-list {
  --f7-list-media-item-padding-vertical: 16px;
  --f7-list-item-media-margin: 8px;
}
.page[data-name="more"] .media-list .item-media .icon {
  width: 42px;
  height: 42px;
  font-size: 18px;
}
.page[data-name="more"] .media-list li.item-content .item-inner {
  align-content: center;
  row-gap: 1px;
}
.page[data-name="more"] .media-list li.item-content .item-title {
  font-size: 14px;
}
.page[data-name="more"] .media-list li.item-content .item-subtitle {
  font-size: 12px;
}
.page[data-name="more"] .media-list .item-after .link.icon-only {
  width: 32px;
  height: 32px;
}
/* рядки меню (50; макет): 54.5 (картка 109), іконка 18 + 11, тексти рядком 1.5, сума за 24 до шеврона */
.page[data-name="more"] .list:not(.media-list) {
  --f7-list-item-min-height: 54.5px;
  --f7-list-item-media-margin: 11px;
  --f7-list-item-title-line-height: 1.5;
  --f7-list-item-after-line-height: 1.5;
}
.page[data-name="more"] .list:not(.media-list) .item-media .icon {
  width: 18px;
}
.page[data-name="more"] .list .item-link .item-inner {
  padding-right: 56px;
}
/* баланс / бонуси (53, 57; макет): підпис 16/600 (рядок 22), сума 24/700 (рядок 33) через 4, кнопка small 36 (13/700) через 12 */
.card .block-header:has(+ .block-title-large) {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: var(--cbx-line-height-auto);
}
.card .block-title-large {
  margin: 4px 0 0;
  color: var(--cbx-text);
  font-size: 24px;
  font-weight: 700;
  line-height: 33px; /* бокс макета 33 (токен «авто» дає 32.8 → y суми −1.2) */
}
.card .block-title-large + .button {
  margin-top: 12px;
  font-weight: 700;
}
/* заголовок групи в inset-списку (53, 57: «Історія»; макет) — 16/700, рядок 22, перший рядок списку на 43 від верху картки (кружок — на 55); без сірого фону F7 */
.list.inset .list-group-title {
  height: auto;
  padding: 16px 16px 5px;
  background: none;
  color: var(--cbx-text);
  font-size: 16px;
  font-weight: 700;
  line-height: var(--cbx-line-height-auto);
}
/* рядки під заголовком групи (історія 53, 57; макет): 60 = кружок 36 + 12 / 12, дата на 3 нижче назви, під останнім рядком 4 */
.list.inset .list-group-title ~ .item-content {
  --f7-list-item-padding-vertical: 12px;
}
.list.inset .list-group-title ~ .item-content .item-subtitle {
  margin-top: 3px;
}
.list.inset .list-group-title ~ .item-content:last-child {
  padding-bottom: 4px;
}
/* екранна клавіатура поповнення — старий варіант balance-topup-old (як у mobi) */
.page[data-name="balance-topup-old"] .grid {
  margin-top: 16px;
}
.page[data-name="balance-topup-old"] .grid .button {
  font-size: 20px;
}
/* Картка візиту (59–62; макет): адреса 13/600, через 8 — чіпи дати й часу, за 24 — «Деталі» small 13/700. Карта в деталях (63) — зображення на всю ширину картки */
.cbx-visit {
  cursor: pointer;
}
.cbx-visit .block-header {
  margin: 0 0 8px;
  font-weight: 600;
}
/* етап Б (59–60): філія 20/700 над адресою (місце під бейдж статусу); послуги — вкладені картки «Послуга в кошику» (назва 15/600, як у 63) */
.card.cbx-visit {
  position: relative;
}
.cbx-visit > .card-content > .block-title {
  margin: 8px 0 6px;
  font-size: 20px;
  font-weight: 700;
  line-height: var(--cbx-line-height-auto);
}
.cbx-visit__cart {
  margin: 16px 0 24px;
}
.cbx-visit__cart .cbx-cart-item .block-title .icon {
  font-size: 14px;
}
.cbx-visit > .card-content > .button {
  width: 100%;
  font-weight: 700;
}
.cbx-visit__map img {
  display: block;
  width: 100%;
}
/* деталі візиту (63; макет): дата 20/700; «Ваші послуги» 16/600 «авто»; посилання — рядки 68 (кружок 36 + 16 / 16), назва 14 */
.page[data-name="visit-info"] .block-title-medium {
  font-weight: 700;
}
.page[data-name="visit-info"] .page-content > .card > .card-content:not(.cbx-policy) > .block-title:first-child:not(.block-title-medium),
.page[data-name="modal-success"] .page-content > .card > .card-content:not(.cbx-policy) > .block-title:first-child:not(.block-title-medium) {
  margin-bottom: 9px;
  font-weight: 600;
  line-height: var(--cbx-line-height-auto);
}
/* рядки-посилання «Google Calendar» / «Маршрут» (46, 63; макет — один стиль): рядок 68, іконка 13 у кружку 36, лінія між рядками на всю ширину картки */
.page[data-name="visit-info"] .media-list.chevron-center,
.page[data-name="modal-success"] .media-list.chevron-center.inset {
  --f7-list-media-item-padding-vertical: 16px;
}
.page[data-name="visit-info"] .media-list.chevron-center > ul,
.page[data-name="modal-success"] .media-list.chevron-center.inset > ul {
  padding: 0;
}
.page[data-name="visit-info"] .media-list.chevron-center .item-title {
  font-size: 14px;
  line-height: var(--cbx-line-height-auto);
}
.page[data-name="visit-info"] .media-list.chevron-center.inset .item-media .icon,
.page[data-name="modal-success"] .media-list.chevron-center.inset .item-media .icon {
  font-size: 13px;
}
/* лінія F7 — під .item-inner (заголовок по центру кружка → лінія вище низу рядка і з відступом 80) */
.page[data-name="visit-info"] .media-list.chevron-center.inset .item-inner:after,
.page[data-name="modal-success"] .media-list.chevron-center.inset .item-inner:after {
  display: none;
}
.page[data-name="visit-info"] .media-list.chevron-center.inset li + li,
.page[data-name="modal-success"] .media-list.chevron-center.inset li + li {
  box-shadow: inset 0 1px var(--f7-list-item-border-color);
}
/* деталі візиту: «Скасувати» під підсумком */
.page[data-name="visit-info"] .cbx-total + .button {
  margin-top: 16px;
}

/* ===== Етап Б, порція 1 ===== */
/* деталі візиту (63; макет): статус-бейдж у кутку картки дати; передоплата / залишок — success-плашка з двома рядками через лінію */
.page[data-name="visit-info"] .page-content > .card {
  position: relative;
}
.cbx-notice.cbx-paid {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin-top: 16px;
  padding: 0;
}
/* макет 63: рядки 64 / 46 з рамкою (16 + кружок 36 + 12 | лінія | 12 + сума 18 + 16), кружок 36, заголовок 13/600, дата і залишок 12/400, суми 14/700 */
.cbx-paid__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px 16px 12px;
  font-size: 12px;
  font-weight: 400;
}
.cbx-paid__row b {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.cbx-paid .cbx-notice__after {
  font-size: 14px;
}
.cbx-paid__row + .cbx-paid__row {
  padding: 12px 16px 15px;
  border-top: 1px solid var(--cbx-success-border);
  color: var(--cbx-text-2);
}
.cbx-paid__row > .icon {
  flex: none;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--cbx-surface);
  font-size: 14px;
}
.cbx-paid__row small {
  margin-top: 2px;
  font-weight: 400;
  color: var(--cbx-text-2);
}
.page[data-name="visit-info"] .card .card.card-outline:has(.cbx-policy) {
  margin: 16px 0 0;
}
.page[data-name="visit-info"] .card-outline .cbx-policy p {
  margin-bottom: 6px;
}
.page[data-name="visit-info"] .card .card-outline + .button {
  margin-top: 16px;
}
.cbx-visit__id {
  margin: 16px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--cbx-text-2);
}
/* контакти: рядки-посилання в картці (кружок 36) */
.page[data-name="visit-info"] .card .media-list {
  margin: 0 0 -16px;
}
/* шторка скасування: причини — radio-список між текстом і кнопками */
.sheet-modal .cbx-reasons {
  margin: 16px 0 0;
}
.sheet-modal .cbx-reasons .block-title {
  margin: 0 16px 4px;
}

/* ===== Етап Б, порція 2 ===== */
/* промо (23): бейдж типу над назвою */
.swiper-slide .card .badge,
swiper-slide .card .badge {
  margin-bottom: 8px;
}
/* «Фото» (25) — посилання під «Про послугу», вирівняне з ним (16 від краю картки), шеврон як у «Про послугу» */
.cbx-service__photos.link {
  gap: 4px;
  margin-top: 8px;
  margin-left: 4px;
}
.cbx-service__photos.link .icon.fa-chevron-down {
  font-size: 10px;
}
.cbx-service__info + .cbx-service__photos.link {
  margin-top: 4px;
}
/* шторка-галерея (25): фото на всю ширину вмісту, квадрат r0 як у макеті */
.cbx-gallery .sheet-modal-inner {
  padding: 24px 0 32px;
}
.cbx-gallery .block-title {
  margin: 0 64px 2px 16px;
  font-size: 18px;
  font-weight: 600;
  line-height: var(--cbx-line-height-auto);
}
.cbx-gallery .block-header {
  margin: 0;
}
.cbx-gallery .block {
  margin: 16px 0 0;
}
.cbx-gallery swiper-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
/* рейтинг спеціаліста (35): «⭐ 5.0 | 45 відгуків» */
.cbx-options .chip .chip-label {
  padding-left: 6px;
  border-left: 1px solid var(--cbx-border);
  font-size: 11px;
  color: var(--cbx-text-2);
}
/* згода (36) */
.cbx-agree .item-title {
  white-space: normal;
  font-size: 14px;
  color: var(--cbx-text-2);
}
.cbx-agree .item-title .link {
  display: inline;
  text-decoration: underline;
}
/* посилання на оплату (56; макет): кружок іконки — інфо-тон */
.page[data-name="balance-success"] .dialog-inner > .icon {
  background: var(--cbx-info-bg);
}
/* 56 (макет): кнопки на всю ширину одна під одною — «Оплатити {сума}» (mobi) зверху, «На головну» (mobi) під нею */
.page[data-name="balance-success"] .dialog-buttons {
  flex-direction: column;
  gap: 8px;
}
.page[data-name="balance-success"] .dialog-buttons .button {
  flex: none;
  width: 100%;
}

/* ===== Етап Б, порція 3 — проміжні екрани mobi без макета ===== */
/* Майстер (/master) — макет «Сторінка запису до майстра» (01–04). Розмітка — src/ui; тут лише те, чого немає в бібліотеці. */
.cbx-salon__text > .icon {
  font-size: 13px;
}
/* ripple F7 md на .link / .button — колір теми (rgba(theme,.25) — жовтий під курсором / по кліку); глобально для bapp,
   тут — лише сторінка майстра і її шторка Share: нейтральний, як у решти ripple (--f7-touch-ripple-black) */
.page:is([data-name="master"], [data-name="specialist"]) .link,
.page:is([data-name="master"], [data-name="specialist"]) .button:not(.button-fill),
.cbx-share .link,
.cbx-share .button {
  --f7-touch-ripple-color: var(--f7-touch-ripple-black);
}
/* заголовок картки з лічильником / «Усі N ›» праворуч (section-head макета) */
.page:is([data-name="master"], [data-name="specialist"]) .block-title:has(> .badge, > .link),
.page[data-name="start-screen"] .block-title:has(> .link) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.page:is([data-name="master"], [data-name="specialist"]) .block-title > .badge {
  flex: none;
  text-transform: none;
  white-space: nowrap;
}
.page:is([data-name="master"], [data-name="specialist"]) .block-title > .link,
.page[data-name="start-screen"] .block-title > .link {
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cbx-link);
}
.page:is([data-name="master"], [data-name="specialist"]) .block-title > .link .icon,
.page[data-name="start-screen"] .block-title > .link .icon {
  font-size: 12px;
}
/* категорії послуг у картці (bk-cat макета): без карток-категорій, розділені лінією */
.accordion-list.cbx-accordion--in-card {
  --f7-list-item-padding-horizontal: 0px;
  margin: 0 0 -16px;
}
.accordion-list.cbx-accordion--in-card > ul {
  background: none;
}
.accordion-list.cbx-accordion--in-card .accordion-item {
  border-top: 1px solid var(--cbx-border);
}
.accordion-list.cbx-accordion--in-card .accordion-item > .item-link {
  --f7-list-item-padding-vertical: 14px;
}
.accordion-list.cbx-accordion--in-card .accordion-item > .item-link .item-inner {
  padding-right: 32px;
}
.accordion-list.cbx-accordion--in-card .accordion-item > .item-link .item-inner:before {
  right: 0;
  width: 16px;
  text-align: center;
}
.accordion-list.cbx-accordion--in-card .accordion-item > .item-link .item-title {
  font-size: 16px;
  font-weight: 600;
}
.accordion-list.cbx-accordion--in-card .accordion-item > .item-link .item-subtitle {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 500;
}
.accordion-list.cbx-accordion--in-card .accordion-item-opened .accordion-item-content {
  padding: 0 0 14px;
}
.accordion-list.cbx-accordion--in-card .accordion-item-content > .card.cbx-service + .card.cbx-service {
  margin-top: 12px;
}

/* картка майстра: шапка / опис / мови / статистика / найближчий час — колонкою через 12 */
.cbx-master {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cbx-master .cbx-salon__body {
  padding-right: 40px; /* під кнопку «поділитися» */
}
.cbx-master .cbx-salon__title {
  font-size: 20px;
}
.cbx-master .cbx-chips .badge {
  height: 31px;
  padding: 0 10px;
  border-radius: var(--cbx-radius-pill);
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
}
.cbx-master__photo {
  position: relative;
  flex: none;
}
.cbx-master__photo > .cbx-salon__logo {
  width: 84px;
  height: 84px;
}
/* ### онлайн-статус */
.cbx-master__online {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 14px;
  height: 14px;
  border: 3px solid var(--cbx-surface);
  border-radius: 50%;
  background: var(--cbx-success);
}
.link.icon-only.cbx-master__share {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  justify-content: center;
  border-radius: 50%;
  background: var(--cbx-fill);
  color: var(--cbx-text);
}
.cbx-master__share .icon {
  font-size: 15px;
}
/* опис: 3 рядки + «Ще / Менше» */
.cbx-master__text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-line;
  color: var(--cbx-text-2);
}
.cbx-master__text--open {
  display: block;
}
.cbx-master__about > .link {
  gap: 4px;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cbx-link);
}
.cbx-master__about > .link .icon {
  font-size: 11px;
}
/* статистика — плитка-значення (cbx-tile): емодзі, жирне число, підпис; не кнопка-дія */
.button.cbx-tile--stat {
  gap: 4px;
  min-height: 0;
  padding: 10px 6px;
  border-radius: var(--cbx-radius-card);
  cursor: default;
  pointer-events: none;
}
.cbx-tile--stat > .icon {
  font-size: 20px;
  font-style: normal;
  line-height: 1;
}
.cbx-tile--stat > b {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--cbx-text);
}
.cbx-tile--stat > span {
  font-weight: 600;
}
/* ### найближчий вільний час — success-плашка колонкою: заголовок + сітка слотів 52 */
.cbx-notice--slots {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--cbx-radius-card);
}
.cbx-notice--slots > b {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.cbx-notice--slots .button {
  --f7-button-bg-color: var(--cbx-surface);
  --f7-button-text-color: var(--cbx-text);
  height: 52px;
  flex-direction: column;
  gap: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: var(--cbx-shadow-xs);
}
.cbx-notice--slots .button small {
  font-size: 11px;
  font-weight: 600;
  color: var(--cbx-text-2);
}
/* слот клікабельний (Master-Hovers): наведення — колір CTA + тінь; натискання — scale(.96), темніший відтінок.
   Колір — змінні --cbx-cta-* (див. «Кнопка запису»), фолбек — жовтий --cbx-primary. activeState F7 вимкнено — лише :hover / :active */
.cbx-notice--slots .button,
.cbx-days__day.button {
  transition: background-color .15s, box-shadow .15s, transform .1s;
}
@media (hover: hover) {
  .cbx-notice--slots .button:hover {
    --f7-button-bg-color: var(--cbx-cta-hover-c);
    --f7-button-text-color: var(--cbx-cta-hover-text-c);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--cbx-cta-hover-c) 35%, transparent);
  }
  .cbx-notice--slots .button:hover small {
    color: color-mix(in srgb, var(--cbx-cta-hover-text-c) 75%, transparent);
  }
  /* день: обвідка 2px темним всередину (сьогодні і вихідний — без) */
  .cbx-days__day.button:not(.cbx-days__day--off):not(.cbx-days__day--today):hover {
    --f7-button-bg-color: var(--cbx-surface);
    box-shadow: inset 0 0 0 2px var(--cbx-text);
  }
}
.cbx-notice--slots .button:active {
  --f7-button-bg-color: color-mix(in srgb, var(--cbx-cta-hover-c) 88%, #000);
  --f7-button-text-color: var(--cbx-cta-hover-text-c);
  --f7-button-pressed-bg-color: var(--f7-button-bg-color);
  transform: scale(.96);
}
.cbx-days__day.button:not(.cbx-days__day--off):active {
  --f7-button-bg-color: var(--cbx-border);
  --f7-button-pressed-bg-color: var(--cbx-border);
  --f7-button-text-color: var(--cbx-text);
  box-shadow: none;
  transform: scale(.95);
}

/* ### розклад тижня: день — назва + число + крапка (є час / мало місць / вихідний), сьогодні — темний */
.cbx-days:not(:has(> span)) {
  margin-top: 0;
}
.cbx-days__day.button:has(> small) {
  height: 56px;
  flex-direction: column;
  gap: 0;
  padding-bottom: 8px;
  border-radius: var(--cbx-radius);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}
.cbx-days__day > small {
  font-size: 11px;
  font-weight: 500;
  color: var(--cbx-text-2);
}
.cbx-days__day--few:after {
  background: rgb(245, 236, 0) !important;
}
.cbx-days__day.cbx-days__day--off {
  --f7-button-bg-color: transparent;
  border: 1px dashed var(--cbx-border);
  cursor: default;
  pointer-events: none; /* вихідний — без реакції і без кліку */
}
.cbx-days__day--off:after {
  display: none;
}
.cbx-days__day.cbx-days__day--today {
  --f7-button-bg-color: var(--cbx-text);
  --f7-button-text-color: var(--cbx-on-text);
}
.cbx-days__day--today > small {
  color: color-mix(in srgb, var(--cbx-on-text) 70%, transparent);
}
.cbx-days__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--cbx-text-2);
}
.cbx-days__legend > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cbx-days__legend > span:before {
  content: '';
  width: 8px;
  height: 8px;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--cbx-success);
}
.cbx-days__legend > .cbx-days__day--few:before {
  background: rgb(245, 236, 0) !important;
}
.cbx-days__legend > .cbx-days__day--off:before {
  border: 1px dashed var(--cbx-text-3);
  background: none;
}

/* «Де приймає»: рядки філій (назва 15/700, адреса, години), маршрут — кругла кнопка праворуч */
.page:is([data-name="master"], [data-name="specialist"]) .card .media-list.list-dividers {
  margin: 0;
}
.page[data-name="master"] .card .media-list li.item-content .item-title {
  font-size: 15px;
  font-weight: 700;
}
.page[data-name="master"] .card .media-list li.item-content .item-subtitle,
.page[data-name="master"] .card .media-list li.item-content .item-text {
  grid-column: 1;
  font-size: 13px;
  color: var(--cbx-text-2);
}
.page[data-name="master"] .card .media-list li.item-content .item-after {
  grid-row: 1 / span 3;
}
.page[data-name="master"] .card .media-list li.item-content .item-after .link.icon-only {
  width: 40px;
  height: 40px;
  margin: 0;
  border-radius: var(--cbx-radius);
  color: var(--cbx-text);
}
.page[data-name="master"] .card .media-list + .button {
  margin-top: 8px;
  gap: 6px;
}

/* роботи — 3×2, ▶ у відео, «+N» на шостій */
.cbx-master__gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.cbx-master__media {
  position: relative;
  aspect-ratio: 1;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--cbx-radius);
  background: var(--cbx-fill);
}
.cbx-master__media > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cbx-master__media > .icon {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 14px;
  color: #fff;
}
.cbx-master__media > span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .45);
  font-size: 17px;
  font-weight: 800;
  color: #fff;
}

/* відгуки (02, 01): підсумок — ліворуч «5.0 ★★★★★ N відгуків», праворуч ### бари 5…1 (F7 progressbar) */
.cbx-rating {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--cbx-border);
}
.cbx-rating__big {
  flex: none;
  width: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.cbx-rating__big > b {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
}
.cbx-rating__big > small {
  font-size: 12px;
  font-weight: 500;
  color: var(--cbx-text-2);
}
.cbx-rating > .cbx-bars {
  flex: 1;
  margin: 0;
}
/* зірки оцінки — FA */
.cbx-stars {
  display: inline-flex;
  gap: 1px;
  color: var(--cbx-star);
}
.cbx-stars > .icon {
  font-size: 12px;
}
.chip-media > .icon.fa-star {
  font-size: 13px;
  color: var(--cbx-star);
}
/* картка відгуку майстра: аватар з ініціалами, ім'я + дата, зірки праворуч, текст, тег послуги */
.cbx-review__ava {
  flex: none;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--cbx-surface);
  font-size: 13px;
  font-weight: 700;
  color: var(--cbx-text-2);
}
.cbx-review__head:has(> .cbx-review__ava) {
  align-items: center;
  gap: 10px;
}
.cbx-review__who {
  flex: 1;
  min-width: 0;
}
.cbx-review__who > .cbx-review__date {
  margin-top: 2px;
}
.cbx-review__head:has(> .cbx-review__ava) ~ .cbx-review__text {
  margin-top: 8px;
}
.cbx-review__svc {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--cbx-text-2);
}
.cbx-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 12px;
}
.cbx-bars__row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--cbx-text-2);
}
.cbx-bars .progressbar {
  --f7-progressbar-height: 6px;
  --f7-progressbar-border-radius: 3px;
  --f7-progressbar-bg-color: var(--cbx-fill);
  --f7-progressbar-progress-color: var(--cbx-star);
}
/* неактивний (використано / сплив / анульовано; макет progress--off): лінія сіра, «N з M» по послугах — сірим */
.cbx-shop-uses.cbx-shop-uses--off .progressbar {
  --f7-progressbar-progress-color: var(--cbx-text-3);
}
.md .cbx-bars .progressbar:after,
.md .cbx-shop-uses .progressbar:after {
  display: none; /* md: крапка-«стоп» у кінці смуги */
}
.page:is([data-name="master"], [data-name="specialist"]) .card .card.cbx-review {
  margin: 0;
}
.page:is([data-name="master"], [data-name="specialist"]) .card .card.cbx-review + .card.cbx-review {
  margin-top: 8px;
}
/* шторка відгуків майстра: чипи-фільтри під барами — в рядок з прокруткою */
.sheet-modal .cbx-rating + .segmented-round {
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.sheet-modal .cbx-rating + .segmented-round .button {
  flex: none;
}

/* ### шторка «Поділитися»: посилання + «Копіювати», месенджери, QR */
/* вміст шторки: посилання, месенджери, QR — колонкою через 14, по одній лінії з боків */
.sheet-modal .block.cbx-share {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
}
.cbx-share > .card {
  margin: 0;
}
/* ### посилання (.share-link): сіра смужка, посилання жирним в один рядок з «…», праворуч «Копіювати» */
.cbx-share__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 14px;
  border-radius: var(--cbx-radius);
  background: var(--cbx-fill);
}
.cbx-share__link > b {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 14px;
  font-weight: 700;
}
.cbx-share__link > .button {
  flex: none;
  gap: 6px;
}
/* ### месенджер (.share-app): кольоровий квадрат 52 r16 з білою іконкою 22, під ним підпис 12/600 в один рядок; без фону плитки */
.button.cbx-tile--app {
  --f7-button-bg-color: transparent;
  --f7-button-text-color: var(--cbx-text-2);
  gap: 6px;
  min-height: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
}
.cbx-tile--app > .icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--cbx-radius-card);
  font-size: 22px;
  color: var(--cbx-on-brand);
}
.cbx-tile--app > span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.icon.cbx-master__qr {
  flex: none;
  font-size: 80px;
  line-height: 1;
}

/* перегляд робіт (03-gallery-viewer) — F7 photoBrowser, theme dark: колонка ✕ / лічильник / ↗ → фото → підпис → мініатюри → CTA */
.photo-browser-standalone .photo-browser-page {
  display: flex;
  flex-direction: column;
  background: var(--cbx-viewer-bg);
  color: #fff;
}
.photo-browser-standalone .photo-browser-page > .navbar,
.photo-browser-standalone .photo-browser-page > .toolbar,
.photo-browser-standalone .photo-browser-page > .photo-browser-captions,
.photo-browser-standalone .photo-browser-page > .photo-browser-swiper-container {
  position: relative;
  top: auto;
  bottom: auto;
  transform: none;
}
.photo-browser-page > .navbar {
  order: 0;
  height: auto;
  --f7-navbar-bg-color: transparent;
}
.photo-browser-page > .photo-browser-swiper-container {
  order: 1;
  flex: 1;
  min-height: 0;
  height: auto;
  background: none;
}
.photo-browser-page > .photo-browser-captions {
  order: 2;
  min-height: 62px;
}
.photo-browser-page > .photo-browser-thumbs {
  order: 3;
}
.photo-browser-page > .toolbar:not(.photo-browser-thumbs) {
  order: 4;
}
.photo-browser-page .navbar-bg {
  display: none;
}
.photo-browser-page .navbar-inner {
  position: relative;
  padding: 16px;
  justify-content: space-between;
}
.md .photo-browser-page .navbar .left,
.md .photo-browser-page .navbar .right {
  margin: 0;
}
.photo-browser-page .navbar .title {
  position: static;
  flex-direction: row;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.photo-browser-page .navbar .link.icon-only,
.photo-browser-page .navbar .right .link.icon-only {
  width: 40px;
  height: 40px;
  margin: 0;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
}
.photo-browser-page .navbar .link.icon-only .icon {
  font-size: 16px;
  color: #fff;
}
.photo-browser-slide video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: auto;
}
.photo-browser-captions .photo-browser-caption {
  padding: 14px 16px 12px;
  text-align: left;
  color: #fff;
}
.photo-browser-caption b {
  display: block;
  font-size: 15px;
  font-weight: 700;
}
.photo-browser-caption small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  opacity: .7;
}
.photo-browser-page > .toolbar {
  --f7-toolbar-bg-color: transparent;
  height: auto;
  background: none;
}
.photo-browser-page > .toolbar:before,
.photo-browser-page > .toolbar:after {
  display: none;
}
.photo-browser-page > .toolbar.photo-browser-thumbs {
  --f7-toolbar-height: 68px;
  padding: 0 16px 16px;
}
.photo-browser-page > .toolbar > .toolbar-inner {
  position: relative;
}
.photo-browser-thumbs .swiper-slide {
  width: 52px;
  margin-right: 6px;
}
/* рамка активної — border усередині 52 (box-sizing: border-box): outline з offset виходив за слайд і swiper обрізав його зверху й знизу */
.photo-browser-thumbs img,
.photo-browser-thumbs .swiper-slide img,
.photo-browser-thumbs .swiper-slide-active img,
.photo-browser-thumbs .swiper-slide-active ~ .swiper-slide img {
  box-sizing: border-box;
  width: 52px;
  height: 52px;
  border: 2px solid transparent;
  object-fit: cover;
  opacity: .55;
  transform: none;
}
.photo-browser-thumbs .swiper-slide-active img {
  opacity: 1;
  border-color: var(--cbx-primary);
}
.photo-browser-page > .toolbar:not(.photo-browser-thumbs) .toolbar-inner {
  padding: 0 16px calc(24px + var(--f7-safe-area-bottom));
}
.photo-browser-page > .toolbar .button {
  flex: 1;
}

/* Кнопка запису майстра: змінні --cbx-cta-* і текст на ній — у розділі 2 («Текст на кольорових заливках») */
.button-fill.cbx-cta {
  --f7-button-bg-color: var(--cbx-cta-c);
  --f7-button-text-color: var(--cbx-cta-text-c);
  --f7-button-pressed-bg-color: var(--cbx-cta-hover-c);
}
@media (hover: hover) {
  .button-fill.cbx-cta:hover {
    --f7-button-bg-color: var(--cbx-cta-hover-c);
    --f7-button-text-color: var(--cbx-cta-hover-text-c);
  }
}
/* ЗАКОМЕНТОВАНО (2026-12-02): від класів cbx-cta-N відмовились — колір кнопки приходить inline-змінною --cbx-cta-accent на <html>
/* 10 варіантів кольору кнопки запису: клас cbx-cta-N на <html> (App.util.cta(N) — head.js / cap-head.js, з даних салону).
   Без класу / невідомий N — фолбек, поточний жовтий (= cbx-cta-1). Задається лише фон — наведення і текст обчислюються *\/
.cbx-cta-1  { --cbx-cta-bg: #FFD700; } /* жовтий *\/
.cbx-cta-2  { --cbx-cta-bg: #EA580C; } /* помаранчевий *\/
.cbx-cta-3  { --cbx-cta-bg: #DC2626; } /* червоний *\/
.cbx-cta-4  { --cbx-cta-bg: #DB2777; } /* рожевий *\/
.cbx-cta-5  { --cbx-cta-bg: #7C3AED; } /* фіолетовий *\/
.cbx-cta-6  { --cbx-cta-bg: #2563EB; } /* синій *\/
.cbx-cta-7  { --cbx-cta-bg: #0891B2; } /* бірюзовий *\/
.cbx-cta-8  { --cbx-cta-bg: #16A34A; } /* зелений *\/
.cbx-cta-9  { --cbx-cta-bg: #A3E635; } /* лайм *\/
.cbx-cta-10 { --cbx-cta-bg: #111827; } /* чорний *\/
*/

/* Майстер → «Вибір послуги» на час / день (/master-slot, макет Master-Slot-Services) */
/* картка-контекст: аватар 44, ім'я, день · час, «Вільно до…» зеленим, «Змінити» праворуч */
.cbx-salon.cbx-salon--ctx {
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
}
.cbx-salon--ctx > .cbx-salon__logo {
  width: 44px;
  height: 44px;
}
.cbx-salon--ctx > .cbx-salon__body {
  flex: 1;
  gap: 2px;
}
.cbx-salon--ctx .cbx-salon__title {
  margin: 0;
  font-size: 15px;
}
.cbx-salon--ctx .cbx-salon__text {
  font-size: 14px;
  font-weight: 600;
  color: var(--cbx-text);
}
.cbx-salon--ctx .cbx-salon__text--free {
  font-size: 12px;
  color: var(--cbx-success-text);
}
.cbx-salon--ctx > .link {
  flex: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--cbx-link);
}
/* лічильник категорії: «N недоступні о 16:30» — оранжевим */
.page[data-name="master-slot"] .accordion-item .item-subtitle > b {
  font-weight: 600;
  color: var(--cbx-warning-text);
}
/* недоступна послуга / варіант: назва й ціна сірим */
.cbx-service--off .cbx-service__head,
.cbx-price--off .cbx-price__title,
.cbx-price--off > b {
  color: var(--cbx-text-3);
}
.cbx-price--off {
  flex-wrap: wrap;
}
.cbx-price--off > .cbx-alt {
  flex-basis: 100%;
}
/* «⚠ Не вистачає … · найближчі вікна:» + зелені кнопки-вікна (день + час) */
.cbx-alt {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.cbx-price > .cbx-alt {
  margin-top: 2px;
}
.cbx-alt__msg {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--cbx-warning-text);
}
.cbx-alt__msg > .icon {
  font-size: 13px;
}
.cbx-alt__slots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cbx-alt__slots > .button {
  --f7-button-bg-color: var(--cbx-success-bg);
  --f7-button-text-color: var(--cbx-success-text);
  --f7-button-pressed-bg-color: var(--cbx-success-bg);
  --f7-touch-ripple-color: var(--f7-touch-ripple-black);
  width: auto;
  min-width: 84px;
  height: auto;
  flex-direction: column;
  gap: 1px;
  padding: 6px 10px;
  border: 1px solid var(--cbx-success-border);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color .15s, border-color .15s, transform .1s;
}
.cbx-alt__slots > .button small {
  font-size: 11px;
  font-weight: 600;
}
@media (hover: hover) {
  .cbx-alt__slots > .button:hover {
    --f7-button-bg-color: color-mix(in srgb, var(--cbx-success) 18%, var(--cbx-surface));
    border-color: var(--cbx-success);
  }
}
.cbx-alt__slots > .button:active {
  transform: scale(.96);
}

/* Акція (/discounts/:id): шапка — як промо-картка 23; рядки блоків */
.card.cbx-promo .badge {
  margin-bottom: 8px;
}
.card.cbx-promo .block-title {
  margin: 0 0 4px;
  font-size: 15px;
}
.card.cbx-promo .block-header {
  margin: 0;
  font-size: 12px;
}
.page[data-name="discount"] .card-header .icon {
  font-size: 13px;
  color: var(--cbx-success);
}
.cbx-promo__rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  line-height: var(--cbx-line-height);
}
.cbx-promo__rows > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cbx-promo__rows .icon {
  width: 14px;
  font-size: 13px;
  color: var(--cbx-text-2);
}
.cbx-promo__num {
  flex: none;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--cbx-radius-pill);
  background: var(--cbx-fill);
  font-weight: 600;
}
.cbx-promo__dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cbx-text-2);
}

/* Вибір міста (dialog-choose, choose-filiation): міста — рядки як cbx-options (сірі плитки r12, 14/600) */
.md .dialog.dialog-choose > .dialog-buttons {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 24px 16px 32px;
}
.dialog.dialog-choose .dialog-button {
  flex: none;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 16px;
  justify-content: flex-start;
  background: var(--cbx-fill);
  border-radius: var(--cbx-radius);
  color: var(--cbx-text);
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
}
/* без заголовка (LC.SelectCity немає в translate — як у mobi) — порожній .dialog-inner не займає місця */
.dialog.dialog-choose > .dialog-inner:not(:has(.dialog-title)) {
  display: none;
}

/* App.Info (dialog-black, «Код скопійовано») — тост: темна плашка внизу, без затемнення */
.dialog.dialog-black {
  --f7-dialog-bg-color: var(--cbx-text);
  --f7-dialog-text-color: var(--cbx-on-text);
  top: auto;
  bottom: calc(24px + var(--f7-safe-area-bottom, 0px));
  width: auto;
  min-width: 0;
  max-width: calc(var(--cbx-col-width, 100vw) - 32px);
  border-radius: var(--cbx-radius);
  transform: translate3d(-50%, 0, 0);
  margin: 0 !important;
}
.dialog.dialog-black > .dialog-inner {
  padding: 12px 16px;
}
.dialog.dialog-black .dialog-text {
  font-size: 14px;
  font-weight: 600;
  line-height: var(--cbx-line-height);
  color: var(--cbx-on-text);
}
.dialog-backdrop.backdrop-in:has(~ .dialog-black.modal-in) {
  background: none;
  backdrop-filter: none;
}
/* штатні кнопки F7 (app.dialog.alert / confirm — App.alert(d.msg)) — як OK в App.Error / App.Alert: outline large */
.dialog .dialog-button:not(.button-outline):not(.button-fill):not(.button-tonal) {
  height: var(--cbx-btn-lg);
  border: 1px solid var(--cbx-border);
  background: var(--cbx-surface);
  font-size: 16px;
  font-weight: 700;
}

/* ===== dev: панель швидкої навігації (тег dev_nav, лише &mode=mock / &nav=1) ===== */
.cbx-devnav__fab.button {
  position: fixed;
  z-index: 13000;
  /* угорі по центру колонки (колонка віджета центрована — центр = 50% вікна): не перекриває таббар і нижні кнопки */
  left: 50%;
  top: calc(4px + var(--f7-safe-area-top, 0px));
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  font-size: 14px;
  padding: 0;
  opacity: .6;
  box-shadow: var(--cbx-shadow-card);
}
.sheet-modal.cbx-devnav {
  z-index: 13500;
  height: 80vh;
}
/* шапка (заголовок, групи, пошук) нерухома, скролиться лише список */
.cbx-devnav .sheet-modal-inner {
  display: flex;
  flex-direction: column;
}
/* чипи груп — гориз. скрол у межах шапки (у flex-колонці інакше розтягуються на всю довжину) */
.cbx-devnav .segmented-round {
  max-width: 100%;
}
.cbx-devnav .page-content {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
}
.cbx-devnav .list .item-media .badge {
  min-width: 28px;
  justify-content: center;
}
.cbx-devnav .list .item-footer {
  font-size: 11px;
  color: var(--cbx-text-3);
}
.cbx-devnav .list .item-after {
  font-size: 11px;
}


/* ===== Етап Б, порція 5 — 47 / 48 окремими екранами (booking-error, «суха» верстка) ===== */
/* іконка помилки — червоний тон (токени), як кружок результату 45–46 */
.page[data-name="booking-error"] .card > .dialog-inner > .icon {
  background: var(--cbx-danger-bg);
  color: var(--cbx-danger);
}
.page[data-name="booking-error"] .card > .dialog-inner {
  padding-bottom: 40px;
}
.page[data-name="booking-error"] .dialog-inner > .cbx-notice {
  margin-top: 12px;
  align-self: stretch;
  justify-content: center;
}


/* ===== Етап Б, порція 10 — шторка-попередження «Необхідна передплата» (після вибору послуги; src/ui Sheet «Попередження») ===== */
/* шапка: іконка ⚠ у колі + заголовок / підзаголовок (типографіка — .sheet-modal .block-title / .block-header) */
.cbx-warn-sheet__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 64px 0 16px;
}
.cbx-warn-sheet__head > .icon {
  flex: none;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cbx-warning-border);
  border-radius: 50%;
  background: var(--cbx-warning-bg);
  color: var(--cbx-warning-accent);
  font-size: 18px;
}
.cbx-warn-sheet__head .block-title {
  margin: 0;
  padding: 0;
}
.cbx-warn-sheet__head .block-header {
  margin: 2px 0 0;
  padding: 0;
}
.cbx-warn-sheet .block {
  margin: 20px 0 0;
}
.cbx-warn-sheet p {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--cbx-text-2);
}
/* підсумок послуги на сірому фоні: назва + «тривалість · повна вартість» */
.cbx-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  border-radius: var(--cbx-radius);
  background: var(--cbx-fill);
}
.cbx-summary > b {
  font-size: 15px;
  font-weight: 600;
  line-height: var(--cbx-line-height);
  color: var(--cbx-text);
}
.cbx-summary > span {
  font-size: 13px;
  color: var(--cbx-text-2);
}
/* розподіл суми: рядки з крапкою ліворуч, сума праворуч */
.cbx-split {
  margin-top: 12px;
  border: 1px solid var(--cbx-border);
  border-radius: var(--cbx-radius);
}
.cbx-split__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--cbx-text);
}
.cbx-split__row + .cbx-split__row {
  border-top: 1px solid var(--cbx-border);
}
.cbx-split__row::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cbx-border);
}
.cbx-split__row > b {
  margin-left: auto;
  white-space: nowrap;
  font-weight: 500;
  color: var(--cbx-text-2);
}
.cbx-split__row--accent::before {
  background: var(--cbx-warning-accent);
}
.cbx-split__row--accent > b {
  font-size: 16px;
  font-weight: 700;
  color: var(--cbx-warning-accent);
}
/* «Обрати іншу послугу» — текстове посилання під кнопкою */
.cbx-warn-sheet .cbx-warn-sheet__alt {
  display: flex;
  justify-content: center;
  margin-top: 16px;
  font-size: 14px;
  color: var(--cbx-text-2);
}

/* список очікування (етап Б, порція 13): «Не можете знайти…» під слотами (28, 30) */
.card > .block-footer {
  margin: 0;
  padding: 0 16px 16px;
}
/* список очікування (етап Б, порція 13): рядок «Дата | Час» (+ ✕ у доданих) */
.list .cbx-wl-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 0 16px; /* .card .list — на всю ширину картки (-16) */
}
.list .cbx-wl-row > .link {
  min-width: 24px;
  justify-content: center;
}
.list .cbx-wl-row:has(> .link) {
  grid-template-columns: 1fr 1fr auto;
}
.md .list .cbx-wl-row > .item-input {
  min-width: 0;
  margin: 0;
}

/* ===== Лист очікування: вільні вікна для клієнта (екран 7, «суха» верстка; online/waitlist-slots.html) ===== */
/* плашка «ці вікна бачать і інші» і заявка — під підзаголовком */
.page[data-name="waitlist-slots"] .block-header + .cbx-notice,
.page[data-name="waitlist-slots"] .cbx-notice + .card-outline {
  margin-top: 12px;
}
/* вікно, яке вже зайняли (після 7ж) */
.cbx-slots__grid > .button.cbx-wl-taken {
  text-decoration: line-through;
}
/* діалоги 7г / 7ж: вміст ліворуч під заголовком; високий — скрол у межах вікна */
.dialog.cbx-wl-dialog {
  max-height: calc(100% - 32px);
  overflow-y: auto;
}
.cbx-wl-dialog .dialog-inner > .list,
.cbx-wl-dialog .dialog-inner > .cbx-wl-alts {
  align-self: stretch;
  margin: 8px 0 0;
  text-align: left;
}
/* коментар (7г) — на всю ширину вмісту діалогу (F7 md у .list дає полю бокові 16) */
.md .cbx-wl-dialog .list .item-input {
  margin: 0;
}
/* дві дії діалогу — колонкою (довгі підписи) */
.md .cbx-wl-dialog .dialog-buttons {
  flex-direction: column;
  gap: 12px;
}
.cbx-wl-dialog .dialog-buttons .button {
  flex: none;
}
/* 7ж: найближчі вікна — 3 в ряд, час + спеціаліст */
.cbx-wl-alts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.cbx-wl-alts > .button {
  height: var(--cbx-btn-lg);
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  line-height: var(--cbx-line-height);
  border-radius: var(--cbx-radius);
}
.cbx-wl-alts small {
  font-size: 11px;
  font-weight: 500;
  color: var(--cbx-text-2);
}
/* 7д / 7е / 7з: результат у картці (як 47 / 48) */
.page[data-name="waitlist-slots"] .card > .dialog-inner:last-child {
  padding-bottom: 40px;
}
.page[data-name="waitlist-slots"] .dialog-inner > .card-outline {
  align-self: stretch;
  margin: 12px 0 0;
  text-align: left;
}
/* 7е: «Будемо раді бачити вас знову!» — у картці під кнопкою, 15/700 (макет) */
.page[data-name="waitlist-slots"] .card > .dialog-buttons:has(+ .cbx-wl-bye),
.page[data-name="waitlist-slots"] .card > .dialog-buttons:has(+ .block-footer) {
  padding-bottom: 16px;
}
.page[data-name="waitlist-slots"] .card > .cbx-wl-bye {
  padding: 0 16px 40px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--cbx-text);
}
/* 7д: «Powered by» у картці під кнопкою (макет) */
.page[data-name="waitlist-slots"] .card > .dialog-buttons + .block-footer {
  padding-bottom: 40px;
}
/* 7: «Сб, 21 листопада · N вільних вікон» — праворуч у заголовку картки часу (макет) */
.card-header:has(> .cbx-wl-count) {
  white-space: nowrap; /* «Оберіть час» — в один рядок, переноситься лише підпис праворуч */
}
.card-header > .cbx-wl-count {
  min-width: 0;
  white-space: normal;
  margin-left: 8px;
  text-align: right;
  font-size: 13px;
  font-weight: 500;
  color: var(--cbx-text-2);
}
/* 7ж: час і спеціаліст у тексті — жирним (макет) */
.cbx-wl-dialog .dialog-text b {
  color: var(--cbx-text);
}
/* 7з: «Зв'язатися з салоном» у картці під лінією — підпис + телефон (макет) */
.cbx-wl-contact {
  align-self: stretch;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--cbx-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--cbx-text-2);
}
.cbx-wl-contact > .link {
  font-size: 16px;
  font-weight: 700;
  color: var(--cbx-link);
}
/* 7г: «Скасувати заявку» — світло-червона (макет): tonal у тоні color-red */
.cbx-wl-dialog .button-tonal.color-red {
  --f7-button-bg-color: var(--cbx-danger-bg);
  --f7-button-text-color: var(--cbx-danger);
}
/* 7: картка підсумку (макет) — «Ваш запис», CTA, «Жоден час не підходить», підказка; між ними 12 */
.cbx-wl-book {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cbx-wl-book > .card.cbx-prepay {
  margin: 0;
}
.cbx-wl-book > .card.cbx-prepay {
  border-width: 2px; /* макет: рамка 2 */
}
.cbx-wl-book .cbx-prepay .card-content > div > b {
  font-size: 15px;
  font-weight: 700;
}
.cbx-wl-book .cbx-prepay strong {
  font-size: 18px;
}
.cbx-wl-book > .block-footer {
  margin: 0;
  padding: 0;
}

/* ===== new: продаж сертифікатів і абонементів (макет «Онлайн-запис — продаж сертифікатів та абонементів»; теги shop, shop-item, shop-checkout, shop-success) ===== */
/* лічильник у сегменті / pill-чипі (макет: segmented__count, filter-chip__count) */
.cbx-count {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 700;
  opacity: .6;
}
/* картка товару каталогу: візуал (cbx-giftcard--sm / cbx-visits) + текст; емодзі в правому куті. cbx: у F7 немає картки «візуал + 3 рядки + ціна» */
.card.cbx-product {
  position: relative;
  display: block;
  color: inherit;
}
.cbx-product > .card-content {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cbx-product__emo {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 20px;
  line-height: 1;
}
.cbx-product__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.cbx-product__body > .badge {
  text-transform: none;
}
.cbx-product__title {
  padding-right: 24px;
  font-size: 15px;
  font-weight: 600;
  line-height: var(--cbx-line-height);
}
.cbx-product__sub {
  font-size: 13px;
  color: var(--cbx-text-2);
  line-height: var(--cbx-line-height);
}
/* «⊞ 3 послуги в пакеті» (макет meta__item--strong): 14/700, іконка 14 text-2 */
.cbx-product__meta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 700;
  color: var(--cbx-text);
}
.cbx-product__meta > .icon {
  font-size: 14px;
  color: var(--cbx-text-2);
}
/* ціна (макет item-row__hdr): сума 16/600 і перекреслена під нею — ліворуч, тег знижки — праворуч */
.cbx-product__price {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 16px;
}
/* тег «−200 ₴» / «≈ N ₴ / візит» (макет tag--success): 12 px, pill */
.cbx-product__price > .badge {
  height: 22px;
  border-radius: var(--cbx-radius-pill);
  background: var(--cbx-success-tag-bg); /* як cbx-visits--mint */
  font-size: 12px;
  font-weight: 500;
  text-transform: none;
}
/* segmented-soft — варіант segmented-strong на білій картці (макет каталогу Main / Subs-Catalog): фон сторінки, 4 / r12, кнопки 14 / r8, лічильник сірий */
.segmented.segmented-soft {
  --f7-segmented-strong-bg-color: var(--cbx-bg);
  --f7-segmented-strong-padding: 4px;
  border-radius: var(--cbx-radius);
}
.segmented.segmented-soft .button {
  border-radius: var(--cbx-radius-sm);
  font-size: 14px;
}
.segmented.segmented-soft .cbx-count {
  color: var(--cbx-text-3);
  opacity: 1;
}
/* підсумок товару на оформленні: ціна праворуч колонкою */
.cbx-product__total {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 15px;
  white-space: nowrap;
}
/* візуал сертифіката (макет gift-card): велика — деталі / успіх, --sm — каталог / оформлення; кольори — ### з даних шаблону */
.cbx-giftcard {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  padding: 20px;
  border-radius: var(--cbx-radius-card);
  background: #1F2937;
  color: #FFFFFF;
  overflow: hidden;
}
/* напівпрозоре коло в куті (макет gift-card::after) */
.cbx-giftcard::after {
  content: '';
  position: absolute;
  top: -90px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}
.cbx-giftcard > * {
  position: relative;
  z-index: 1;
}
.cbx-giftcard__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 700;
}
.cbx-giftcard__label {
  font-size: 12px;
  font-weight: 600;
  opacity: .85;
}
.cbx-giftcard__value {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
}
.cbx-giftcard__code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 8px 8px 12px;
  border: 1px dashed rgba(255, 255, 255, .5);
  border-radius: 10px;
  background: rgba(255, 255, 255, .14);
}
/* «Копіювати» (макет card__action): біла заливка, текст і іконка — кольором тексту */
.cbx-giftcard__code .button {
  --f7-button-bg-color: var(--cbx-surface);
  --f7-button-text-color: var(--cbx-text);
  gap: 6px;
}
.cbx-giftcard__code .button > .icon {
  font-size: 14px;
}
.cbx-giftcard--sm {
  flex: none;
  width: 80px;
  height: 60px;
  min-height: 0;
  padding: 8px;
  border-radius: 10px;
}
.cbx-giftcard--sm::after {
  top: -40px;
  right: -30px;
  width: 80px;
  height: 80px;
}
.cbx-giftcard--sm .cbx-giftcard__label {
  font-size: 8px;
  letter-spacing: .3px;
}
.cbx-giftcard--sm .cbx-giftcard__value {
  font-size: 16px;
}
.cbx-giftcard--plum { background: #9D174D; }
.cbx-giftcard--off { background: var(--cbx-text-3); color: #fff; } /* неактивний: використано / термін минув / анульовано (макет gift-card--off) */
.cbx-giftcard--sand { background: #E9DCCD; color: #3F2A1D; }
.cbx-giftcard--sky { background: #CFE8F7; color: #0C4A6E; }
.cbx-giftcard--mint { background: #CDEEDB; color: #14532D; }
.cbx-giftcard--sand .cbx-giftcard__code,
.cbx-giftcard--sky .cbx-giftcard__code,
.cbx-giftcard--mint .cbx-giftcard__code {
  border-color: currentColor;
}
/* бейдж кількості візитів абонемента (макет visits-badge): число + підпис; кольори — ### з даних */
.cbx-visits {
  flex: none;
  width: 64px;
  height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--cbx-radius);
  background: #FCE7F3;
  color: #9D174D;
  line-height: 1;
}
.cbx-visits--amber { background: #FEF3C7; color: #92400E; }
.cbx-visits--sky { background: #E0F2FE; color: #0369A1; }
.cbx-visits--mint { background: #DCFCE7; color: #166534; }
/* «3 послуги в пакеті / У кожної послуги…» поруч з бейджем (деталі абонемента) */
.cbx-pack-head {
  display: flex;
  align-items: center;
  gap: 16px;
}
/* бейдж візитів у шапці деталей — 80 / 34 (макет Subs-Details) */
.cbx-pack-head > .cbx-visits {
  width: 80px;
  height: 80px;
}
.cbx-pack-head .block-title {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 600;
}
.cbx-pack-head .block-header {
  margin: 0;
  font-weight: 400;
}
/* опис із «Детальніше» (макет text-clamp): 3 рядки */
.cbx-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.55;
}
.card .badge + .cbx-clamp {
  margin-top: 10px;
}
/* badge-promo — плашка «Найчастіше дарують» / «🔥 До 30.11…» (макет tag--warning): 12 px, pill; каталог і деталі продажу */
.badge.badge-promo {
  height: 22px;
  border-radius: var(--cbx-radius-pill);
  background: var(--cbx-warning-bg);
  color: var(--cbx-warning-text);
  font-size: 12px;
  font-weight: 500;
  text-transform: none;
}
.card > .card-content > .badge {
  text-transform: none;
}
/* «Детальніше →» (макет link-more): 13/600 */
.cbx-clamp + .link,
.cbx-terms__more > .link {
  font-size: 13px;
  font-weight: 600;
}
/* ціна (макет price-summary): підпис ліворуч, сума і перекреслена — праворуч колонкою */
.cbx-cost {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.cbx-cost + .cbx-notice {
  margin-top: 24px;
  padding: 12px 16px;
}
.cbx-cost + .cbx-notice .cbx-notice__after {
  font-size: 13px;
}
/* підпис під плашкою ціни (макет item-row__sub): 13, text-2, ліворуч */
.cbx-notice + .block-footer {
  margin: 16px 0 0;
  padding: 0;
  font-size: 13px;
  line-height: var(--cbx-line-height);
  text-align: left;
  color: var(--cbx-text-2);
}
/* умови / на що витратити (Cert-States, Subs-States: item-row): F7 media-list у .card-content-padding — іконка 16 (text-2) + підпис / значення / підказка; рядки 12 зверху й знизу, лінія між рядками на всю ширину */
.card .media-list.cbx-terms {
  --f7-list-bg-color: transparent;
  --f7-list-item-media-margin: 8px;
  margin: 0;
}
.cbx-terms li.item-content {
  min-height: 0;
}
.media-list.cbx-terms li.item-content .item-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-height: 0;
  padding: 12px 0;
}
/* F7 md: .media-list:not(.inset)… .item-content — r16 (лінія між рядками гнулась) */
.md .card .media-list.cbx-terms:not(.inset) li.item-content {
  border-radius: 0;
}
.cbx-terms li.item-content + li.item-content,
.cbx-terms li.cbx-terms__more + li.item-content {
  border-top: 1px solid var(--cbx-border);
}
.cbx-terms .item-inner:after {
  display: none;
}
.cbx-terms li.item-content .item-media {
  align-self: flex-start;
  min-width: 16px;
  padding: 15px 0 0; /* 12 + 3: іконка на рівні першого рядка */
}
.cbx-terms .item-media > .icon {
  width: 16px;
  font-size: 16px;
  color: var(--cbx-text-2);
}
.cbx-terms .item-header {
  font-size: 13px;
  line-height: var(--cbx-line-height);
  color: var(--cbx-text-2);
}
.media-list.cbx-terms li.item-content .item-title {
  margin-bottom: 4px;
  white-space: normal;
  font-size: 14px;
  font-weight: 500;
}
.cbx-terms .item-text {
  -webkit-line-clamp: initial;
  max-height: none;
  font-size: 13px;
  line-height: var(--cbx-line-height);
  color: var(--cbx-text-2);
}
/* обрані послуги: «назва — ціна» без іконки */
.media-list.cbx-terms li.item-content .item-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.media-list.cbx-terms li.item-content .item-title-row .item-title {
  margin: 0;
}
.cbx-terms .item-title-row .item-after {
  font-size: 14px;
  font-weight: 600;
}
/* «Показати N послуг» / «Ще N …» — під своїм рядком (макет link-more) */
.cbx-terms li.cbx-terms__more {
  padding-bottom: 12px;
}
/* ⏳ продовження терміну абонемента — між рядками (макет banner--warning, 4 / 8) */
.cbx-terms li.cbx-terms__note {
  padding: 4px 0 8px;
}
/* cbx-notice--soft — варіант warning у картці продажу: r12, 13, текст warning (рядок «⏳» умов, «Ще не активовано» результату) */
.cbx-notice--warning.cbx-notice--soft {
  border-radius: var(--cbx-radius);
  font-size: 13px;
  color: var(--cbx-warning-text);
}
/* «Що входить» абонемента: картки-рядки з бейджем «× N» / рядки універсального «✓ назва хв · окремо N» */
.cbx-pack {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cbx-pack .block-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
}
.cbx-pack .block-header {
  margin: 0;
  font-weight: 400;
}
/* «× 4» (макет tag--lg): 14/500, pill */
.cbx-pack > .chip {
  --f7-chip-height: var(--cbx-btn-sm);
  --f7-chip-font-size: 14px;
  --f7-chip-padding-horizontal: 15px;
  flex: none;
  margin: 0;
}
/* ✓ у рядку послуги: зелений (макет tag--success), неактивний абонемент — сірий */
.cbx-pack > .badge {
  width: 22px;
  height: 22px;
  padding: 0;
  justify-content: center;
  border-radius: var(--cbx-radius-pill);
  font-size: 12px;
  text-transform: none;
}
.cbx-pack > .badge > .icon {
  font-size: 12px;
}
.cbx-pack > .badge.color-green {
  background: var(--cbx-success-tag-bg); /* як cbx-visits--mint */
  color: var(--cbx-success-text);
}
.cbx-pack > .badge.color-gray {
  background: var(--cbx-fill);
  color: var(--cbx-text-3);
}
/* універсальний: «✓ назва / хв · окремо N» (макет option): 12 / r8, назва 13/500, хв — рядком нижче, сума — зелена */
.card-outline:has(> .cbx-pack > .badge) {
  border-radius: var(--cbx-radius-sm);
}
.card-outline > .cbx-pack:has(> .badge) {
  gap: 8px;
  padding: 12px;
  font-size: 13px;
  font-weight: 500;
}
.card .cbx-notice + .card-outline:has(> .cbx-pack > .badge) {
  margin-top: 16px;
}
.card-outline + .card-outline,
.card-outline + .cbx-notice,
.cbx-notice + .card-outline,
.cbx-pack + .cbx-pack {
  margin-top: 8px;
}
/* «Що входить» абонемента: перша картка одразу під заголовком; роздільний — картки через 16 (макет .card) */
.card .block-title + .card-outline {
  margin-top: 0;
}
.card-outline:has(> .cbx-pack > .chip) + .card-outline,
.card-outline:has(> .cbx-pack > .chip) + .cbx-notice {
  margin-top: 16px;
}
/* «Як скористатися» (макет status-steps): нумеровані кроки в картці з рамкою */
.cbx-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: cbx-step;
}
.cbx-steps > li {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--cbx-text-2);
  counter-increment: cbx-step;
}
.cbx-steps > li:last-child {
  margin-bottom: 0;
}
.cbx-steps > li:before {
  content: counter(cbx-step);
  flex: none;
  min-width: 16px;
  font-weight: 700;
  color: var(--cbx-link);
}
/* «Як скористатися» окремим блоком (макет status-steps): рамка на фоні сторінки, заголовок 14/600 */
.card.cbx-steps-card {
  background: none;
}
.cbx-steps-card .block-title {
  font-size: 14px;
  font-weight: 600;
}
/* плашка з переліком (макет banner__list): «🔒 Захищена оплата…», «✓ Надіслали…» */
.cbx-notice:has(> .cbx-notice__list) {
  display: block;
  padding: 12px 16px;
}
.cbx-notice__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.cbx-notice__list > li {
  display: flex;
  gap: 8px;
}
.cbx-notice__list > li + li {
  margin-top: 6px;
}
.card-content > .cbx-notice + .cbx-notice,
.list + .block-footer + .cbx-notice {
  margin-top: 8px;
}
.list + .block-footer {
  margin: -8px 0 0;
  padding: 0;
}
/* головна: «Powered by» після списку (без плиток) — не притискати, як .page-content > .block-footer */
.page[data-name="start-screen"] .page-content > .list + .block-footer {
  margin: 24px 0 32px;
}
.cbx-notice--danger {
  background: var(--cbx-danger-bg);
  border-color: var(--cbx-danger-border);
  color: var(--cbx-danger);
  font-size: 13px;
}
.cbx-notice--muted {
  background: var(--cbx-fill);
  border-color: var(--cbx-border);
  color: var(--cbx-text-2);
  font-size: 13px;
}
/* оформлення (Cert-Checkout / Subs-Checkout): що купуємо — назва 14/600 (padding-right-0 fs-14 у шаблоні), ціна 14/600 + стара 13 */
.cbx-product__total {
  font-size: 14px;
}
/* чекбокси оформлення (макет card--muted + checkbox-row): cbx-agree--compact — рядки 8 / 8, текст 13 / 1.6, посилання 400
   (підказка під полем — text-align-left text-color-gray, відступи плашок / згоди — margin-* у шаблоні) */
.cbx-agree.cbx-agree--compact .item-content {
  padding-top: 8px;
  padding-bottom: 8px;
}
.cbx-agree.cbx-agree--compact .item-title {
  font-size: 13px;
  line-height: 1.6;
}
.cbx-agree.cbx-agree--compact .item-title .link {
  font-weight: 400;
}
/* шторка «Детальніше»: заголовок + текст (абзаци, підзаголовки, перелік) + «Зрозуміло» */
.cbx-more-sheet {
  --f7-sheet-height: auto;
  max-height: 85vh;
}
.cbx-more-sheet .page-content {
  padding-bottom: 16px;
}
.cbx-more-sheet .block-title {
  margin-right: 48px;
}
/* текст шторки (макет modal-content): p / li 14/1.6, відступ 8; h3 15/600, 12 / 4 */
.cbx-more-sheet .block li {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.6;
}
.cbx-more-sheet .block ul {
  margin: 0 0 8px;
  padding-left: 18px;
}
/* результат продажу (Cert-Success / Subs-Success / Edge-States): картка-статус по центру + вміст під ним */
.card > .dialog-inner + .card-content {
  padding-top: 16px;
}
.dialog-inner > .preloader {
  margin-top: 8px;
}
/* «Можливі причини» (макет status-reasons): рамка на фоні сторінки, pad 16, заголовок 14/600, перелік з червоними маркерами */
.cbx-shop-reasons {
  align-self: stretch;
  margin: 12px 0 0;
  padding: 16px;
  border: 1px solid var(--cbx-border);
  border-radius: var(--cbx-radius);
  background: var(--cbx-bg);
  font-size: 13px;
  line-height: 1.6;
  text-align: left;
  color: var(--cbx-text-2);
}
.cbx-shop-reasons ul {
  margin: 0;
  padding-left: 20px;
}
.cbx-shop-reasons li + li {
  margin-top: 8px;
}
.cbx-shop-reasons li::marker {
  color: var(--cbx-danger);
}
.cbx-shop-uses .progressbar {
  --f7-progressbar-height: 6px;
  --f7-progressbar-border-radius: var(--cbx-radius-pill);
  --f7-progressbar-bg-color: var(--cbx-border);
  --f7-progressbar-progress-color: var(--cbx-success);
  margin: 8px 0 0;
}
/* залишок по послугах (макет item-row): 12 / 0, лінія між рядками, назва 14/500, «4 з 4» 14/600 зелений */
.cbx-shop-uses .cbx-terms__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 500;
}
.cbx-shop-uses .cbx-terms__row + .cbx-terms__row {
  border-top: 1px solid var(--cbx-border);
}

/* ===== Головна: міні-сайт (Home-v2) — акції, спеціалісти, локації, про салон ===== */
/* акції: промо-картки в картці — з рамкою, без тіні; макет promo: pad 14, gap 8, назва 16/700 (1.3), умова 13/500, «Деталі →» 13/600 */
.page[data-name="start-screen"] swiper-slide > .card-outline {
  box-shadow: none;
}
.page[data-name="start-screen"] swiper-slide > .card-outline > .card-content-padding {
  padding: 14px;
}
.page[data-name="start-screen"] swiper-slide .card .block-title {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.3;
}
.page[data-name="start-screen"] swiper-slide .card .block-header {
  margin: 0 0 8px;
  font-size: 13px;
}
.page[data-name="start-screen"] swiper-slide .card .block-header + .link {
  font-weight: 600;
}
/* «📍 Локації» / «💜 Про салон»: заголовок 16/600 (макет ah) */
.page[data-name="start-screen"] .accordion-list .accordion-item > .item-link .item-title {
  font-size: 16px;
  font-weight: 600;
}
/* спеціалісти: посада під іменем (sr макета) — 9/700 UPPERCASE */
.cbx-tile--spec > .cbx-tile__role {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--cbx-text-2);
}
/* локації / про салон: вкладені списки — без власних відступів (відступ дає accordion-item-content) */
.accordion-item-content > .list {
  --f7-list-item-padding-horizontal: 0px;
  margin: 0;
}
.accordion-item-content > .list > ul {
  background: none;
}
.accordion-item-content > .segmented {
  margin-bottom: 12px;
}
/* рядок філії: назва / адреса / статус / 2 кнопки — колонкою (media-list у bapp — grid з колонкою праворуч) */
.cbx-locs li.item-content .item-inner {
  display: block;
}
.cbx-locs li.item-content .item-title {
  font-size: 15px;
  font-weight: 600;
}
.cbx-locs li.item-content .item-subtitle {
  margin-top: 2px;
  font-size: 12px;
}
.cbx-locs .item-inner > .grid {
  --f7-grid-gap: 8px;
  margin-top: 10px;
}
/* рядок філії 12 / 0 (макет lr); «Записатися сюди» — синім (макет b3) */
.cbx-locs li.item-content .item-inner {
  padding-top: 12px;
  padding-bottom: 12px;
}
.cbx-locs .grid > .button-outline {
  color: var(--cbx-link);
}
.cbx-locs-more {
  margin-top: 8px;
}
/* статус філії: крапка + «Відчинено до …» / «Зачинено · …» */
.list .item-text.cbx-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--cbx-danger);
}
.cbx-status::before {
  content: '';
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.list .item-text.cbx-status--open {
  color: var(--cbx-success-text);
}
.cbx-status.cbx-status--open::before {
  background: var(--cbx-success);
}
/* «Про салон» (Home-v2, макет ab): фото, опис, лінія, зручності — через 12 */
/* фото (макет pg): 2 колонки 2:1, 2 рядки, gap 6; велике — на 2 рядки; «+N фото» 11/600.
   Висота — пропорцією сітки макета (296 × 158), щоб усі три фото зберігали пропорції на будь-якій ширині */
.cbx-about__photos {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  aspect-ratio: 296 / 158;
}
.cbx-about__photos > .cbx-master__media {
  aspect-ratio: auto;
}
.cbx-about__photos > .cbx-master__media:first-child {
  grid-row: span 2;
}
/* опис і лінія під ним — утилітами в розмітці; зручності — 2 в ряд, gap 8 */
.accordion-item-content > .cbx-amenities {
  --f7-grid-gap: 8px;
  margin-top: 12px;
}
/* зручність (макет ami): сірий фон r12, pad 10, gap 8; іконка 14 у кружку 28 (світлий тон кольору іконки) (назва / підпис — утилітами в розмітці) */
.cbx-amenity {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px;
  border-radius: var(--cbx-radius);
  background: var(--cbx-fill);
}
.cbx-amenity > .icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: color-mix(in srgb, currentColor 10%, transparent);
  font-size: 14px;
}
/* Акції (Promos-All) / акція (Promo-Details): рядок «🗓 до … · Деталі ›», чіпи (термін, знижка, філії) */
.cbx-promo__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}
.cbx-promo__foot > .link {
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cbx-link);
}
.cbx-promo__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
/* Акція (Promo-Details): назва 22/800 (1.25), відступи 12, опис 14/500 (1.55) кольором тексту */
.page[data-name="discount"] .card.cbx-promo .block-title {
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}
.page[data-name="discount"] .cbx-promo__chips {
  margin-top: 0;
}
/* «Послуги за акцією»: назва 14/600, ціна 14/700, стара 12 text-3; «Умови»: значення 14/600 */
.page[data-name="discount"] .media-list li.item-content .item-title {
  font-size: 14px;
}
.page[data-name="discount"] .media-list .item-after {
  font-size: 14px;
}
/* Акції (Promos-All): назва 17/700 (1.3), відступи 8, умова 13 */
.page[data-name="discounts"] .card.cbx-promo .block-title {
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.3;
}
.page[data-name="discounts"] .card.cbx-promo .block-header {
  font-size: 13px;
}

/* ===== Продаж: сертифікат / абонемент за посиланням із SMS (/shop-card; макет SMS-Cert, SMS-Subs, SMS-Subs-Free) ===== */
/* бейдж статусу над назвою салону (макет app-header__status tag--lg): 14/500, pill, 8 / 16, без верхнього регістру */
.cbx-salon__body > .badge {
  height: auto;
  padding: 8px 16px;
  border-radius: var(--cbx-radius-pill);
  font-size: 14px;
  font-weight: 500;
  line-height: var(--cbx-line-height);
  text-transform: none;
}
/* плашка стану під залишком; привітання — заголовок 14/600 над плашкою */
.cbx-shop-uses + .cbx-notice {
  margin-top: 16px;
}
/* залишок у шапці сторінки з SMS — без вкладеної рамки (макет: price-summary / item-row__hdr прямо в app-content); uses.flat (shop-card.js) */
.card-outline.cbx-shop-uses--flat {
  margin: 0;
  border: 0;
  border-radius: 0; /* інакше r12 + overflow hidden картки обрізає кінці смужки прогресу */
}
.cbx-shop-uses--flat > .card-content-padding {
  padding: 0;
}

/* ===== Акції: зображення, бейдж типу з іконкою, чіп терміну, знижка; «Умови» Promo-Details (Promos-All / Home-v2 / Promo-Details) ===== */
/* зображення акції (макет pi): пропорцією макета — Promos-All 304 × 120 у картці (поля 12), Promo-Details 328 × 180 окремим блоком r16; немає картинки — сіра заглушка far fa-image */
.cbx-promo__img {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 304 / 120;
  margin: -4px -4px 12px;
  overflow: hidden;
  border-radius: var(--cbx-radius);
  background: var(--cbx-border);
  color: var(--cbx-text-3);
}
.cbx-promo__img > .icon {
  font-size: 24px;
}
.cbx-promo__img--lg {
  aspect-ratio: 328 / 180;
  margin: var(--cbx-gap) var(--f7-card-margin-horizontal) 0;
  border-radius: var(--cbx-radius-card);
}
.cbx-promo__img--lg > .icon {
  font-size: 28px;
}
/* бейдж типу (макет ptag): іконка 12 + текст, без верхнього регістру */
.cbx-promo .badge,
.page[data-name="start-screen"] swiper-slide .badge {
  text-transform: none;
}
.cbx-promo .badge > .icon,
.page[data-name="start-screen"] swiper-slide .badge > .icon {
  font-size: 12px;
}
/* чіп терміну (макет pill): far fa-calendar 14 + «до …»; знижка «−20%» — зелений бейдж тієї ж висоти, 13/600, r8 */
.cbx-promo .chip > .icon {
  font-size: 14px;
}
.cbx-promo__chips > .badge {
  height: var(--f7-chip-height);
  padding: 0 10px;
  border-radius: var(--f7-chip-border-radius);
  font-size: 13px;
  font-weight: 600;
}
.cbx-promo__foot > .link > .icon {
  font-size: 12px;
}
/* «Умови» (макет rl): кружок 32 з іконкою 16 (color-* — тонований, як іконки рядків), вирівняний по верху; підпис 13 text-2, значення 16/600, підказка 12/500 text-2; між рядками — лінія, 12 / 12 */
.card .media-list.cbx-promo-terms {
  --f7-list-bg-color: transparent;
  --f7-list-item-padding-horizontal: 0px;
  --f7-list-item-media-margin: 12px;
  margin: 0;
}
.cbx-promo-terms li.item-content {
  align-items: flex-start;
  min-height: 0;
}
.md .card .media-list.cbx-promo-terms:not(.inset) li.item-content {
  border-radius: 0;
}
.cbx-promo-terms li.item-content + li.item-content {
  border-top: 1px solid var(--cbx-border);
}
.cbx-promo-terms li.item-content .item-media {
  align-self: flex-start;
  padding-top: 12px;
}
.list.cbx-promo-terms .item-media .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: color-mix(in srgb, currentColor 10%, transparent);
  font-size: 16px;
}
.media-list.cbx-promo-terms li.item-content .item-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  min-height: 0;
  padding: 12px 0;
}
.cbx-promo-terms .item-inner:after {
  display: none;
}
.cbx-promo-terms .item-header {
  font-size: 12px;
  font-weight: 500;
  line-height: var(--cbx-line-height);
  color: var(--cbx-text-2);
}
.page[data-name="discount"] .media-list.cbx-promo-terms li.item-content .item-title {
  white-space: normal;
  font-size: 14px;
  font-weight: 600;
}
.cbx-promo-terms .item-footer {
  font-size: 12px;
  font-weight: 500;
  line-height: var(--cbx-line-height);
  color: var(--cbx-text-2);
}
.cbx-promo-terms .cbx-promo__chips {
  margin-top: 0;
}

/* картка спеціаліста (/specialist, макет Specialist): шапка по центру — фото 112, ім'я, посада · досвід, чипи рейтингу й філій */
.cbx-spec {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.cbx-spec__photo {
  width: 112px;
  height: 112px;
  flex: none;
  border-radius: 50%;
  background: var(--cbx-fill);
  object-fit: cover;
}
.icon.cbx-spec__photo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--cbx-text-2);
}
.cbx-spec__name {
  margin-top: 4px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}
.cbx-spec__meta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--cbx-text-2);
}
.cbx-spec > .cbx-chips {
  justify-content: center;
}
.page[data-name="specialist"] .cbx-master__about > .block-title {
  margin-bottom: 8px;
}
.page[data-name="specialist"] .card .media-list li.item-content .item-after {
  font-weight: 700;
  color: var(--cbx-text);
}
/* найближчий час: іконка в білому кружку 32 (макет) */
.page[data-name="specialist"] .cbx-notice--success {
  gap: 12px;
}
.page[data-name="specialist"] .cbx-notice--success > .icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--cbx-surface);
  font-size: 16px;
  color: var(--cbx-success);
}
.page[data-name="specialist"] .cbx-notice--success > div > b {
  display: block;
  font-size: 15px;
  color: var(--cbx-text);
}
/* абонемент з SMS (макет SMS-Subs): «3 послуги в пакеті» з іконкою 13/500, «відвідувань залишилось» під лінією, плашка стану між картками,
   «Залишок за послугами» — рядок «назва · N з M» + лінія 6 через 6, рядки 12 / 12 з лінією між ними */
.cbx-shop-uses .block-header > .icon {
  font-size: 13px;
  color: var(--cbx-text-3);
}
.cbx-shop-uses .block-header + .block-header {
  margin-top: 2px;
}
.cbx-shop-uses .block-header.cbx-shop-uses__foot {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 400;
}
.block.cbx-shop-banner {
  margin: 0 0 var(--cbx-gap);
}
.cbx-shop-uses__item {
  padding: 12px 0;
}
.cbx-shop-uses__item:last-child {
  padding-bottom: 0;
}
.cbx-shop-uses__item + .cbx-shop-uses__item {
  border-top: 1px solid var(--cbx-border);
}
.cbx-shop-uses .cbx-shop-uses__item > .cbx-terms__row {
  padding: 0;
}
.cbx-shop-uses__item > .progressbar {
  margin-top: 6px;
}
/* icon-soft — продаж (Cert-/Subs-Success, Edge-States, SMS-*: status-page__icon-wrap): іконка стану — насичений колір на світлому тоні того ж кольору
   (у решті bapp — тон F7 md: on-container на container) */
.card > .dialog-inner > .icon.icon-soft[class*="color-"] {
  background: color-mix(in srgb, var(--f7-theme-color) 15%, var(--cbx-surface));
  color: var(--f7-theme-color);
}

/* ===== Утиліти (як F7 display-flex / flex-direction-column / text-color-* і сервісні класи mobi): лише те, чого немає в F7 і custom.css.
   !important — як у F7 / Bootstrap: утиліта перебиває правила компонента. Елементи без власного класу стилізуємо ними, не селектором тегу. ===== */
.text-nowrap { white-space: nowrap !important; }
.display-inline { display: inline !important; }
.flex-1 { flex: 1 1 0% !important; min-width: 0 !important; }
.flex-wrap { flex-wrap: wrap !important; }
.min-width-0 { min-width: 0 !important; }
.gap-2 { gap: 2px !important; }
.gap-8 { gap: 8px !important; }
.gap-12 { gap: 12px !important; }
.fs-10 { font-size: 10px !important; }
.fs-11 { font-size: 11px !important; }
.fs-12 { font-size: 12px !important; }
.fs-13 { font-size: 13px !important; }
.fs-14 { font-size: 14px !important; }
.fs-15 { font-size: 15px !important; }
.fs-16 { font-size: 16px !important; }
.fs-20 { font-size: 20px !important; }
.fs-24 { font-size: 24px !important; }
.fs-34 { font-size: 34px !important; }
.fw-400 { font-weight: 400 !important; }
.fw-500 { font-weight: 500 !important; }
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }
.fw-800 { font-weight: 800 !important; }
.line-height-135 { line-height: 1.35 !important; }
.line-height-155 { line-height: 1.55 !important; }
.line-height-16 { line-height: 1.6 !important; }
.letter-spacing-05 { letter-spacing: .5px !important; }
.opacity-85 { opacity: .85 !important; }
.text-color-black { color: var(--cbx-text) !important; } /* у бандлі F7 немає text-color-* — основний колір тексту */
.text-color-muted { color: var(--cbx-text-3) !important; }
.text-color-success { color: var(--cbx-success-text) !important; }
.text-color-danger { color: var(--cbx-danger) !important; }
.bg-color-fill { background-color: var(--cbx-fill) !important; }
.bg-color-success-soft { background-color: var(--cbx-success-bg) !important; }
.bg-color-success-border { background-color: var(--cbx-success-border) !important; }
.margin-0 { margin: 0 !important; }
.padding-0 { padding: 0 !important; }
.margin-top-0 { margin-top: 0 !important; }
.margin-top-2 { margin-top: 2px !important; }
.margin-top-4 { margin-top: 4px !important; }
.margin-top-8 { margin-top: 8px !important; }
.margin-top-12 { margin-top: 12px !important; }
.margin-top-16 { margin-top: 16px !important; }
.margin-bottom-4 { margin-bottom: 4px !important; }
.margin-bottom-6 { margin-bottom: 6px !important; }
.margin-left-16 { margin-left: 16px !important; } /* підпис-li над полем у .list — на краю поля (рядок F7 відступає на 16) */
.margin-bottom-8 { margin-bottom: 8px !important; }
.margin-bottom-12 { margin-bottom: 12px !important; }
.margin-bottom-16 { margin-bottom: 16px !important; }
.padding-right-0 { padding-right: 0 !important; }
.padding-bottom-12 { padding-bottom: 12px !important; }
.padding-bottom-40 { padding-bottom: 40px !important; }
.min-height-inherit { min-height: inherit !important; } /* висота сторінки (F7 .page — min-height на вебі, height у застосунку) */
.border-bottom { border-bottom: 1px solid var(--cbx-border) !important; }
.border-width-2 { border-width: 2px !important; }
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.object-fit-cover { object-fit: cover !important; }
/* маленький спінер у рядку з текстом (макет spinner--sm): 16 */
.preloader.preloader-sm {
  --f7-preloader-size: 16px;
  width: 16px;
  height: 16px;
}

/* ===== Службові правила (раніше лише в legacy custom.css; online custom.css не вантажить — тож тут, спільно) ===== */
/* смуги прокрутки — приховані */
*::-webkit-scrollbar,
*::-webkit-scrollbar-track {
  width: 0;
  height: 0;
  display: none;
}
* {
  scrollbar-width: none;
}
/* список країн intlTelInput (dropdownContainer: body) поверх модалок і шторки: F7 sheet — 12500, backdrop — 11000
   (custom.css давав 5000 — у шторці список був під нею) */
/* .iti — специфічніше за .iti--container з custom.css (у bapp він після app.css, з тим самим !important) */
.iti.iti--container {
  z-index: 14000 !important;
}
/* список країн intlTelInput — токени (стилі бібліотеки: білий фон / #ccc — у темній текст не читався) */
.iti .iti__country-list {
  background-color: var(--cbx-surface);
  border-color: var(--cbx-border);
  box-shadow: var(--cbx-shadow-card);
  color: var(--cbx-text);
}
.iti .iti__country.iti__highlight {
  background-color: var(--cbx-fill);
}
.iti .iti__dial-code {
  color: var(--cbx-text-3);
}
.iti .iti__divider {
  border-bottom-color: var(--cbx-border);
}
/* посилання в HTML з CRM (промо, опис послуги) — кольором тексту */
a {
  color: inherit;
}
/* класи текстового редактора CRM у HTML промо / опису */
span.text-bold {
  color: var(--cbx-text);
  font-weight: bold !important;
}
span.text-danger {
  color: var(--cbx-danger);
}
span.text-info {
  color: var(--cbx-link);
}
span.text-success {
  color: var(--cbx-success);
}
