.sc-71bb1846-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    background: #ffffff;
}

.sc-71bb1846-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background-color: #24735c;
}

.sc-71bb1846-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
}

.sc-71bb1846-btn {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #ffffff;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.sc-71bb1846-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sc-71bb1846-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background-color: #f2d0bd;
    text-align: center;
    font-weight: 600;
    font-size: 0.8rem;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
}

.sc-71bb1846-weekday {
    padding: 8px 0;
}

.sc-71bb1846-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background-color: #f8fafc;
}

.sc-71bb1846-day {
    min-height: 55px;
    border-bottom: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    padding: 4px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-color: #ffffff;
}

.sc-71bb1846-day:nth-child(7n) {
    border-right: none;
}

.sc-71bb1846-day.prev-date,
.sc-71bb1846-day.next-date {
    background-color: #f1f5f9;
    color: #94a3b8;
}

.sc-71bb1846-day.today {
    background-color: #fffaf0;
}

.sc-71bb1846-day.today .day-number {
    background-color: #f27405;
    color: #ffffff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.day-number {
    font-weight: 600;
    font-size: 0.8rem;
    color: #1e293b;
    margin-bottom: 4px;
}

.sc-71bb1846-events-container {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: auto;
}

.sc-71bb1846-event-badge {
    font-size: 0.7rem;
    padding: 2px 4px;
    border-left: 3px solid #f27405;
    background-color: #f8fafc;
    border-radius: 2px;
    color: #334155;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background-color 0.15s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.sc-71bb1846-event-badge:hover {
    background-color: #f1f5f9;
}

.sc-71bb1846-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px 15px;
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.85rem;
    color: #475569;
}

.sc-71bb1846-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    padding: 4px 8px;
    border-radius: 6px;
}

.sc-71bb1846-legend-item:hover {
    background-color: #e2e8f0;
}

.sc-71bb1846-legend-item.active {
    background-color: #e2e8f0;
    font-weight: 700;
}

.sc-71bb1846-legend.has-active .sc-71bb1846-legend-item:not(.active) {
    opacity: 0.35;
}

.sc-71bb1846-legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

/* Modal Styling */
.sc-71bb1846-modal {
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
}

.sc-71bb1846-modal-content {
    background-color: #ffffff;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
    animation: scFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scFadeIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.sc-71bb1846-modal-close {
    position: absolute;
    right: 16px;
    top: 12px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #64748b;
    cursor: pointer;
}

.sc-71bb1846-modal-close:hover {
    color: #1e293b;
}

.sc-71bb1846-modal-title {
    margin-top: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    padding-right: 20px;
}

.sc-71bb1846-modal-date {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 12px;
}

.sc-71bb1846-modal-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #334155;
    margin: 0;
}

/* Admin Bar Fix */
body.admin-bar .sc-71bb1846-modal {
    top: var(--wp-admin--admin-bar--height, 32px);
}
@media screen and (max-width: 782px) {
    body.admin-bar .sc-71bb1846-modal {
        top: 46px;
    }
}
