.widget_achit_lec_widget {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    padding: 0 !important;
}

.achit-lec {
    background: linear-gradient(145deg, #fffaf1 0%, #f4eef8 100%);
    border: 1px solid rgba(61, 36, 83, .1);
    border-top: 4px solid #dd8b1f;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(61, 36, 83, .14);
    box-sizing: border-box;
    color: #302735;
    font-family: inherit;
    overflow: visible;
    padding: 18px;
    width: 100%;
}

.achit-lec__header {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.achit-lec__eyebrow {
    color: #2f686b;
    display: block;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .08em;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.achit-lec__title {
    color: #3d2453;
    font-size: 1.16rem !important;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 !important;
}

.achit-lec__nav {
    display: flex;
    flex: 0 0 auto;
    gap: 5px;
}

.achit-lec__nav-button {
    align-items: center;
    background: rgba(255, 255, 255, .82) !important;
    border: 1px solid rgba(61, 36, 83, .13) !important;
    border-radius: 9px !important;
    color: #3d2453 !important;
    cursor: pointer;
    display: inline-flex;
    font-size: 1.25rem !important;
    font-weight: 700;
    height: 32px;
    justify-content: center;
    line-height: 1 !important;
    min-width: 32px;
    padding: 0 !important;
    transition: background .18s ease, transform .18s ease;
}

.achit-lec__nav-button:hover,
.achit-lec__nav-button:focus-visible {
    background: #3d2453 !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.achit-lec__month {
    color: #3d2453;
    font-size: .9rem;
    font-weight: 800;
    margin-bottom: 9px;
    text-transform: capitalize;
}

.achit-lec__weekdays,
.achit-lec__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.achit-lec__weekdays {
    color: #716777;
    font-size: .62rem;
    font-weight: 800;
    margin-bottom: 4px;
    text-align: center;
    text-transform: uppercase;
}

.achit-lec__day {
    align-items: center;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    min-height: 32px;
    position: relative;
}

.achit-lec__number {
    align-items: center;
    border-radius: 50%;
    display: inline-flex;
    font-size: .75rem;
    font-weight: 700;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.achit-lec__day--today:not(.achit-lec__day--event) .achit-lec__number {
    box-shadow: inset 0 0 0 2px rgba(47, 104, 107, .55);
    color: #2f686b;
}

.achit-lec__date-button {
    align-items: center;
    background: #3d2453 !important;
    border: 0 !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 10px rgba(61, 36, 83, .24);
    color: #fff !important;
    cursor: pointer;
    display: inline-flex;
    height: 30px;
    justify-content: center;
    padding: 0 !important;
    position: relative;
    transition: transform .18s ease, box-shadow .18s ease;
    width: 30px;
}

.achit-lec__date-button .achit-lec__number {
    font-size: .75rem;
    height: auto;
    width: auto;
}

.achit-lec__date-button:hover,
.achit-lec__date-button:focus-visible,
.achit-lec__day--event.is-open .achit-lec__date-button {
    box-shadow: 0 6px 14px rgba(61, 36, 83, .34);
    transform: translateY(-2px);
}

.achit-lec__date-button:focus-visible {
    outline: 3px solid rgba(221, 139, 31, .48);
    outline-offset: 2px;
}

.achit-lec__badge {
    align-items: center;
    background: #dd8b1f;
    border: 2px solid #fffaf1;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: .52rem;
    font-weight: 800;
    height: 15px;
    justify-content: center;
    min-width: 15px;
    padding: 0 2px;
    position: absolute;
    right: -5px;
    top: -5px;
}

.achit-lec__popover {
    background: #fff;
    border: 1px solid rgba(61, 36, 83, .12);
    border-radius: 12px;
    box-shadow: 0 16px 34px rgba(45, 28, 57, .22);
    left: 50%;
    max-height: min(420px, calc(100vh - 100px));
    max-width: min(260px, calc(100vw - 40px));
    opacity: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 10px 12px;
    pointer-events: none;
    position: absolute;
    text-align: left;
    top: calc(100% + 7px);
    transform: translate(-50%, -5px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
    visibility: hidden;
    width: 230px;
    z-index: 9999;
}

.achit-lec__day:nth-child(n + 22) .achit-lec__popover {
    bottom: calc(100% + 7px);
    top: auto;
}

.achit-lec__day:nth-child(7n + 1) .achit-lec__popover {
    left: 0;
    transform: translate(0, -5px);
}

.achit-lec__day:nth-child(7n) .achit-lec__popover {
    left: auto;
    right: 0;
    transform: translate(0, -5px);
}

.achit-lec__day--event:hover .achit-lec__popover,
.achit-lec__day--event:focus-within .achit-lec__popover,
.achit-lec__day--event.is-open .achit-lec__popover {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
    visibility: visible;
}

.achit-lec__day:nth-child(7n + 1):hover .achit-lec__popover,
.achit-lec__day:nth-child(7n + 1):focus-within .achit-lec__popover,
.achit-lec__day:nth-child(7n + 1).is-open .achit-lec__popover,
.achit-lec__day:nth-child(7n):hover .achit-lec__popover,
.achit-lec__day:nth-child(7n):focus-within .achit-lec__popover,
.achit-lec__day:nth-child(7n).is-open .achit-lec__popover {
    transform: translate(0, 0);
}

.achit-lec__event + .achit-lec__event {
    border-top: 1px solid #eee5f1;
    margin-top: 8px;
    padding-top: 8px;
}

.achit-lec__event-title {
    color: #3d2453;
    display: block;
    font-size: .78rem;
    line-height: 1.35;
    margin-bottom: 4px;
}

.achit-lec__event-meta {
    color: #5f5563;
    display: block;
    font-size: .7rem;
    line-height: 1.4;
    padding-left: 16px;
    position: relative;
}

.achit-lec__event-time::before,
.achit-lec__event-location::before {
    color: #2f686b;
    font-weight: 800;
    left: 0;
    position: absolute;
}

.achit-lec__event-time::before {
    content: '◷';
}

.achit-lec__event-location::before {
    content: '•';
}

.achit-lec__empty {
    background: rgba(255, 255, 255, .64);
    border-radius: 10px;
    color: #6b606f;
    font-size: .76rem;
    line-height: 1.45;
    margin: 10px 0 0;
    padding: 9px 10px;
    text-align: center;
}

.achit-lec__hint {
    color: #756b78;
    font-size: .65rem;
    line-height: 1.4;
    margin: 11px 0 0;
    text-align: center;
}

@media (max-width: 480px) {
    .achit-lec {
        padding: 17px;
    }

    .achit-lec__day {
        min-height: 36px;
    }

    .achit-lec__popover {
        bottom: auto !important;
        max-height: calc(100vh - 80px);
        position: fixed;
        left: 20px !important;
        right: 20px !important;
        top: 50% !important;
        transform: translateY(-48%) !important;
        width: auto;
    }

    .achit-lec__day--event:hover .achit-lec__popover,
    .achit-lec__day--event:focus-within .achit-lec__popover,
    .achit-lec__day--event.is-open .achit-lec__popover {
        transform: translateY(-50%) !important;
    }
}
