.pomocal-booking {
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    padding: 1.5rem;
    background: #ffffff;
    max-width: 720px;
}

.pomocal-booking__message {
    margin-bottom: 1rem;
    min-height: 1.25rem;
    font-weight: 600;
}

.pomocal-booking__message[data-type="error"] {
    color: #b10d0d;
}

.pomocal-booking__message[data-type="success"] {
    color: #0a7b34;
}

.pomocal-booking__message[data-type="warning"] {
    color: #c77a00;
}

.pomocal-booking__scopes {
    margin-bottom: 1.5rem;
}

.pomocal-booking__label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.pomocal-booking__select {
    width: 100%;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #cccccc;
    font-size: 1rem;
}

.pomocal-booking__slots[data-state="loading"]::before {
    content: attr(data-loading-text);
}

.pomocal-booking__slot {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #f9fafc;
}

.pomocal-booking__slot--full {
    border-color: #f87171;
    background-color: #fef2f2;
}

.pomocal-booking__slot--cancelled {
    border-color: #9ca3af;
    background-color: #f3f4f6;
    opacity: 0.85;
}

.pomocal-booking__slot--seeking {
    border-color: #8b5cf6;
    background-color: #f5f3ff;
    box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.15);
}

.pomocal-booking__slot-title {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.pomocal-booking__slot-meta {
    margin: 0 0 0.75rem;
    color: #555555;
}

.pomocal-booking__slot-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background-color: #ede9fe;
    color: #5b21b6;
    font-size: 0.85rem;
    font-weight: 600;
}

.pomocal-booking__badge {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background-color: #2563eb;
    color: #ffffff;
    font-size: 0.875rem;
}

.pomocal-booking__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.pomocal-booking__button {
    cursor: pointer;
    border-radius: 4px;
    border: none;
    padding: 0;
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
}

.pomocal-booking__button--book {
    background-color: #2563eb;
    color: #ffffff;
}

.pomocal-booking__button--cancel {
    background-color: #f1f5f9;
    color: #1f2937;
    border: 1px solid #d1d5db;
}

.pomocal-button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border-radius: 50%;
    background-color: #2563eb;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pomocal-button-link:hover,
.pomocal-button-link:focus {
    background-color: #1d4ed8;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
    outline: none;
}

.pomocal-booking__action-link {
    align-self: center;
}

.pomocal-action-link__icon {
    font-size: 1.2rem;
    line-height: 1;
}

.pomocal-booking__button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pomocal-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.pomocal-booking__scope-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: #374151;
}

.pomocal-booking__scope-meta-label {
    font-weight: 600;
}

.pomocal-booking__scope-meta-value {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}

.pomocal-booking__scope-meta-link {
    color: #2563eb;
    text-decoration: none;
    word-break: break-all;
}

.pomocal-booking__scope-meta-link:hover,
.pomocal-booking__scope-meta-link:focus {
    text-decoration: underline;
}

.pomocal-booking__scope-meta-placeholder {
    color: #6b7280;
}

.pomocal-booking__view-mode {
    display: inline-flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.pomocal-booking__view-button {
    border: 1px solid #d1d5db;
    background-color: #f9fafb;
    color: #1f2937;
    border-radius: 4px;
    padding: 0.35rem 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.pomocal-booking__view-button:hover,
.pomocal-booking__view-button:focus {
    background-color: #e5e7eb;
    outline: none;
}

.pomocal-booking__view-button--active {
    background-color: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.pomocal-booking__calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.pomocal-booking__calendar-button {
    background-color: #f1f5f9;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 0.4rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    color: #1f2937;
}

.pomocal-booking__calendar-button:hover:not(:disabled) {
    background-color: #e2e8f0;
}

.pomocal-booking__calendar-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pomocal-booking__calendar-label {
    flex: 1;
    text-align: center;
    font-weight: 600;
    text-transform: capitalize;
    color: #111827;
}

.pomocal-booking__day {
    margin-bottom: 1.75rem;
}

.pomocal-booking__day:last-child {
    margin-bottom: 0;
}

.pomocal-booking__day-heading {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    color: #1f2937;
    text-transform: capitalize;
}

.pomocal-booking__day .pomocal-booking__slot {
    margin-bottom: 1rem;
}

.pomocal-booking__day .pomocal-booking__slot:last-child {
    margin-bottom: 0;
}

.pomocal-booking__participants {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.pomocal-booking__participants-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4b5563;
}

.pomocal-booking__participants-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pomocal-booking__participant-avatar,
.pomocal-booking__participant-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid #d1d5db;
}

.pomocal-booking__participant-avatar {
    object-fit: cover;
    background-color: #ffffff;
}

.pomocal-booking__participant-placeholder {
    background-color: #e5e7eb;
    color: #1f2937;
}

@media (max-width: 640px) {
    .pomocal-booking__calendar-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .pomocal-booking__calendar-label {
        text-align: left;
    }
}
