/* EMODIBOK shared foundation. Scope all visual effects to plugin roots. */
:where(.emodibok-calendar-wrapper, .emodibok-booking-wrapper, .emodibok-upcoming-bookings, .emodibok-employee-portal, .emodibok-admin) {
    color: var(--emodibok-color-text);
    color-scheme: var(--emodibok-color-scheme);
}

:where(.emodibok-calendar-wrapper, .emodibok-booking-wrapper, .emodibok-upcoming-bookings, .emodibok-employee-portal) {
    position: relative;
    isolation: isolate;
    background: transparent;
}

:where(.emodibok-calendar-wrapper, .emodibok-booking-wrapper, .emodibok-upcoming-bookings, .emodibok-employee-portal, .emodibok-admin, .emodibok-contract-template-modal, .emodibok-contract-approval-modal, .emodibok-contract-preview-modal) :focus-visible:not(.notice-dismiss) {
    outline: 3px solid var(--emodibok-color-focus-ring);
    outline-offset: 3px;
}

:where(.emodibok-calendar-wrapper, .emodibok-booking-wrapper, .emodibok-upcoming-bookings, .emodibok-employee-portal, .emodibok-admin, .emodibok-contract-template-modal, .emodibok-contract-approval-modal, .emodibok-contract-preview-modal) button:not(.notice-dismiss),
:where(.emodibok-calendar-wrapper, .emodibok-booking-wrapper, .emodibok-upcoming-bookings, .emodibok-employee-portal, .emodibok-admin, .emodibok-contract-template-modal, .emodibok-contract-approval-modal, .emodibok-contract-preview-modal) input,
:where(.emodibok-calendar-wrapper, .emodibok-booking-wrapper, .emodibok-upcoming-bookings, .emodibok-employee-portal, .emodibok-admin, .emodibok-contract-template-modal, .emodibok-contract-approval-modal, .emodibok-contract-preview-modal) select {
    min-height: 44px;
}

.emodibok-submit-btn {
    transition: transform 180ms ease-out, box-shadow 180ms ease-out, background-color 180ms ease-out, border-color 180ms ease-out;
}

.emodibok-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 14px var(--emodibok-color-primary-glow), var(--emodibok-shadow-md);
}

.emodibok-submit-btn:active {
    transform: translateY(0) scale(.98);
}

.emodibok-new-booking-notice {
    margin: 20px 0;
    border-left: 4px solid var(--emodibok-color-primary) !important;
    background: var(--emodibok-color-primary-surface) !important;
    color: var(--emodibok-color-text);
}

.emodibok-new-booking-notice__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px;
}

.emodibok-new-booking-notice__title,
.emodibok-new-booking-notice__details {
    margin: 0;
    color: var(--emodibok-color-text);
}

.emodibok-new-booking-notice__details {
    margin-top: 5px;
    color: var(--emodibok-color-text-muted);
}

.emodibok-new-booking-notice__details a {
    color: var(--emodibok-color-text);
}

.emodibok-new-booking-notice__button {
    min-height: 36px;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .emodibok-new-booking-notice__content {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    :where(.emodibok-calendar-wrapper, .emodibok-booking-wrapper, .emodibok-upcoming-bookings, .emodibok-employee-portal, .emodibok-admin) *,
    :where(.emodibok-calendar-wrapper, .emodibok-booking-wrapper, .emodibok-upcoming-bookings, .emodibok-employee-portal, .emodibok-admin) *::before,
    :where(.emodibok-calendar-wrapper, .emodibok-booking-wrapper, .emodibok-upcoming-bookings, .emodibok-employee-portal, .emodibok-admin) *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
