
/* PRAWNIKOM PRO — PROFIL PRAWNIKA */

#main-content:has(.lawyer-profile-hero) {
    --lp-navy: #142641;
    --lp-gold: #c6a46a;
    --lp-border: #d7e0eb;
    --lp-muted: #64748b;
    --lp-bg: #f1f5f9;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    color: var(--lp-navy);
}

#main-content:has(.lawyer-profile-hero) * {
    box-sizing: border-box;
}

#main-content:has(.lawyer-profile-hero) .module-canvas,
#main-content:has(.lawyer-profile-hero) .module-canvas-scroll {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: visible !important;
}

#main-content:has(.lawyer-profile-hero) .eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #96702d;
}

/* GLOWNA KARTA SPECJALISTY */

.lawyer-profile-hero {
    display: grid !important;
    grid-template-columns: 110px minmax(0,1fr) 250px;
    align-items: center;
    gap: 26px;
    padding: 32px !important;
    margin: 0 0 20px;
    background: linear-gradient(120deg,#0e1b30,#203957);
    color: white;
    border-bottom: 3px solid #c6a46a;
    border-radius: 0 !important;
}

.lawyer-profile-avatar {
    position: relative;
    display: grid;
    place-items: center;
    width: 110px;
    height: 110px;
    background: #ffffff0d;
    border: 1px solid #c6a46a;
    color: #e2c48c;
    font-family: Georgia,serif;
    font-size: 38px;
    font-weight: 600;
    border-radius: 0 !important;
}

.lawyer-profile-avatar > i {
    position: absolute;
    bottom: -7px;
    right: -7px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    background: #166534;
    color: white;
    border: 2px solid #142641;
}

.lawyer-profile-hero .eyebrow {
    color: #e2c48c !important;
}

.lawyer-profile-hero h1 {
    margin: 12px 0 !important;
    font-family: Georgia,serif;
    font-size: clamp(26px,3vw,40px);
    font-weight: 500;
    line-height: 1.2;
    color: white !important;
    overflow-wrap: anywhere;
}

.lawyer-profile-hero p {
    color: #cbd5e1 !important;
    font-size: 14px;
    margin: 0 0 18px;
}

.lawyer-profile-hero .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lawyer-profile-hero .badge {
    display: inline-flex;
    padding: 7px 12px;
    font-size: 12px;
    border-radius: 0 !important;
}

.lawyer-profile-hero .badge.gold {
    background: #c6a46a20;
    border: 1px solid #c6a46a60;
    color: #e2c48c;
}

.lawyer-profile-hero .badge.green {
    background: #16653440;
    border: 1px solid #86efac60;
    color: #bbf7d0;
}

/* PANEL REZERWACJI */

.lawyer-profile-hero > aside {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px;
    background: #ffffff09;
    border: 1px solid #ffffff25;
}

.lawyer-profile-hero > aside small {
    color: #e2c48c;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.lawyer-profile-hero > aside b {
    color: white;
    font-family: Georgia,serif;
    font-size: 22px;
}

.lawyer-profile-hero > aside span {
    color: #cbd5e1;
    font-size: 12px;
}

.lawyer-profile-hero > aside button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 46px;
    background: #c6a46a !important;
    color: #142641 !important;
    border: 0 !important;
    border-radius: 0 !important;
}

.lawyer-profile-hero > aside button span {
    color: #142641;
}

/* STATYSTYKI */

.lawyer-profile-stats {
    display: grid !important;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.lawyer-profile-stats > article {
    display: grid;
    grid-template-columns: 44px minmax(0,1fr);
    align-items: center;
    gap: 5px 14px;
    min-height: 110px;
    padding: 20px;
    background: white;
    border: 1px solid #d7e0eb;
    border-top: 3px solid #c6a46a;
}

.lawyer-profile-stats article > span {
    display: grid;
    place-items: center;
    grid-row: 1/3;
    width: 44px;
    height: 44px;
    background: #f3eee4;
    color: #96702d;
}

.lawyer-profile-stats article svg {
    width: 24px !important;
    height: 24px !important;
}

.lawyer-profile-stats article b {
    font-size: 30px;
    color: #142641;
    line-height: 1;
}

.lawyer-profile-stats article small {
    font-size: 12px;
    color: #64748b;
}

/* UKLAD PROFILU */

.lawyer-profile-layout {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) 300px;
    align-items: start;
    gap: 20px;
    width: 100% !important;
}

.lawyer-profile-layout > main,
.lawyer-profile-layout > aside {
    display: flex !important;
    flex-direction: column;
    gap: 20px;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.lawyer-profile-layout .card {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 24px !important;
    margin: 0 !important;
    background: white;
    border: 1px solid #d7e0eb;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.lawyer-profile-layout .card > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid #d7e0eb;
}

.lawyer-profile-layout .card h2 {
    margin: 8px 0;
    font-family: Georgia,serif;
    font-size: 24px;
    font-weight: 500;
    color: #142641;
}

.lawyer-profile-layout .card p {
    font-size: 14px;
    line-height: 1.8;
    color: #64748b;
}

.lawyer-profile-layout .card svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #96702d;
}

/* DOSWIADCZENIE */

.lawyer-bio > header {
    justify-content: flex-start !important;
}

.lawyer-bio > header > span {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    background: #142641;
}

.lawyer-bio > header > span svg {
    color: #c6a46a;
}

.lawyer-profile-facts {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px;
    margin-top: 22px;
}

.lawyer-profile-facts article {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    background: #f8fafc;
    border-left: 3px solid #c6a46a;
}

.lawyer-profile-facts small {
    font-size: 11px;
    color: #64748b;
}

.lawyer-profile-facts b {
    font-size: 13px;
    color: #142641;
}

/* KALENDARZ REZERWACJI */

.lawyer-calendar {
    overflow: visible !important;
}

.lawyer-calendar-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lawyer-calendar-head-actions > * {
    border-radius: 0 !important;
    font-size: 12px;
}

.lawyer-calendar-toolbar {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 14px;
    background: #142641;
    color: white;
    margin-bottom: 20px;
}

.lawyer-calendar-toolbar > b {
    padding: 0 10px;
    font-family: Georgia,serif;
    font-size: 18px;
    text-align: center;
    color: white;
}

.lawyer-calendar-toolbar > span {
    flex: 1;
}

.lawyer-calendar-toolbar button {
    min-height: 34px !important;
    padding: 7px 12px !important;
    background: #ffffff0d !important;
    border: 1px solid #ffffff25 !important;
    color: white !important;
    border-radius: 0 !important;
    font-size: 12px;
}

.lawyer-calendar-toolbar button.active {
    background: #c6a46a !important;
    border-color: #c6a46a !important;
    color: #142641 !important;
}

.lawyer-calendar-toolbar [data-calendar-prev],
.lawyer-calendar-toolbar [data-calendar-next] {
    font-size: 22px;
    color: #e2c48c !important;
}

/* NAJBLIZSZE TERMINY */

.lawyer-calendar-upcoming {
    padding: 18px;
    margin-bottom: 20px;
    background: #f8fafc;
    border: 1px solid #d7e0eb;
    border-left: 3px solid #c6a46a;
}

.lawyer-calendar-upcoming > b {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: #142641;
    font-size: 15px;
}

.lawyer-calendar-upcoming > div {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
}

.lawyer-calendar-upcoming button,
.lawyer-calendar-found button {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start !important;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    min-height: 76px;
    padding: 14px !important;
    text-align: left;
    white-space: normal !important;
    background: white !important;
    border: 1px solid #d7e0eb !important;
    border-left: 3px solid #c6a46a !important;
    border-radius: 0 !important;
    color: #142641 !important;
}

.lawyer-calendar-upcoming button:hover,
.lawyer-calendar-found button:hover {
    background: #faf6ed !important;
    border-color: #c6a46a !important;
}

.lawyer-calendar-upcoming button strong,
.lawyer-calendar-found button strong {
    font-size: 14px;
    color: #142641;
}

.lawyer-calendar-upcoming button small,
.lawyer-calendar-found button small {
    font-size: 11px;
    color: #64748b;
}

/* WYSZUKIWARKA TERMINOW */

.lawyer-calendar-finder {
    margin-bottom: 22px;
    border: 1px solid #d7e0eb;
}

.lawyer-calendar-finder form {
    display: grid !important;
    grid-template-columns: repeat(3,minmax(0,1fr));
    align-items: start;
    gap: 14px;
    padding: 18px;
    background: #f8fafc;
}

.lawyer-calendar-finder form > div:first-child {
    display: grid;
    grid-template-columns: 36px minmax(0,1fr);
    align-items: center;
    grid-column: 1/-1;
    gap: 5px 12px;
    margin-bottom: 8px;
}

.lawyer-calendar-finder form > div:first-child > span {
    display: grid;
    place-items: center;
    grid-row: 1/3;
    width: 36px;
    height: 36px;
    background: #142641;
}

.lawyer-calendar-finder form > div:first-child svg {
    color: #c6a46a;
}

.lawyer-calendar-finder form > div:first-child small {
    color: #64748b;
    font-size: 12px;
}

.lawyer-calendar-finder label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    color: #142641;
    font-size: 12px;
    font-weight: 600;
}

.lawyer-calendar-finder input,
.lawyer-calendar-finder select,
.lawyer-calendar-finder .smart-select-trigger {
    width: 100% !important;
    min-width: 0;
    min-height: 44px;
    padding: 10px 12px !important;
    background: white !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 0 !important;
    color: #142641 !important;
    font-size: 12px;
}

.lawyer-calendar-finder .smart-select {
    position: relative;
    display: block;
    min-width: 0;
    width: 100%;
}

.lawyer-calendar-finder .smart-select-trigger {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    white-space: normal;
}

/* Bez dublowania aktywnych selectow */

.lawyer-calendar-finder
.smart-select:has(> .smart-select-trigger)
> select[data-smart-select-ready="1"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    clip-path: inset(50%);
    pointer-events: none;
}

.lawyer-calendar-finder .pp-date-options {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.lawyer-calendar-finder .pp-date-options button {
    min-height: 26px !important;
    padding: 4px 7px !important;
    font-size: 10px !important;
    border-radius: 0 !important;
}

.lawyer-calendar-finder [data-calendar-filter-clear] {
    grid-column: 1/-1;
    justify-self: end;
    border-radius: 0 !important;
}

/* WYNIKI WYSZUKIWANIA TERMINOW */

.lawyer-calendar-found {
    padding: 18px;
    background: white;
}

.lawyer-calendar-found > b {
    display: block;
    margin-bottom: 14px;
    font-family: Georgia,serif;
    font-size: 20px;
    color: #142641;
}

[data-calendar-found-results] {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
}

.lawyer-calendar-found button {
    position: relative;
    padding-right: 36px !important;
}

.lawyer-calendar-found button > svg {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

/* KALENDARZ MIESIECZNY */

.lawyer-calendar-grid {
    width: 100%;
    min-width: 0;
    margin: 18px 0;
}

.lawyer-calendar-grid.month,
.lawyer-calendar-grid.week {
    display: grid !important;
    grid-template-columns: repeat(7,minmax(0,1fr));
    gap: 1px;
    padding: 1px;
    background: #d7e0eb;
}

.lawyer-calendar-grid.month > b,
.lawyer-calendar-grid.week > b {
    display: grid;
    place-items: center;
    min-height: 42px;
    background: #142641;
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.lawyer-calendar-grid.month > article,
.lawyer-calendar-grid.week > article,
.lawyer-calendar-grid.month > span {
    min-width: 0;
    min-height: 84px;
    padding: 8px;
    background: white;
}

.lawyer-calendar-grid.month > span {
    background: #f1f5f9;
}

.lawyer-calendar-grid article > small {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #142641;
}

.lawyer-calendar-grid article:has(button[data-booking-start]) {
    background: #edf7f0;
    box-shadow: inset 0 3px #15803d;
}

.lawyer-calendar-grid article button {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 24px !important;
    padding: 4px !important;
    margin-bottom: 4px;
    background: #e4f2e7 !important;
    border: 1px solid #bbdfc5 !important;
    color: #166534 !important;
    border-radius: 0 !important;
    font-size: 10px !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
}

.lawyer-calendar-grid.year {
    display: grid !important;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px;
}

.lawyer-calendar-grid.year > article,
.lawyer-calendar-grid.day > article {
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #d7e0eb;
}

.lawyer-calendar-grid.day {
    display: grid !important;
    grid-template-columns: minmax(0,1fr);
    gap: 8px;
}

/* STOPKA KALENDARZA */

.lawyer-calendar > footer {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid #d7e0eb;
}

.lawyer-calendar > footer > span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #64748b;
}

.lawyer-calendar > footer > button {
    margin-left: auto;
    background: #142641 !important;
    color: white !important;
    border-radius: 0 !important;
}

.lawyer-calendar > footer > button svg {
    color: #c6a46a;
}

/* LOKALIZACJA KANCELARII */

.lawyer-location {
    padding: 20px !important;
}

.lawyer-map {
    position: relative;
    display: block !important;
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: #e2e8f0;
    border: 1px solid #d7e0eb;
}

.lawyer-map iframe {
    display: block;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

.lawyer-map > span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: #142641f2;
    color: white;
    border-top: 2px solid #c6a46a;
}

.lawyer-map > span b {
    color: white;
    font-size: 15px;
}

.lawyer-map > span small {
    color: #e2c48c;
    font-size: 11px;
}

.lawyer-location-address {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 18px;
    padding: 14px;
    background: #f8fafc;
    border-left: 3px solid #c6a46a;
}

.lawyer-location-address b,
.lawyer-location-address small {
    display: block;
    font-size: 12px;
    line-height: 1.6;
}

.lawyer-location-address b {
    color: #142641;
}

.lawyer-location-address small {
    margin-top: 8px;
    color: #64748b;
}

/* KONTAKT */

.lawyer-contact {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
}

.lawyer-contact > h2 {
    padding-bottom: 14px;
    border-bottom: 1px solid #d7e0eb;
}

.lawyer-contact > button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 46px;
    background: #142641 !important;
    color: white !important;
    border: 1px solid #142641 !important;
    border-radius: 0 !important;
}

.lawyer-contact > button[data-booking-start] {
    background: #c6a46a !important;
    border-color: #c6a46a !important;
    color: #142641 !important;
}

.lawyer-contact > button svg {
    color: #c6a46a;
}

.lawyer-contact > button[data-booking-start] svg {
    color: #142641;
}

.lawyer-contact > small {
    color: #64748b;
    font-size: 11px;
    line-height: 1.7;
}

/* OKNA REZERWACJI */

body:has(.lawyer-profile-hero) .modal[hidden] {
    display: none !important;
}

body:has(.lawyer-profile-hero) .modal:not([hidden]):not(.hidden) {
    position: fixed !important;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: #0e1b3099;
    z-index: 50000;
}

body:has(.lawyer-profile-hero) .modal-panel {
    width: min(760px,100%);
    max-height: 90vh;
    overflow-y: auto;
    background: white;
    border: 1px solid #c6a46a;
    border-radius: 0 !important;
}

body:has(.lawyer-profile-hero) .modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 20px;
    background: #142641;
    border-bottom: 3px solid #c6a46a;
}

body:has(.lawyer-profile-hero) .modal-head h2 {
    margin: 0;
    color: white;
    font-family: Georgia,serif;
}

body:has(.lawyer-profile-hero) .modal-body {
    padding: 24px;
}

body:has(.lawyer-profile-hero) .modal-body input,
body:has(.lawyer-profile-hero) .modal-body select,
body:has(.lawyer-profile-hero) .modal-body textarea {
    max-width: 100%;
    min-height: 44px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 0 !important;
    color: #142641;
}

/* RESPONSYWNOSC */

@media(max-width:1500px) {

    .lawyer-profile-layout {
        grid-template-columns: minmax(0,1fr);
    }

    .lawyer-profile-layout > aside {
        display: grid !important;
        grid-template-columns: repeat(2,minmax(0,1fr));
        align-items: start;
    }
}

@media(max-width:1250px) {

    .lawyer-profile-hero {
        grid-template-columns: 90px minmax(0,1fr);
        padding: 24px !important;
    }

    .lawyer-profile-avatar {
        width: 90px;
        height: 90px;
    }

    .lawyer-profile-hero > aside {
        grid-column: 1/-1;
    }

    .lawyer-profile-stats {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media(max-width:700px) {

    .lawyer-profile-hero {
        grid-template-columns: 64px minmax(0,1fr);
        gap: 16px;
        padding: 18px !important;
    }

    .lawyer-profile-avatar {
        width: 64px;
        height: 64px;
        font-size: 25px;
    }

    .lawyer-profile-hero h1 {
        font-size: 25px;
    }

    .lawyer-profile-layout > aside,
    .lawyer-profile-facts,
    .lawyer-calendar-finder form {
        grid-template-columns: minmax(0,1fr);
    }

    .lawyer-profile-layout .card {
        padding: 16px !important;
    }

    .lawyer-profile-stats {
        gap: 8px;
    }

    .lawyer-profile-stats article {
        grid-template-columns: minmax(0,1fr);
        padding: 12px;
        gap: 8px;
    }

    .lawyer-profile-stats article > span {
        grid-row: auto;
    }

    .lawyer-calendar-upcoming > div,
    [data-calendar-found-results] {
        grid-template-columns: minmax(0,1fr);
    }

    .lawyer-calendar-toolbar {
        padding: 10px;
    }

    .lawyer-calendar-toolbar > span {
        display: none;
    }

    .lawyer-calendar-grid.month > article,
    .lawyer-calendar-grid.month > span {
        min-height: 56px;
        padding: 4px;
    }

    .lawyer-calendar-grid.month > b {
        font-size: 10px;
        min-height: 32px;
    }

    .lawyer-calendar-grid.year {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .lawyer-calendar > footer > button {
        width: 100%;
        margin-left: 0;
    }

    .lawyer-map {
        height: 300px;
    }
}

@media print {

    .lawyer-profile-hero {
        background: white !important;
        color: #142641 !important;
    }

    .lawyer-profile-hero h1,
    .lawyer-profile-hero p {
        color: #142641 !important;
    }

    .lawyer-profile-hero > aside,
    .lawyer-calendar-toolbar,
    .lawyer-calendar-finder,
    .lawyer-calendar-head-actions,
    .lawyer-contact button {
        display: none !important;
    }

    .lawyer-profile-layout {
        display: block !important;
    }

    .lawyer-profile-layout .card {
        break-inside: avoid;
    }
}

