.appointment-page {
    padding: 44px 0 76px;
}

.appointment-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.appointment-head .section-title {
    margin: 0;
}

.appointment-search-wrap {
    width: min(420px, 100%);
}

.appointment-search {
    width: 100%;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(67, 75, 68, 0.22);
    background: #f1ede4;
    color: #434b44;
    padding: 0 16px;
    font-size: 14px;
    transition: all 0.28s ease;
}

.appointment-search:focus {
    outline: none;
    border-color: #434b44;
    box-shadow: 0 0 0 2px rgba(67, 75, 68, 0.15);
}

.appointment-shell {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 24px;
    align-items: start;
}

.appointment-menu {
    background: rgba(224, 214, 182, 0.5);
    border-radius: 20px;
    border: 1px solid rgba(67, 75, 68, 0.12);
    overflow: hidden;
    min-height: 136px;
}

.appointment-menu.is-empty {
    min-height: 0;
    padding: 10px;
}

.appointment-menu.is-empty .appointment-empty {
    margin: 0;
}

.appointment-category-acc {
    border-bottom: 1px solid rgba(67, 75, 68, 0.08);
}

.appointment-category-acc:last-child {
    border-bottom: none;
}

.appointment-category-title {
    list-style: none;
    padding: 16px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
    font-weight: 800;
    color: #434b44;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(217, 207, 169, 0.55);
}

.appointment-category-title::-webkit-details-marker {
    display: none;
}

.appointment-category-title::after {
    content: "+";
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
    color: rgba(67, 75, 68, 0.9);
    transition: transform 0.28s ease, color 0.28s ease;
    flex-shrink: 0;
}

.appointment-category-acc.is-open .appointment-category-title {
    background: rgba(217, 207, 169, 0.72);
}

.appointment-category-acc.is-open .appointment-category-title::after {
    content: "−";
    transform: none;
}

.appointment-services-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(8px);
    background: rgba(224, 214, 182, 0.28);
    transition: max-height 0.28s ease, opacity 0.28s ease, transform 0.28s ease, padding 0.28s ease;
}

.appointment-category-acc[open] .appointment-services-list {
    padding: 10px 10px 12px;
    max-height: 520px;
    opacity: 1;
    transform: translateY(0);
}

.appointment-service-btn {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    border: none;
    border-radius: 12px;
    background: rgba(224, 214, 182, 0.32);
    box-shadow: inset 0 0 0 1px rgba(67, 75, 68, 0.2);
    color: #434b44;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    padding: 10px 14px;
    cursor: pointer;
    white-space: normal;
    word-break: break-word;
    transition: all 0.28s ease;
}

.appointment-service-btn::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #434b44;
    margin-top: 0.42em;
    opacity: 0.6;
    flex-shrink: 0;
}

.appointment-service-btn:hover {
    background: rgba(224, 214, 182, 0.38);
    box-shadow: inset 0 0 0 1px rgba(67, 75, 68, 0.28);
    transform: translateX(1px);
}

.appointment-service-btn.active {
    background: #434b44;
    color: #ece3ca;
    box-shadow: inset 0 0 0 1px #434b44, 0 4px 10px rgba(67, 75, 68, 0.18);
}

.appointment-service-btn.active::before {
    background: #ece3ca;
    opacity: 0.9;
}

.appointment-panel {
    background: rgba(224, 214, 182, 0.45);
    border-radius: 20px;
    border: 1px solid rgba(67, 75, 68, 0.12);
    padding: 20px 20px 16px;
    min-height: 136px;
}

@media (min-width: 1101px) {
    .appointment-panel {
        position: sticky;
        top: 130px;
    }
}

.appointment-panel-head h2 {
    margin: 0 0 6px;
    font-size: 32px;
    color: #434b44;
    text-transform: uppercase;
}

.appointment-panel-head p {
    margin: 0 0 16px;
    font-size: 14px;
    color: #5a5548;
}

.appointment-doctors {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.appointment-doctors.is-enter,
.appointment-doctors.is-leave {
    opacity: 0;
    transform: translateY(8px);
}

.appointment-doctor-card {
    background: rgba(241, 237, 228, 0.65);
    border: 1px solid rgba(67, 75, 68, 0.12);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 10px;
}

.appointment-doctor-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.appointment-doctor-name {
    font-size: 16px;
    font-weight: 800;
    color: #434b44;
}

.appointment-doctor-price {
    font-size: 14px;
    font-weight: 800;
    color: #434b44;
    white-space: nowrap;
    background: rgba(217, 207, 169, 0.65);
    border-radius: 999px;
    padding: 6px 12px;
}

.appointment-doctor-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    background: #434b44;
    color: #ece3ca !important;
    transition: all 0.28s ease;
}

.appointment-doctor-link:hover {
    background: #5a635b;
}

.appointment-empty {
    border: 1px solid rgba(67, 75, 68, 0.14);
    border-radius: 12px;
    padding: 14px;
    color: #5a5548;
    font-size: 14px;
    background: rgba(241, 237, 228, 0.45);
}

@media (max-width: 1100px) {
    .appointment-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .appointment-page {
        padding: 28px 0 44px;
    }

    .appointment-head .section-title {
        font-size: 48px;
        margin-bottom: 4px;
    }

    .appointment-head {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .appointment-shell {
        gap: 14px;
    }

    .appointment-menu,
    .appointment-panel {
        border-radius: 16px;
    }

    .appointment-category-title {
        padding: 14px 14px;
        font-size: 13px;
    }

    .appointment-category-acc[open] .appointment-services-list {
        padding: 8px 8px 10px;
    }

    .appointment-service-btn {
        font-size: 12px;
        padding: 9px 10px;
    }

    .appointment-panel-head h2 {
        font-size: 22px;
    }

    .appointment-doctor-main {
        flex-direction: column;
        gap: 8px;
    }

    .appointment-doctor-name {
        font-size: 15px;
    }

    .appointment-doctor-price {
        font-size: 13px;
        padding: 5px 10px;
    }
}

@media (max-width: 420px) {
    .appointment-page .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .appointment-head .section-title {
        font-size: 40px;
    }

    .appointment-search {
        height: 40px;
        font-size: 13px;
    }

    .appointment-panel {
        padding: 14px 12px;
    }

    .appointment-empty {
        font-size: 13px;
        padding: 12px;
    }
}

/* Appointment v2 */
.appointment-v2-page { padding: 28px 0 36px; background: #ece3ca; }
.appointment-v2-title { margin-bottom: 18px; text-align: center; }
.appointment-v2-specs { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:18px; }
.appointment-v2-pill {
  border:1px solid #c7bc97; background:#ded2ae; color:#434b44;
  border-radius:999px; padding:9px 18px; font-size:13px; font-weight:700; cursor:pointer;
}
.appointment-v2-pill.is-active { background:#434b44; color:#ece3ca; border-color:#434b44; }

.appointment-v2-layout { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1.25fr); gap:18px; align-items:start; }
.appointment-v2-calendar-col, .appointment-v2-doctors-col {
  background: rgba(224, 214, 182, 0.35);
  border: 1px solid #c9be9a;
  border-radius: 18px;
  padding: 16px;
}
.appointment-v2-doctors-col {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.appointment-v2-calendar-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.appointment-v2-month { font-size:20px; font-weight:700; color:#434b44; text-transform:uppercase; }
.appointment-v2-nav { width:34px; height:34px; border-radius:10px; border:1px solid rgba(67,75,68,.22); background:#f1ede4; color:#434b44; cursor:pointer; }

.appointment-v2-grid { width:100%; border-collapse:separate; border-spacing:6px; }
.appointment-v2-grid th { font-size:11px; color:rgba(67,75,68,.75); text-transform:uppercase; font-weight:700; }
.appointment-v2-day {
  width:100%; min-height:34px; border-radius:10px; border:1px solid rgba(67,75,68,.12);
  background:#f2ecdc; color:#434b44; cursor:pointer;
}
.appointment-v2-day.is-disabled { opacity:.45; cursor:not-allowed; }
.appointment-v2-day.is-active { background:#434b44; color:#ece3ca; border-color:#434b44; }
.appointment-v2-day.is-empty { display:block; min-height:34px; }

.appointment-v2-times { margin-top:14px; display:flex; flex-wrap:wrap; gap:12px; min-height:48px; }
.appointment-v2-time {
  border: 1px solid #c7bc97;
  border-radius: 12px;
  padding: 10px 18px;
  background: #ece3ca;
  color:#434b44;
  cursor:pointer;
  font-size:14px;
  font-weight:700;
}
.appointment-v2-time.is-active { background:#434b44; color:#ece3ca; border-color:#434b44; }

.appointment-v2-selection {
  font-size: 18px;
  font-weight: 700;
  color: #434b44;
  margin-bottom: 10px;
  min-height: 34px;
  background: #ece3ca;
  border: 1px solid #c9be9a;
  border-radius: 14px;
  padding: 12px 14px;
}
.appointment-v2-doctors { max-height:680px; overflow:auto; padding-right:6px; display:grid; gap:12px; grid-template-columns:repeat(2, minmax(0,1fr)); align-content:start; width:100%; margin:0; }
.appointment-v2-card.is-last-odd { grid-column: 1 / -1; }
.appointment-v2-doctors > .appointment-v2-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.appointment-v2-card {
  border: 1px solid #bfb48f;
  border-radius: 14px;
  background: #ece3ca;
  padding: 14px;
  cursor: pointer;
}
.appointment-v2-page .appointment-v2-pill,
.appointment-v2-page .appointment-v2-time,
.appointment-v2-page .appointment-v2-card,
.appointment-v2-page .appointment-v2-card * {
  -webkit-tap-highlight-color: transparent;
}
.appointment-v2-page .appointment-v2-pill:focus,
.appointment-v2-page .appointment-v2-time:focus,
.appointment-v2-page .appointment-v2-card-link:focus,
.appointment-v2-page .appointment-v2-card-book:focus {
  outline: none;
  box-shadow: none;
}
.appointment-v2-page .appointment-v2-pill,
.appointment-v2-page .appointment-v2-time,
.appointment-v2-page .appointment-v2-card-actions,
.appointment-v2-page .appointment-v2-card-actions * {
  user-select: none;
}
.appointment-v2-card-top { display:grid; grid-template-columns:80px 1fr; gap:10px; }
.appointment-v2-card-photo-wrap { width:80px; height:96px; border-radius:10px; overflow:hidden; background:#cfc59f; }
.appointment-v2-card-photo { width:100%; height:100%; object-fit:cover; display:block; }
.appointment-v2-card-photo--empty { width:100%; height:100%; display:flex; align-items:center; justify-content:center; text-align:center; font-size:11px; color:#5f6458; padding:6px; }
.appointment-v2-card-name { font-size:20px; line-height:1.18; color:#434b44; font-weight:700; margin-bottom:6px; }
.appointment-v2-card-meta { font-size:13px; color:#5b5f57; margin-bottom:4px; }
.appointment-v2-card-actions { margin-top:12px; display:flex; gap:8px; flex-wrap:wrap; }
.appointment-v2-card-link, .appointment-v2-card-book {
  border-radius:999px; border:1px solid #b9ae8a; background:#e6dbbc; color:#434b44; padding:9px 14px;
  text-decoration:none; font-size:12px; font-weight:800; cursor:pointer;
}
.appointment-v2-card-book { background:#434b44; color:#ece3ca; border-color:#434b44; }
.appointment-v2-card-hint {
  margin-top: 8px;
  font-size: 12px;
  color: #5f6458;
}
.appointment-v2-card-about {
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px dashed rgba(67,75,68,.24);
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.35;
  color: #434b44;
  background: rgba(236,227,202,.55);
  animation: aboutIn .22s ease;
}
@keyframes aboutIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.appointment-v2-empty { font-size:14px; color:#5a5f56; padding:10px 4px; }

.booking-grid--single { grid-template-columns:1fr; }

.appointment-calendar-table .day.out-month {
  background: transparent;
  border-color: transparent;
  color: rgba(67,75,68,.42);
  cursor: default;
}

@media (max-width: 980px) {
  .appointment-v2-layout { grid-template-columns:1fr; }
  .appointment-v2-doctors { max-height:none; grid-template-columns:1fr; }
  .appointment-v2-card-name { font-size:18px; }
}
.appointment-inline-booking { padding: 0; background: transparent; margin-top: 0; width: 100%; align-self: stretch; }
.appointment-v2-doctors-col .appointment-inline-booking .container {
  max-width: none;
  margin: 0;
  padding: 0;
}
.appointment-v2-doctors-col .appointment-inline-booking {
  width: 100%;
  box-sizing: border-box;
}
.appointment-inline-booking__panel {
  max-width: none;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #bfb48f;
  border-radius: 16px;
  background: #ece3ca;
  padding: 0;
}
.appointment-inline-booking__meta {
  font-size: 14px;
  font-weight: 700;
  color: #434b44;
  margin: 0;
  padding: 0 14px 10px;
}
.appointment-inline-booking__panel .booking-modal__title {
  margin: 0;
  padding: 14px 14px 10px;
}
.appointment-inline-booking__panel .doctor-booking-form {
  margin: 0;
  border: 0;
  border-top: 1px solid #c9be9a;
  border-radius: 0 0 16px 16px;
}

.appointment-v2-card-photo-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
}

.appointment-v2-card-photo{
  width:108% !important;
  height:108% !important;
  object-fit:contain !important;
  object-position:center bottom !important;
  display:block;
  margin:0 auto;
}

.appointment-v2-card-photo-wrap{
  position: relative !important;
  overflow: hidden !important;
  background-color: #d9cfa9 !important;
}

.appointment-v2-card-photo-wrap::before{
  content: "";
  position: absolute;
  inset: 0;
  background: url('/static/img/logo.svg') center/54% no-repeat;
  opacity: 0.09;
  pointer-events: none;
  z-index: 0;
}

.appointment-v2-card-photo-wrap > *{
  position: relative;
  z-index: 1;
}
