/* ============================================================
   Comarch MedNote Sync — Frontend Styles
   Dopasowane do projektu Figma
   BUILD: 4.7.0 — jeśli widzisz ten numer w źródle pliku CSS
   na żywej stronie, wtyczka jest zaktualizowana poprawnie.
   ============================================================ */

.cms-no-results { color: #888; font-style: italic; padding: 16px 0; }

/* ============================================================
   1. USŁUGI — TABELA (Figma screen 1)
   ============================================================ */

.cms-services-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

.cms-services-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    color: #1a1a1a;
    background: #fff;
}

.cms-services-table thead tr { background: #f0f0f0 !important; }
.cms-services-table tbody tr { background: #fff !important; }
.cms-services-table thead th {
    padding: 14px 20px;
    text-align: left;
    font-weight: 500;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
}

.cms-services-table .col-name  { width: 42%; }
.cms-services-table .col-code  { width: 12%; }
.cms-services-table .col-notes { width: 32%; }
.cms-services-table .col-price { width: 14%; text-align: right; }
.cms-services-table thead th.col-price { text-align: right; }

.cms-services-table tbody tr { border-bottom: 1px solid #e0e0e0; transition: background .15s; }
.cms-services-table tbody tr:last-child { border-bottom: 1px solid #ddd; }
.cms-services-table tbody tr:hover { background: #f8f9ff !important; }
.cms-services-table tbody td {
    padding: 18px 20px;
    vertical-align: middle;
    font-size: 15px;
    color: #222;
}

/* Blue link name */
.cms-svc-name-cell { color: #2f54d0; font-weight: 400; text-decoration: none; cursor: default; }
.cms-svc-name-cell:hover { color: #1a3aad; text-decoration: underline; }

.cms-svc-code  { color: #333; font-size: 14px; }
.cms-svc-notes { color: #444; font-size: 14px; }
.cms-svc-price { text-align: right; font-weight: 400; color: #1a1a1a; white-space: nowrap; }

/* ============================================================
   2. LEKARZE (Figma screen 2)
   ============================================================ */

.cms-doctors-wrap { width: 100%; }

/* Category tabs */
.cms-doctors-tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 28px;
}
.cms-doctors-tab-btn {
    background: none !important;
    border: none !important;
    border-bottom: 3px solid transparent !important;
    padding: 14px 28px !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    color: #888 !important;
    cursor: pointer;
    transition: color .2s, border-color .2s, background .2s;
    white-space: nowrap;
    margin-bottom: -1px;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    border-radius: 0 !important;
}
.cms-doctors-tab-btn:hover { color: #333 !important; background: #f8f8f8 !important; }
.cms-doctors-tab-btn.active { color: #1a1a1a !important; font-weight: 600 !important; border-bottom-color: #1a1a1a !important; background: #fff !important; }

/* Specialization filter pills */
.cms-doctors-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.cms-filter-pill {
    background: #fff !important;
    border: 1.5px solid #d0d0d0 !important;
    border-radius: 99px !important;
    padding: 7px 18px !important;
    font-size: 14px !important;
    color: #333 !important;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
    font-family: inherit !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    margin: 0 !important;
}
.cms-filter-pill:hover { border-color: #1a3aad !important; color: #1a3aad !important; background: #f0f4ff !important; }
.cms-filter-pill.active { background: #1e3a6e !important; border-color: #1e3a6e !important; color: #fff !important; font-weight: 600 !important; }

/* Doctor grid */
.cms-doctors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Doctor card */
.cms-doctor-card { background: #fff; border-radius: 12px; overflow: hidden; text-align: center; transition: transform .2s, box-shadow .2s; }
.cms-doctor-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.10); }

/* Photo */
.cms-doctor-photo-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #e3e3e3;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 14px;
}
.cms-doctor-photo-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cms-doctor-photo-placeholder {
    width: 100%; height: 100%;
    background: #e3e3e3;
    display: flex; align-items: center; justify-content: center;
}
.cms-doctor-photo-placeholder svg { width: 52px; height: 52px; opacity: .3; }

/* Name & spec */
.cms-doctor-name { font-size: 14px; font-weight: 700; color: #1a1a1a; margin: 0 0 5px; line-height: 1.3; }
.cms-doctor-spec { font-size: 13px; color: #555; margin: 0; line-height: 1.4; }

/* Lista lokalizacji — jedna pozycja na linię */
.cms-doctor-location-list { margin-top: 4px; display: flex; flex-direction: column; gap: 2px; }
.cms-doctor-location-list .cms-doctor-location { margin: 0; display: flex; align-items: center; gap: 5px; }
.cms-doctor-location-icon {
    width: 13px;
    height: 13px;
    object-fit: contain;
    flex-shrink: 0;
    display: inline-block;
}
.cms-doctor-location-icon-emoji { width: auto; height: auto; font-size: 12px; line-height: 1; }

/* Filter hidden state */
.cms-doctor-card.cms-hidden { display: none; }

/* ── Responsive ── */
@media (max-width: 1024px) { .cms-doctors-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  {
    .cms-doctors-grid { grid-template-columns: repeat(2, 1fr); }
    .cms-doctors-tab-btn { padding: 10px 14px; font-size: 13px; }
    .cms-services-table thead th, .cms-services-table tbody td { padding: 12px 14px; }
}
@media (max-width: 480px) {
    .cms-doctors-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .cms-services-table .col-notes { display: none; }
}

/* ============================================================
   3. KARTA LEKARZA — link wrapper
   ============================================================ */

a.cms-doctor-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
a.cms-doctor-card-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    text-decoration: none;
}
a.cms-doctor-card-link .cms-doctor-name,
a.cms-doctor-card-link .cms-doctor-spec {
    color: inherit;
}

/* ============================================================
   4. PROFIL LEKARZA (widget-doctor-profile)
   ============================================================ */

.cms-profile {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}
.cms-profile.cms-profile-vertical {
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.cms-profile.cms-profile-vertical .cms-profile-specjalizacje,
.cms-profile.cms-profile-vertical .cms-profile-list,
.cms-profile.cms-profile-vertical .cms-profile-tags {
    justify-content: center;
}

/* Photo */
.cms-profile-photo-placeholder svg {
    width: 64px;
    height: 64px;
    opacity: .3;
}
.cms-profile-initials {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    background: #1e3a6e;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: .05em;
}

/* Info */
.cms-profile-info {
    flex: 1;
    min-width: 0;
}
.cms-profile-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.2;
    color: #1a1a1a;
}
.cms-profile-typ {
    font-size: 1rem;
    color: #555;
    margin: 0 0 12px;
    font-weight: 500;
}

/* Specialization badges */
.cms-profile-specjalizacje {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.cms-profile-spec {
    display: inline-block;
    background: #e8f0fe;
    color: #1a56db;
    border-radius: 20px;
    padding: 4px 14px;
    font-size: .85rem;
    font-weight: 600;
}

/* Bio */
.cms-profile-bio {
    font-size: .95rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Meta */
.cms-profile-meta {
    font-size: .85rem;
    color: #666;
    margin: 0 0 8px;
}
.cms-meta-label { font-weight: 600; color: #333; }

/* Sections */
.cms-profile-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}
.cms-profile-section-title {
    font-size: .9rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.cms-profile-list {
    margin: 0;
    padding: 0 0 0 18px;
    font-size: .9rem;
    color: #444;
    line-height: 1.8;
}

/* Tags (languages) */
.cms-profile-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cms-tag {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 3px 10px;
    font-size: .82rem;
    color: #444;
}

/* Button */
.cms-profile-actions { margin-top: 24px; }

/* Editor notice */
.cms-editor-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 16px 20px;
    font-size: .9rem;
    color: #664d03;
}

/* ============================================================
   5. PROCEDURY LEKARZA (widget-doctor-procedures)
   ============================================================ */

.cms-proc-grouped { display: flex; flex-direction: column; gap: 32px; }

.cms-proc-group-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Lokalizacje cen pod nazwą usługi */
.cms-svc-loki {
    margin-top: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
}
.cms-svc-loki small {
    font-size: .78rem;
    color: #777;
}

/* List view */
.cms-proc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cms-proc-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
}
.cms-proc-list-item .cms-svc-name-cell { flex: 1; }
.cms-proc-list-item .cms-svc-price { margin-left: auto; font-weight: 700; white-space: nowrap; }
.cms-proc-kanal {
    font-size: .8rem;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
    color: #555;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .cms-profile { flex-direction: column; align-items: center; text-align: center; }
    .cms-profile-photo-wrap { width: 160px; min-width: 160px; height: 160px; }
    .cms-profile-specjalizacje { justify-content: center; }
    .cms-profile-list { padding-left: 0; list-style: none; }
}

/* ── Lekarze pod nazwą procedury w tabeli ── */
.cms-svc-personel {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-top: 5px;
}
.cms-svc-personel-link {
    font-size: .78rem;
    color: #1e3a6e;
    text-decoration: none;
    background: #eef2fb;
    border-radius: 3px;
    padding: 1px 7px;
    white-space: nowrap;
    transition: background .15s;
}
a.cms-svc-personel-link:hover {
    background: #d5e0f8;
    text-decoration: none;
}

/* ============================================================
   6. PERSONEL PROCEDURY — nagłówek procedury na stronie listy
   ============================================================ */

.cms-proc-page-header {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e0e0e0;
}
.cms-proc-page-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    flex: 1;
    min-width: 200px;
}
.cms-proc-page-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e3a6e;
    white-space: nowrap;
}
.cms-proc-page-kanal {
    font-size: .85rem;
    background: #f0f4ff;
    color: #1a3aad;
    border-radius: 20px;
    padding: 3px 12px;
    font-weight: 500;
    white-space: nowrap;
}

/* service name as link */
a.cms-svc-name-cell {
    text-decoration: none;
    transition: color .15s;
}
a.cms-svc-name-cell:hover {
    text-decoration: underline;
}

/* ════════════════════════════════════════════════════════════
   PROFIL LEKARZA v2 — dokładnie wg makiety
   ════════════════════════════════════════════════════════════ */

.cms-profile-wrap {
    font-family: 'Manrope', sans-serif;
    color: #000;
}

/* ── Breadcrumb ── */
.cms-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: #767676;
    margin-bottom: 28px;
}
.cms-breadcrumb a { color: #767676; text-decoration: none; transition: color .2s; }
.cms-breadcrumb a:hover { color: #C2A47E; }
.cms-breadcrumb-sep { font-size: 8px; color: #ccc; }
.cms-breadcrumb-current { color: #000; font-weight: 500; }

/* ── Grid: zdjęcie | info ── */
.cms-profile-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 48px;
    align-items: stretch;
    margin-bottom: 40px;
}

/* ── Lewa kolumna: zdjęcie ── */
.cms-profile-left { display: flex; flex-direction: column; }

.cms-profile-photo-wrap {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 4/5 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #E6E6E6 !important;
    cursor: pointer;
    flex-shrink: 0;
}
.cms-profile-photo-wrap:focus-visible {
    outline: 2px solid #C2A47E;
    outline-offset: 2px;
}

/* Każdy slajd (zdjęcie lub wideo-poster) */
.cms-profile-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}
.cms-profile-slide.active { opacity: 1; pointer-events: auto; }

.cms-profile-photo-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Placeholder dla wideo bez możliwej do pobrania miniaturki (np. Vimeo bez ręcznie podanej miniatury) */
.cms-profile-video-fallback-bg {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

/* Ikona play na miniaturce wideo */
.cms-profile-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0,0,0,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    pointer-events: none;
}
.cms-profile-play-icon svg { width: 26px; height: 26px; margin-left: 3px; }

/* Podpowiedź "powiększ" w rogu — widoczna na hover */
.cms-profile-zoom-hint {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    opacity: 0;
    transition: opacity .2s ease;
    pointer-events: none;
    z-index: 2;
}
.cms-profile-zoom-hint svg { width: 18px; height: 18px; }
.cms-profile-photo-wrap:hover .cms-profile-zoom-hint,
.cms-profile-photo-wrap:focus-visible .cms-profile-zoom-hint { opacity: 1; }

.cms-profile-photo-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: #E6E6E6;
}
.cms-profile-photo-placeholder svg { width: 72px; height: 72px; opacity: .3; }

.cms-profile-photo-nav {
    position: absolute !important;
    left: 0; right: 0; bottom: 0;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px;
    padding: 16px 18px 18px;
    z-index: 3;
}
.cms-photo-arrow {
    width: 35px !important; height: 35px !important;
    border-radius: 50% !important;
    border: 1px solid #000 !important;
    background: transparent !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    cursor: pointer;
    font-size: 16px !important;
    line-height: 1 !important;
    font-family: 'Source Sans Pro', sans-serif !important;
    font-weight: 300 !important;
    color: #000 !important;
    transition: background .15s;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    min-width: 0 !important;
    flex-shrink: 0;
}
.cms-photo-arrow:hover { background: rgba(255,255,255,.5) !important; color: #000 !important; border-color: #000 !important; }

.cms-photo-counter-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}
.cms-photo-counter { font-size: 13px; color: #000; font-family: 'Manrope', sans-serif; }
.cms-photo-progress {
    display: block;
    width: 100%;
    max-width: 140px;
    height: 2px;
    background: rgba(0,0,0,.2);
    border-radius: 2px;
    overflow: hidden;
}
.cms-photo-progress-bar {
    display: block;
    height: 100%;
    background: #000;
    border-radius: 2px;
    transition: width .25s ease;
}

.cms-profile-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    background: #C2A47E !important;
    color: #fff !important;
    font-family: 'Manrope', sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    padding: 14px 20px !important;
    border-radius: 10px !important;
    border: 1px solid #C2A47E !important;
    margin-top: 20px;
    cursor: pointer;
    transition: background .2s, transform .15s;
    text-decoration: none !important;
    text-align: center !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}
.cms-profile-btn:hover { background: #A8895F !important; border-color: #A8895F !important; color: #fff !important; transform: translateY(-1px); }

/* ── Prawa kolumna: info ── */
.cms-profile-right {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.cms-profile-name {
    font-family: 'Manrope', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    color: #000;
    margin: 0 0 10px;
}

.cms-profile-spec-text {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    color: #4A4A4A;
    margin: 0 0 24px;
    max-width: 620px;
}

/* ── Chipsy ── */
.cms-chips-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
}
.cms-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #F5F5F5;
    border: 1px solid #E2E2E2;
    border-radius: 10px;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #1A1A1A;
    line-height: 1.4;
}
.cms-chip svg { width: 18px; height: 18px; flex-shrink: 0; color: #1A1A1A; }

/* ── Lokalizacje ── */
/* margin-top:auto na pierwszym elemencie sekcji lokalizacji "dociska"
   ją (razem z listą poniżej) do dołu kolumny — wyrównanie z końcem
   zdjęcia/przyciskiem w lewej kolumnie (patrz .cms-profile-grid: stretch). */
.cms-locations-title {
    font-size: 14px;
    font-weight: 400;
    color: #000;
    margin: auto 0 16px;
}
.cms-locations-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 32px;
}
.cms-loc-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.cms-loc-icon {
    color: #C2A47E;
    font-size: 16px;
    line-height: 1.3;
    flex-shrink: 0;
    margin-top: 1px;
}
.cms-loc-icon-img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
    margin-top: 2px;
}
.cms-loc-text { display: flex; flex-direction: column; }
.cms-loc-name { font-size: 14px; font-weight: 700; color: #000; line-height: 1.4; }
.cms-loc-address { font-size: 13px; font-weight: 400; color: #767676; line-height: 1.4; }

/* ── Akordeon ── */
.cms-accordion { margin-top: 8px; }
.cms-acc-header {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #F5F5F5 !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 22px 28px !important;
    font-family: 'Manrope', sans-serif !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #000 !important;
    cursor: pointer;
    transition: border-radius .15s;
    text-align: left !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    margin: 0 !important;
}
.cms-acc-header:hover { background: #F5F5F5 !important; color: #000 !important; }
.cms-acc-header.open { border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.cms-acc-icon { width: 22px; height: 22px; flex-shrink: 0; color: #000; transition: transform .2s ease; }
.cms-acc-header.open .cms-acc-icon { transform: rotate(180deg); }
.cms-acc-body {
    display: none;
    background: #F5F5F5;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    padding: 0 28px 24px;
}
.cms-acc-body.open { display: block; }
.cms-acc-body p { font-size: 14px; line-height: 1.7; color: #333; margin: 0 0 12px; }
.cms-acc-body p:last-child { margin-bottom: 0; }
.cms-acc-list { list-style: disc; padding-left: 20px; margin: 0 0 12px; }
.cms-acc-list li { font-size: 14px; line-height: 1.7; color: #333; }
.cms-acc-list:last-child { margin-bottom: 0; }

/* ── Tabela usług (procedury lekarza) — dopasowanie do makiety ── */
.cms-services-table-wrap {
    margin-top: 32px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.cms-services-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-family: 'Manrope', sans-serif;
}
.cms-services-table thead tr { background: #F5F5F5 !important; }
.cms-services-table tbody tr { background: #fff !important; }
.cms-services-table thead th {
    padding: 18px 24px;
    text-align: left;
    font-size: 15px;
    font-weight: 400;
    color: #333;
    border-bottom: 1px solid #E5E5E5;
    white-space: nowrap;
}
.cms-services-table thead th.col-price { text-align: right; }
.cms-services-table tbody tr { border-bottom: 1px solid #E5E5E5; transition: background .15s; }
.cms-services-table tbody tr:last-child { border-bottom: 1px solid #E5E5E5; }
.cms-services-table tbody tr:hover { background: rgba(194,164,126,.06) !important; }
.cms-services-table tbody td { padding: 22px 24px; font-size: 16px; font-weight: 400; color: #000; vertical-align: middle; }
.cms-services-table .cms-svc-name-cell,
.cms-services-table .svc-name { color: #2F54D0; font-weight: 400; text-decoration: none; }
a.cms-svc-name-cell:hover, a.svc-name:hover { text-decoration: underline; }
.cms-services-table .cms-svc-code { font-size: 16px; color: #000; }
.cms-services-table .cms-svc-notes { font-size: 16px; color: #000; }
.cms-services-table .cms-svc-price { text-align: right; font-weight: 400; color: #000; white-space: nowrap; }

/* ════════════════════════════════════════════════════════════
   RESPONSYWNOŚĆ — Profil lekarza
   ════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .cms-profile-grid { grid-template-columns: 280px 1fr; gap: 32px; }
    .cms-profile-name { font-size: 28px; }
}

@media (max-width: 860px) {
    .cms-profile-grid { grid-template-columns: 1fr; gap: 24px; }
    .cms-profile-left { max-width: none; margin: 0; width: 100%; }
    .cms-profile-right { margin-top: 4px; padding: 0 2px; }
    .cms-profile-name { font-size: 26px; text-align: left; }
    .cms-locations-row { gap: 18px 24px; }
}

@media (max-width: 600px) {
    .cms-breadcrumb { font-size: 12px; margin-bottom: 20px; }
    .cms-profile-right { margin-top: 8px; }
    .cms-profile-name { font-size: 22px; }
    .cms-profile-spec-text { font-size: 14px; margin-bottom: 20px; }
    .cms-chips-row { gap: 8px; margin-bottom: 20px; }
    .cms-chip { padding: 9px 13px; font-size: 13px; }
    .cms-locations-row { flex-direction: column; gap: 14px; }

    /* Akordeon — kompaktowa wersja mobilna */
    .cms-acc-header {
        padding: 14px 16px !important;
        font-size: 16px !important;
        gap: 8px;
    }
    .cms-acc-icon { width: 18px; height: 18px; }
    .cms-acc-body { padding: 0 16px 16px; }
    .cms-acc-body p, .cms-acc-list li { font-size: 13px; }

    /* ── Tabela usług → karty (bez przewijania lewo/prawo) ── */
    .cms-services-table-wrap { overflow-x: visible !important; }
    .cms-services-table {
        min-width: 0 !important;
        width: 100% !important;
        display: block !important;
        border: none !important;
    }
    .cms-services-table thead { display: none !important; }
    .cms-services-table tbody { display: block !important; width: 100% !important; }
    .cms-services-table tbody tr {
        display: block !important;
        width: 100% !important;
        border: 1px solid #E5E5E5 !important;
        border-radius: 10px !important;
        margin-bottom: 12px !important;
        overflow: hidden !important;
    }
    .cms-services-table tbody tr:last-child { margin-bottom: 0 !important; }
    .cms-services-table tbody td {
        display: flex !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 14px !important;
        border: none !important;
        border-bottom: 1px solid #F0F0F0 !important;
        font-size: 14px !important;
        text-align: right !important;
        box-sizing: border-box !important;
        float: none !important;
        position: static !important;
    }
    .cms-services-table tbody td:last-child { border-bottom: none !important; }
    .cms-services-table tbody td::before {
        content: attr(data-label);
        display: block;
        font-weight: 600 !important;
        color: #767676 !important;
        font-size: 12px !important;
        text-align: left !important;
        flex-shrink: 0;
        width: 40%;
        max-width: 40%;
    }
    /* Nazwa usługi — pełnoszerokościowy "tytuł karty", bez etykiety */
    .cms-services-table tbody td.col-name {
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        background: #FAFAFA !important;
        border-bottom: 1px solid #E5E5E5 !important;
    }
    .cms-services-table tbody td.col-name::before { content: none !important; display: none !important; }
    .cms-services-table tbody td.col-name .cms-svc-name-cell { font-size: 15px !important; font-weight: 500 !important; }
    .cms-services-table tbody .cms-svc-loki { margin-top: 6px; }
    .cms-services-table tbody td.col-price .cms-svc-price { font-weight: 600 !important; }
}

@media (max-width: 400px) {
    .cms-services-table tbody td::before { max-width: 45%; }
}

/* ════════════════════════════════════════════════════════════
   PAGINACJA — tabela usług lekarza
   ════════════════════════════════════════════════════════════ */

.cms-pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
}

.cms-per-page-select-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4A4A4A;
}
.cms-per-page-select-wrap label { white-space: nowrap; }
.cms-per-page-select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
}

.cms-pagination-summary {
    color: #767676;
    font-size: 13px;
    order: 3;
    flex: 1 0 100%;
    text-align: center;
}

.cms-pagination-pages {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.cms-page-btn {
    min-width: 32px !important;
    height: 32px !important;
    padding: 0 6px !important;
    border: none !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #555 !important;
    font-family: 'Manrope', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer;
    transition: all .15s;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    margin: 0 !important;
}
.cms-page-btn:hover:not(:disabled) { background: #F5EDE0 !important; color: #A8895F !important; }
.cms-page-btn.active {
    background: #C2A47E !important;
    color: #fff !important;
    font-weight: 700 !important;
}
.cms-page-btn:disabled { opacity: .3; cursor: not-allowed; }

/* Strzałki prev/next — okrągłe, spójne z resztą wtyczki (np. galeria zdjęć) */
.cms-page-prev, .cms-page-next {
    border-radius: 50% !important;
    border: 1px solid #ddd !important;
    font-size: 15px !important;
    color: #333 !important;
}
.cms-page-prev:hover:not(:disabled), .cms-page-next:hover:not(:disabled) {
    border-color: #C2A47E !important;
    background: #F5EDE0 !important;
    color: #A8895F !important;
}

/* Kropki "…" — statyczny separator, nieklikalny */
.cms-page-dots {
    min-width: 24px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 13px;
    user-select: none;
}

@media (max-width: 600px) {
    .cms-pagination-bar { flex-direction: column; align-items: stretch; }
    .cms-per-page-select-wrap { justify-content: center; }
    .cms-pagination-summary { order: 0; }
    .cms-pagination-pages { justify-content: center; }
}

/* ════════════════════════════════════════════════════════════
   WIDGET PERSONEL — TRYB SLIDER
   ════════════════════════════════════════════════════════════ */

.cms-slider-wrap {
    font-family: 'Manrope', sans-serif;
    width: 100%;
}

/* ── Nagłówek ── */
.cms-slider-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.cms-slider-heading {
    margin: 0;
    line-height: 1.15;
}
.cms-slider-title {
    font-size: 32px;
    font-weight: 700;
    color: #000;
}
.cms-slider-subtitle {
    font-size: 32px;
    font-weight: 400;
    color: #000;
}

.cms-slider-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.cms-slider-header-right-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cms-slider-arrows {
    display: flex;
    gap: 8px;
}
.cms-slider-arrow {
    width: 35px !important;
    height: 35px !important;
    border-radius: 50% !important;
    border: 1px solid #000 !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    font-size: 16px !important;
    font-family: 'Source Sans Pro', sans-serif !important;
    font-weight: 300 !important;
    color: #000 !important;
    transition: background .15s;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    text-transform: none !important;
    min-width: 0 !important;
}
.cms-slider-arrow:hover { background: #f5f5f5 !important; color: #000 !important; border-color: #000 !important; }

.cms-slider-cta {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    background: #C2A47E !important;
    color: #fff !important;
    font-family: 'Manrope', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 12px 18px !important;
    border-radius: 10px !important;
    border: 1px solid #C2A47E !important;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background .2s;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}
.cms-slider-cta:hover { background: #A8895F !important; color: #fff !important; border-color: #A8895F !important; }
.cms-slider-cta-icon { font-size: 14px; }

.cms-slider-badge {
    display: flex;
    align-items: center;
    gap: 14px;
}
.cms-slider-badge-text {
    font-size: 14px;
    color: #000;
    white-space: nowrap;
}
.cms-slider-avatars {
    display: flex;
    align-items: center;
}
.cms-slider-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #d9d9d9;
    overflow: hidden;
    margin-left: -11px;
    border: 2px solid #fff;
    flex-shrink: 0;
}
.cms-slider-avatar:first-child { margin-left: 0; }
.cms-slider-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Viewport / Track ── */
.cms-slider-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
}
.cms-slider-viewport::-webkit-scrollbar { display: none; }

.cms-slider-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    width: 100%;
    /* BEZ width:max-content — % flex-basis kart musi liczyć się względem
       określonej szerokości rodzica. Gdy kart jest więcej niż mieści się
       na ekranie, suma ich szerokości naturalnie przekroczy 100% i
       .cms-slider-viewport (overflow-x:auto) pokaże scroll poziomy. */
}

.cms-slider-item {
    flex: 0 0 calc((100% - 72px) / 4); /* fallback: 4 karty, gap 24px */
    max-width: calc((100% - 72px) / 4);
    flex-shrink: 0;
}
.cms-slider-item .cms-doctor-card {
    width: 100%;
}
.cms-slider-item .cms-doctor-photo-wrap {
    width: 100%;
    aspect-ratio: 1/1;
}

/* ── Responsywność ── */
@media (max-width: 1024px) {
    .cms-slider-title, .cms-slider-subtitle { font-size: 26px; }
    .cms-slider-header { flex-direction: column; align-items: flex-start; }
    .cms-slider-header-right { align-items: flex-start; width: 100%; }
}

@media (max-width: 600px) {
    .cms-slider-title, .cms-slider-subtitle { font-size: 22px; }
    .cms-slider-header { gap: 16px; margin-bottom: 24px; }
    .cms-slider-cta { padding: 10px 14px; font-size: 13px; }
    .cms-slider-badge-text { font-size: 12px; }
    .cms-slider-avatar { width: 24px; height: 24px; }
    .cms-slider-track { gap: 14px; }
}

/* ════════════════════════════════════════════════════════════
   LIGHTBOX — profil lekarza (galeria zdjęć / wideo)
   ════════════════════════════════════════════════════════════ */

.cms-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(10, 10, 10, .92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease;
    padding: 24px;
}
.cms-lightbox.open {
    opacity: 1;
    visibility: visible;
}

.cms-lightbox-media {
    max-width: min(92vw, 1100px);
    max-height: 86vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cms-lightbox-media img,
.cms-lightbox-media video {
    max-width: 100%;
    max-height: 86vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    display: block;
    object-fit: contain;
}
.cms-lightbox-iframe {
    /* Rozmiar jest też ustawiany jawnie z JS (inline style) dla pewności
       działania niezależnie od wsparcia przeglądarki dla aspect-ratio. */
    width: min(92vw, 1000px) !important;
    height: min(86vh, 562px) !important;
    min-width: min(92vw, 640px) !important;
    min-height: 360px !important;
    border: none !important;
    border-radius: 8px !important;
    display: block !important;
    background: #000 !important;
}

.cms-lightbox-close {
    position: absolute !important;
    top: 20px !important;
    right: 24px !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    border: none !important;
    background: rgba(255,255,255,.12) !important;
    color: #fff !important;
    font-size: 20px !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background .15s;
    z-index: 2;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 0 !important;
}
.cms-lightbox-close:hover { background: rgba(255,255,255,.25) !important; color: #fff !important; }

.cms-lightbox-arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    border: 1.5px solid rgba(255,255,255,.4) !important;
    background: rgba(255,255,255,.08) !important;
    color: #fff !important;
    font-size: 20px !important;
    font-family: 'Source Sans Pro', sans-serif !important;
    font-weight: 300 !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background .15s, border-color .15s;
    z-index: 2;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 0 !important;
    text-transform: none !important;
}
.cms-lightbox-arrow:hover { background: rgba(255,255,255,.18) !important; border-color: rgba(255,255,255,.7) !important; color: #fff !important; }
.cms-lightbox-prev { left: 24px; }
.cms-lightbox-next { right: 24px; }

.cms-lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.75);
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    letter-spacing: .04em;
}

@media (max-width: 700px) {
    .cms-lightbox { padding: 12px; }
    .cms-lightbox-arrow { width: 40px; height: 40px; font-size: 16px; }
    .cms-lightbox-prev { left: 10px; }
    .cms-lightbox-next { right: 10px; }
    .cms-lightbox-close { top: 10px; right: 10px; width: 38px; height: 38px; }
    .cms-lightbox-counter { bottom: 12px; font-size: 12px; }
}
