:root {
--sv-color-free: #22c55e;
--sv-color-requested: #f59e0b;
--sv-color-confirmed: #ef4444;
--sv-color-rejected: #6b7280;
--sv-color-blocked: #6b7280;
--sv-color-primary: #1e40af;
--sv-color-text: #374151;
--sv-color-text-light: #6b7280;
--sv-color-bg: #ffffff;
--sv-color-bg-light: #f9fafb;
--sv-color-border: #e5e7eb;
--sv-color-focus: #3b82f6;
--sv-border-radius: 0.375rem;
--sv-border-radius-lg: 0.5rem;
--sv-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
--sv-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
--sv-spacing-xs: 0.25rem;
--sv-spacing-sm: 0.5rem;
--sv-spacing-md: 1rem;
--sv-spacing-lg: 1.5rem;
--sv-spacing-xl: 2rem;
--sv-font-size-sm: 0.875rem;
--sv-font-size-base: 1rem;
--sv-font-size-lg: 1.125rem;
--sv-font-size-xl: 1.25rem;
--sv-transition: all 0.15s ease-in-out;
}   @media (prefers-reduced-motion: reduce) {
:root {
--sv-transition: none;
}
} .sv-booking-calendar {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
max-width: 100%;
margin: 0 auto;
background: var(--sv-color-bg);
border: 1px solid var(--sv-color-border);
border-radius: var(--sv-border-radius-lg);
overflow: hidden;
box-shadow: var(--sv-shadow);
} .sv-booking-calendar__header {
display: flex;
align-items: center;
justify-content: space-between;
padding: var(--sv-spacing-lg);
background: var(--sv-color-bg-light);
border-bottom: 1px solid var(--sv-color-border);
}
.sv-booking-calendar__title {
font-size: var(--sv-font-size-xl);
font-weight: 600;
color: var(--sv-color-text);
margin: 0;
}
.sv-booking-calendar__nav {
display: flex;
gap: var(--sv-spacing-sm);
}
.sv-booking-calendar__nav-btn {
display: inline-flex;
align-items: center;
justify-content: center;
width: 2.5rem;
height: 2.5rem;
padding: 0;
background: var(--sv-color-bg);
border: 1px solid var(--sv-color-border);
border-radius: var(--sv-border-radius);
color: var(--sv-color-text);
cursor: pointer;
transition: var(--sv-transition);
text-decoration: none;
}
.sv-booking-calendar__nav-btn:hover,
.sv-booking-calendar__nav-btn:focus {
background: var(--sv-color-primary);
color: white;
outline: none;
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}
.sv-booking-calendar__nav-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.sv-booking-calendar__nav-btn:disabled:hover {
background: var(--sv-color-bg);
color: var(--sv-color-text);
box-shadow: none;
} .sv-booking-calendar__grid {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 1px;
background: var(--sv-color-border);
}
.sv-booking-calendar__weekday {
padding: var(--sv-spacing-md);
text-align: center;
font-size: var(--sv-font-size-sm);
font-weight: 600;
color: var(--sv-color-text-light);
background: var(--sv-color-bg-light);
}
.sv-booking-calendar__day {
position: relative;
min-height: 4rem;
padding: var(--sv-spacing-sm);
background: var(--sv-color-bg);
cursor: pointer;
transition: var(--sv-transition);
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: flex-start;
}
.sv-booking-calendar__day:hover {
background: var(--sv-color-bg-light);
}
.sv-booking-calendar__day:focus {
outline: 2px solid var(--sv-color-focus);
outline-offset: -2px;
z-index: 1;
}
.sv-booking-calendar__day--other-month {
opacity: 0.3;
cursor: default;
}
.sv-booking-calendar__day--other-month:hover {
background: var(--sv-color-bg);
}
.sv-booking-calendar__day--today {
background: rgba(59, 130, 246, 0.1);
}
.sv-booking-calendar__day--free {
border-left: 4px solid var(--sv-color-free);
}
.sv-booking-calendar__day--requested {
border-left: 4px solid var(--sv-color-requested);
cursor: default;
}
.sv-booking-calendar__day--confirmed {
border-left: 4px solid var(--sv-color-confirmed);
cursor: default;
}
.sv-booking-calendar__day--rejected {
border-left: 4px solid var(--sv-color-rejected);
cursor: default;
}
.sv-booking-calendar__day--blocked {
border-left: 4px solid var(--sv-color-blocked);
cursor: default;
background: repeating-linear-gradient(
45deg,
var(--sv-color-bg),
var(--sv-color-bg) 10px,
var(--sv-color-bg-light) 10px,
var(--sv-color-bg-light) 20px
);
}
.sv-booking-calendar__day-number {
font-size: var(--sv-font-size-base);
font-weight: 500;
color: var(--sv-color-text);
line-height: 1;
margin-bottom: var(--sv-spacing-xs);
}
.sv-booking-calendar__day-times {
font-size: var(--sv-font-size-sm);
color: var(--sv-color-text-light);
line-height: 1.2;
word-break: break-word;
} .sv-booking-calendar__legend {
padding: var(--sv-spacing-lg);
background: var(--sv-color-bg-light);
border-top: 1px solid var(--sv-color-border);
}
.sv-booking-calendar__legend-title {
font-size: var(--sv-font-size-base);
font-weight: 600;
color: var(--sv-color-text);
margin: 0 0 var(--sv-spacing-md) 0;
}
.sv-booking-calendar__legend-items {
display: flex;
flex-wrap: wrap;
gap: var(--sv-spacing-lg);
}
.sv-booking-calendar__legend-item {
display: flex;
align-items: center;
gap: var(--sv-spacing-sm);
font-size: var(--sv-font-size-sm);
}
.sv-booking-calendar__legend-color {
width: 1rem;
height: 1rem;
border-radius: var(--sv-border-radius);
flex-shrink: 0;
}
.sv-booking-calendar__legend-color--free {
background: var(--sv-color-free);
}
.sv-booking-calendar__legend-color--requested {
background: var(--sv-color-requested);
}
.sv-booking-calendar__legend-color--confirmed {
background: var(--sv-color-confirmed);
}
.sv-booking-calendar__legend-color--blocked {
background: var(--sv-color-blocked);
} .sv-booking-modal {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 9999;
display: flex;
align-items: center;
justify-content: center;
background: rgba(0, 0, 0, 0.5);
padding: var(--sv-spacing-md);
opacity: 0;
visibility: hidden;
transition: var(--sv-transition);
}
.sv-booking-modal.is-active {
opacity: 1;
visibility: visible;
}
.sv-booking-modal__dialog {
background: var(--sv-color-bg);
border-radius: var(--sv-border-radius-lg);
box-shadow: var(--sv-shadow-lg);
width: 100%;
max-width: 560px; max-height: 90vh;
overflow: auto;
transform: scale(0.96);
transition: var(--sv-transition);
}
.sv-booking-modal.is-active .sv-booking-modal__dialog {
transform: scale(1);
}
.sv-booking-modal__header {
display: flex;
align-items: center;
justify-content: space-between;
padding: var(--sv-spacing-lg);
border-bottom: 1px solid var(--sv-color-border);
}
.sv-booking-modal__title {
font-size: var(--sv-font-size-lg);
font-weight: 600;
color: var(--sv-color-text);
margin: 0;
}
.sv-booking-modal__close {
display: inline-flex;
align-items: center;
justify-content: center;
width: 2rem;
height: 2rem;
padding: 0;
background: none;
border: none;
border-radius: var(--sv-border-radius);
color: var(--sv-color-text-light);
cursor: pointer;
transition: var(--sv-transition);
}
.sv-booking-modal__close:hover,
.sv-booking-modal__close:focus {
background: var(--sv-color-bg-light);
color: var(--sv-color-text);
outline: none;
}
.sv-booking-modal__body {
padding: var(--sv-spacing-lg);
}
.sv-booking-modal__footer {
display: flex;
gap: var(--sv-spacing-md);
justify-content: flex-end;
padding: var(--sv-spacing-lg);
border-top: 1px solid var(--sv-color-border);
} .sv-booking-form {
display: grid;
gap: var(--sv-spacing-lg);
}
.sv-booking-form__group {
display: grid;
gap: var(--sv-spacing-sm);
}
.sv-booking-form__label {
font-size: var(--sv-font-size-sm);
font-weight: 600;
color: var(--sv-color-text);
display: flex;
align-items: center;
gap: var(--sv-spacing-xs);
}
.sv-booking-form__label--required::after {
content: "*";
color: #ef4444;
}
.sv-booking-form__input,
.sv-booking-form__textarea,
.sv-booking-form__select {
width: 100%;
padding: var(--sv-spacing-md);
border: 1px solid var(--sv-color-border);
border-radius: var(--sv-border-radius);
font-size: var(--sv-font-size-base);
transition: var(--sv-transition);
background: var(--sv-color-bg);
}
.sv-booking-form__input:focus,
.sv-booking-form__textarea:focus,
.sv-booking-form__select:focus {
outline: none;
border-color: var(--sv-color-focus);
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.sv-booking-form__input--error,
.sv-booking-form__textarea--error,
.sv-booking-form__select--error {
border-color: #ef4444;
box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}
.sv-booking-form__textarea {
resize: vertical;
min-height: 6rem;
}
.sv-booking-form__help {
font-size: var(--sv-font-size-sm);
color: var(--sv-color-text-light);
}
.sv-booking-form__error {
font-size: var(--sv-font-size-sm);
color: #ef4444;
margin-top: var(--sv-spacing-xs);
}
.sv-booking-form__row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--sv-spacing-md);
}
.sv-booking-form__checkbox {
display: flex;
align-items: flex-start;
gap: var(--sv-spacing-sm);
}
.sv-booking-form__checkbox input[type="checkbox"] {
margin-top: 0.125rem;
width: 1rem;
height: 1rem;
flex-shrink: 0;
}
.sv-booking-form__checkbox-label {
font-size: var(--sv-font-size-sm);
color: var(--sv-color-text);
line-height: 1.4;
}
.sv-booking-form__checkbox-label a {
color: var(--sv-color-primary);
text-decoration: none;
}
.sv-booking-form__checkbox-label a:hover {
text-decoration: underline;
}
.sv-booking-form__captcha {
display: flex;
align-items: center;
gap: var(--sv-spacing-md);
padding: var(--sv-spacing-md);
background: var(--sv-color-bg-light);
border: 1px solid var(--sv-color-border);
border-radius: var(--sv-border-radius);
}
.sv-booking-form__captcha-question {
font-weight: 600;
color: var(--sv-color-text);
}
.sv-booking-form__captcha-input {
width: 4rem;
margin: 0;
} .sv-booking-btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: var(--sv-spacing-sm);
padding: var(--sv-spacing-md) var(--sv-spacing-lg);
border: 1px solid transparent;
border-radius: var(--sv-border-radius);
font-size: var(--sv-font-size-base);
font-weight: 500;
cursor: pointer;
transition: var(--sv-transition);
text-decoration: none;
line-height: 1;
min-height: 2.75rem;
}
.sv-booking-btn:focus {
outline: none;
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}
.sv-booking-btn--primary {
background: var(--sv-color-primary);
color: white;
}
.sv-booking-btn--primary:hover:not(:disabled) {
background: #1d4ed8;
}
.sv-booking-btn--secondary {
background: var(--sv-color-bg);
border-color: var(--sv-color-border);
color: var(--sv-color-text);
}
.sv-booking-btn--secondary:hover:not(:disabled) {
background: var(--sv-color-bg-light);
}
.sv-booking-btn:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.sv-booking-btn--loading {
pointer-events: none;
}
.sv-booking-btn__spinner {
width: 1rem;
height: 1rem;
border: 2px solid currentColor;
border-top-color: transparent;
border-radius: 50%;
animation: sv-spin 1s linear infinite;
}
@keyframes sv-spin {
to {
transform: rotate(360deg);
}
} .sv-booking-message {
padding: var(--sv-spacing-lg);
border-radius: var(--sv-border-radius);
margin-bottom: var(--sv-spacing-lg);
}
.sv-booking-message--success {
background: #d1fae5;
border: 1px solid #a7f3d0;
color: #065f46;
}
.sv-booking-message--error {
background: #fee2e2;
border: 1px solid #fecaca;
color: #991b1b;
}
.sv-booking-message--info {
background: #dbeafe;
border: 1px solid #bfdbfe;
color: #1e40af;
} .sv-booking-calendar--loading {
opacity: 0.6;
pointer-events: none;
}
.sv-booking-spinner {
display: flex;
align-items: center;
justify-content: center;
padding: var(--sv-spacing-xl);
}
.sv-booking-spinner__icon {
width: 2rem;
height: 2rem;
border: 3px solid var(--sv-color-border);
border-top-color: var(--sv-color-primary);
border-radius: 50%;
animation: sv-spin 1s linear infinite;
} .sv-booking-tooltip {
position: absolute;
z-index: 1000;
padding: var(--sv-spacing-sm) var(--sv-spacing-md);
background: var(--sv-color-text);
color: white;
font-size: var(--sv-font-size-sm);
border-radius: var(--sv-border-radius);
box-shadow: var(--sv-shadow);
opacity: 0;
visibility: hidden;
transition: var(--sv-transition);
pointer-events: none;
white-space: nowrap;
max-width: 200px;
white-space: normal;
word-wrap: break-word;
}
.sv-booking-tooltip.is-visible {
opacity: 1;
visibility: visible;
}
.sv-booking-tooltip::after {
content: "";
position: absolute;
top: 100%;
left: 50%;
transform: translateX(-50%);
border: 4px solid transparent;
border-top-color: var(--sv-color-text);
} @media (max-width: 640px) {
.sv-booking-calendar__header {
flex-direction: column;
gap: var(--sv-spacing-md);
text-align: center;
}
.sv-booking-calendar__day {
min-height: 3rem;
padding: var(--sv-spacing-xs);
}
.sv-booking-calendar__day-times {
font-size: 0.75rem;
}
.sv-booking-calendar__legend-items {
flex-direction: column;
gap: var(--sv-spacing-sm);
}
.sv-booking-form__row {
grid-template-columns: 1fr;
}
.sv-booking-modal {
padding: var(--sv-spacing-sm);
}
.sv-booking-modal__dialog {
max-height: 95vh;
}
.sv-booking-modal__header,
.sv-booking-modal__body,
.sv-booking-modal__footer {
padding: var(--sv-spacing-md);
}
.sv-booking-modal__footer {
flex-direction: column-reverse;
}
.sv-booking-btn {
width: 100%;
justify-content: center;
}
}
@media (max-width: 480px) {
.sv-booking-calendar__grid {
font-size: var(--sv-font-size-sm);
}
.sv-booking-calendar__weekday {
padding: var(--sv-spacing-sm);
}
.sv-booking-calendar__day {
min-height: 2.5rem;
}
.sv-booking-calendar__day-number {
font-size: var(--sv-font-size-sm);
}
.sv-booking-calendar__day-times {
display: none;
}
} @media print {
.sv-booking-calendar__nav,
.sv-booking-modal,
.sv-booking-btn {
display: none !important;
}
.sv-booking-calendar {
box-shadow: none;
border: 1px solid #000;
}
.sv-booking-calendar__day {
border: 1px solid #ddd !important;
}
} @media (prefers-contrast: high) {
:root {
--sv-color-border: #000000;
--sv-color-text: #000000;
--sv-color-text-light: #000000;
--sv-color-bg: #ffffff;
--sv-color-bg-light: #f0f0f0;
}
.sv-booking-calendar__day {
border: 1px solid var(--sv-color-border);
}
} .sv-booking-calendar__day:focus-visible,
.sv-booking-btn:focus-visible,
.sv-booking-form__input:focus-visible,
.sv-booking-form__textarea:focus-visible,
.sv-booking-form__select:focus-visible {
outline: 2px solid var(--sv-color-focus);
outline-offset: 2px;
} .sv-booking-calendar__day {
transition: background-color 0.3s ease, border-color 0.3s ease;
}
.sv-booking-calendar__day.status-updated {
animation: sv-status-pulse 0.6s ease-in-out;
}
@keyframes sv-status-pulse {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.02); }
} .sv-booking-sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
} .sv-booking-skip-link {
position: absolute;
top: -40px;
left: 6px;
background: var(--sv-color-primary);
color: white;
padding: 8px;
text-decoration: none;
border-radius: var(--sv-border-radius);
z-index: 10000;
}
.sv-booking-skip-link:focus {
top: 6px;
}