.vsc-calendar,
.vsc-calendar * {
  box-sizing: border-box;
}

.vsc-calendar {
  --vsc-bg: #111313;
  --vsc-surface: rgba(255, 255, 255, 0.025);
  --vsc-surface-strong: rgba(0, 0, 0, 0.2);
  --vsc-text: rgba(255, 251, 247, 0.84);
  --vsc-muted: #d8c7af;
  --vsc-border: rgba(255, 255, 255, 0.08);
  --vsc-accent: #b5522a;
  --vsc-radius: 8px;
  --vsc-table-min-width: 920px;
  width: 100%;
  color: var(--vsc-text);
  font-family: inherit;
}

.vsc-calendar-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(181, 82, 42, 0.38);
  border-radius: var(--vsc-radius);
  color: var(--vsc-text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(0, 0, 0, 0.15)),
    var(--vsc-bg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.vsc-calendar-top {
  display: flex;
  min-height: 72px;
  padding: 18px 24px 12px;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--vsc-border);
  background: transparent;
}

.vsc-calendar-top--no-nav {
  min-height: auto;
}

.vsc-week-title {
  margin: 0;
  color: var(--vsc-muted);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.vsc-arrow-btn {
  display: inline-flex;
  width: 28px;
  min-width: 28px;
  height: 36px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 0;
  outline: 0;
  color: var(--vsc-muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 34px;
  line-height: 1;
  transition: color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.vsc-arrow-btn:hover:not(:disabled) {
  color: #fff;
  transform: translateY(-1px);
}

.vsc-arrow-btn:focus-visible,
.vsc-slot:focus-visible,
.vsc-cal-btn:focus-visible {
  outline: 2px solid var(--vsc-accent);
  outline-offset: 2px;
}

.vsc-arrow-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.vsc-table-scroll {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: rgba(216, 199, 175, 0.35) rgba(0, 0, 0, 0.15);
  scrollbar-width: thin;
}

.vsc-table-scroll:focus {
  outline: 0;
}

.vsc-table {
  width: 100%;
  min-width: var(--vsc-table-min-width);
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.vsc-table th,
.vsc-table td {
  border-right: 1px solid var(--vsc-border);
  border-bottom: 1px solid var(--vsc-border);
  text-align: center;
  vertical-align: middle;
}

.vsc-table tr > :last-child {
  border-right: 0;
}

.vsc-table tbody tr:last-child > * {
  border-bottom: 0;
}

.vsc-table thead th {
  height: 49px;
  padding: 12px 8px;
  color: var(--vsc-muted);
  background: var(--vsc-surface);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.1;
  white-space: nowrap;
}

.vsc-day-label,
.vsc-day-date {
  display: inline;
}

.vsc-day-date {
  margin-left: 3px;
}

.vsc-table .vsc-corner,
.vsc-table .vsc-time {
  width: 128px;
  min-width: 128px;
  color: var(--vsc-muted);
  background: var(--vsc-surface-strong);
  font-size: 13px;
  font-weight: 700;
}

.vsc-table .vsc-time {
  height: 58px;
  padding: 10px 8px;
  white-space: nowrap;
}

.vsc-sticky-time .vsc-table .vsc-corner,
.vsc-sticky-time .vsc-table .vsc-time {
  position: sticky;
  z-index: 3;
  left: 0;
}

.vsc-sticky-time .vsc-table .vsc-corner {
  z-index: 4;
}

.vsc-table td {
  height: 58px;
  padding: 0;
  color: var(--vsc-text);
  background: transparent;
  font-size: 13px;
}

.vsc-slot {
  display: flex;
  width: 100%;
  min-height: 58px;
  margin: 0;
  padding: 9px 8px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  font: inherit;
  text-align: center;
  text-decoration: none;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  appearance: none;
}

.vsc-slot[data-vsc-selectable="1"]:hover {
  background: rgba(255, 255, 255, 0.045);
}

.vsc-slot[data-vsc-selectable="1"]:active {
  transform: scale(0.985);
}

.vsc-slot.is-selected {
  position: relative;
  z-index: 1;
  background: rgba(181, 82, 42, 0.16);
  box-shadow: inset 0 0 0 2px var(--vsc-accent);
}

.vsc-slot.is-unavailable {
  cursor: default;
}

.vsc-class-title {
  display: block;
  color: var(--vsc-text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}

.vsc-class-details {
  display: block;
  margin-top: 2px;
  color: rgba(255, 251, 247, 0.55);
  font-size: 10px;
  line-height: 1.2;
}

.vsc-status-text {
  display: block;
  margin-top: 3px;
  color: var(--vsc-status-color, var(--vsc-muted));
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
}

.vsc-empty {
  padding: 10px 8px !important;
  color: rgba(255, 255, 255, 0.35) !important;
  font-size: 18px !important;
}

.vsc-empty-symbol {
  color: rgba(255, 255, 255, 0.35);
  font-size: 18px;
}

.vsc-calendar-bottom {
  display: flex;
  padding: 14px 24px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--vsc-border);
  background: rgba(0, 0, 0, 0.05);
}

.vsc-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--vsc-text);
  font-size: 13px;
}

.vsc-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.vsc-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--vsc-status-color, var(--vsc-muted));
}

.vsc-calendar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.vsc-cal-btn {
  display: inline-flex;
  min-height: 40px;
  padding: 9px 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(181, 82, 42, 0.45);
  border-radius: 5px;
  color: var(--vsc-muted);
  background: rgba(0, 0, 0, 0.28);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.vsc-cal-btn:hover {
  border-color: var(--vsc-accent);
  color: #fff;
  background: var(--vsc-accent);
}

.vsc-cal-btn.is-disabled,
.vsc-cal-btn[aria-disabled="true"] {
  opacity: 0.42;
  cursor: not-allowed;
}

.vsc-cal-btn.is-disabled:hover,
.vsc-cal-btn[aria-disabled="true"]:hover {
  border-color: rgba(181, 82, 42, 0.45);
  color: var(--vsc-muted);
  background: rgba(0, 0, 0, 0.28);
}

.vsc-mobile-cards {
  display: none;
  padding: 14px;
  gap: 12px;
}

.vsc-day-card {
  overflow: hidden;
  border: 1px solid var(--vsc-border);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.015);
}

.vsc-day-card h4 {
  display: flex;
  margin: 0;
  padding: 12px 14px;
  align-items: center;
  justify-content: space-between;
  color: var(--vsc-muted);
  background: var(--vsc-surface);
  font-size: 13px;
  letter-spacing: 0.05em;
}

.vsc-day-card h4 strong {
  color: var(--vsc-muted);
}

.vsc-mobile-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  min-height: 58px;
  border-top: 1px solid var(--vsc-border);
}

.vsc-mobile-time {
  display: flex;
  padding: 10px;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--vsc-border);
  color: var(--vsc-muted);
  background: var(--vsc-surface-strong);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.vsc-mobile-slot {
  min-width: 0;
}

.vsc-mobile-row .vsc-slot {
  min-height: 58px;
}

.vsc-mobile-row.is-empty .vsc-mobile-slot {
  display: flex;
  align-items: center;
  justify-content: center;
}

.vsc-empty-notice {
  padding: 28px;
  border: 1px dashed rgba(181, 82, 42, 0.45);
  border-radius: 8px;
  color: var(--vsc-muted);
  background: var(--vsc-bg);
  text-align: center;
}

.vsc-calendar.is-loading .vsc-calendar-wrap::before {
  position: absolute;
  z-index: 20;
  inset: 0;
  background: rgba(10, 12, 12, 0.62);
  content: "";
}

.vsc-calendar.is-loading .vsc-calendar-wrap::after {
  position: absolute;
  z-index: 21;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--vsc-accent);
  border-radius: 50%;
  content: "";
  animation: vsc-spin 0.75s linear infinite;
}

.vsc-screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@keyframes vsc-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 767px) {
  .vsc-calendar-top {
    min-height: 64px;
    padding: 16px;
    gap: 14px;
  }

  .vsc-week-title {
    min-width: 0;
    font-size: 15px;
  }

  .vsc-arrow-btn {
    width: 24px;
    min-width: 24px;
    font-size: 30px;
  }

  .vsc-responsive-cards .vsc-table-scroll {
    display: none;
  }

  .vsc-responsive-cards .vsc-mobile-cards {
    display: grid;
  }

  .vsc-calendar-bottom {
    padding: 16px;
    align-items: flex-start;
    flex-direction: column;
  }

  .vsc-legend {
    gap: 12px;
    font-size: 12px;
  }

  .vsc-calendar-actions {
    width: 100%;
    justify-content: stretch;
  }

  .vsc-cal-btn {
    min-width: 0;
    padding: 11px 10px;
    flex: 1 1 100px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .vsc-calendar-top {
    gap: 9px;
  }

  .vsc-week-title {
    font-size: 14px;
  }

  .vsc-mobile-cards {
    padding: 10px;
  }

  .vsc-mobile-row {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .vsc-mobile-time {
    padding: 8px 5px;
    font-size: 11px;
  }

  .vsc-class-title {
    font-size: 12px;
  }

  .vsc-status-text {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vsc-calendar *,
  .vsc-calendar *::before,
  .vsc-calendar *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}



/* =========================================================
   Vitruv Booking UI Polish v2.0.5
   ========================================================= */

/* Brand color enforcement */
:root,
.vsc-booking-app,
.vsc-booking-admin {
    --vsc-accent:#b5522a !important;
    --vsc-admin-accent:#b5522a !important;
    --vsc-admin-accent-dark:#923f20 !important;
}

/* Remove olive selected states */
.vsc-booking-app .is-selected,
.vsc-booking-app .selected,
.vsc-service-card.is-selected {
    border-color:#b5522a !important;
    outline-color:#b5522a !important;
    background:#fff !important;
    color:#18201b !important;
}

/* Service cards no layout shift */
.vsc-service-card,
.vsc-service-card.is-selected {
    position:relative;
    box-sizing:border-box;
    overflow:hidden;
    min-height:210px;
    padding:24px !important;
}

.vsc-service-card h3,
.vsc-service-card__title {
    display:block;
    max-width:100%;
    overflow-wrap:anywhere;
    white-space:normal;
    line-height:1.25;
}

.vsc-service-card p,
.vsc-service-card__description {
    max-width:100%;
    overflow-wrap:anywhere;
    line-height:1.5;
}

/* Selected indicator */
.vsc-service-card.is-selected::before {
    background:#b5522a !important;
}

/* Trainer and slot selections */
.vsc-trainer-card.is-selected,
.vsc-trainer-option.is-selected,
.vsc-slot-button.is-selected,
.vsc-payment-option.is-selected {
    border-color:#b5522a !important;
    background:#fff !important;
}

.vsc-trainer-card:hover,
.vsc-slot-button:hover,
.vsc-payment-option:hover {
    border-color:#b5522a;
    background:#fff;
}

/* Progress steps */
.vsc-step.is-active .vsc-step-number,
.vsc-step.active .vsc-step-number {
    background:#b5522a !important;
}

.vsc-step-progress,
.vsc-progress-bar {
    background:#b5522a !important;
}

/* Admin working hours redesign */
.vsc-working-hours,
.vsc-weekly-hours,
.vsc-availability-panel {
    border:1px solid #dde3df;
    border-radius:18px;
    padding:24px;
    background:#fff;
}

.vsc-working-hours .vsc-day-row,
.vsc-weekly-hours .vsc-day-row {
    display:grid;
    grid-template-columns:120px 1fr;
    gap:18px;
    align-items:center;
    padding:12px 0;
}

@media(max-width:768px){
    .vsc-working-hours .vsc-day-row,
    .vsc-weekly-hours .vsc-day-row {
        grid-template-columns:1fr;
    }
}

/* Better inputs */
.vsc-booking-admin input,
.vsc-booking-admin select,
.vsc-booking-admin textarea {
    border-radius:10px;
    min-height:42px;
}

/* Booking slots */
.vsc-time-slot,
.vsc-slot-button {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    min-height:62px;
    padding:14px 18px;
    overflow:hidden;
}

.vsc-time-slot * {
    overflow-wrap:anywhere;
}

/* Package cards */
.vsc-package-card:hover,
.vsc-package-card.is-selected {
    border-color:#b5522a !important;
    background:#fff !important;
}

/* Mobile frontend */
@media(max-width:680px){
    .vsc-service-card,
    .vsc-service-card.is-selected {
        min-height:auto;
        padding:18px !important;
    }

    .vsc-time-slot,
    .vsc-slot-button {
        flex-direction:column;
        align-items:flex-start;
    }
}
