.ec-8314579c-wrap {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 24px;
    position: relative;
    font-family: inherit;
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
    width: 100%;
}

.ec-8314579c-wrap *,
.ec-8314579c-wrap *::before,
.ec-8314579c-wrap *::after {
    box-sizing: border-box;
}

/* Header */
.ec-8314579c-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    max-width: 100%;
}

.ec-8314579c-month-label {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ec-8314579c-nav-btn {
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    width: 36px;
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6366f1;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.ec-8314579c-nav-btn:hover {
    background-color: #eef2ff;
    border-color: #6366f1;
    color: #4f46e5;
}

.ec-8314579c-nav-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
}

/* Grid */
.ec-8314579c-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 2px;
    max-width: 100%;
    overflow: hidden;
}

.ec-8314579c-day-header {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

/* Day Cells */
.ec-8314579c-day {
    min-height: 80px;
    padding: 6px;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    position: relative;
    transition: background-color 0.2s ease;
    cursor: default;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
    min-width: 0;
}

.ec-8314579c-day:hover {
    background-color: #f9fafb;
}

.ec-8314579c-day-num {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    line-height: 1;
    margin-bottom: 4px;
}

/* Today */
.ec-8314579c-day--today {
    background-color: #eef2ff;
    border-color: #c7d2fe;
}

.ec-8314579c-day--today .ec-8314579c-day-num {
    color: #6366f1;
    font-weight: 700;
}

/* Other month */
.ec-8314579c-day--other {
    background-color: #fafafa;
}

.ec-8314579c-day--other .ec-8314579c-day-num {
    color: #d1d5db;
}

/* Has events */
.ec-8314579c-day--has-events {
    cursor: pointer;
}

.ec-8314579c-day--has-events:hover {
    background-color: #eef2ff;
    border-color: #c7d2fe;
}

/* Event dots */
.ec-8314579c-event-dots {
    display: flex;
    gap: 3px;
    margin-bottom: 3px;
}

.ec-8314579c-event-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #6366f1;
    flex-shrink: 0;
}

/* Event label */
.ec-8314579c-event-label {
    font-size: 10px;
    font-weight: 600;
    color: #4338ca;
    background-color: #eef2ff;
    padding: 2px 5px;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    width: 100%;
    line-height: 1.3;
    min-width: 0;
}

/* Tooltip */
.ec-8314579c-tooltip {
    position: absolute;
    z-index: 100;
    background-color: #1f2937;
    color: #ffffff;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    min-width: 200px;
    max-width: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.ec-8314579c-tooltip-event strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
    word-wrap: break-word;
}

.ec-8314579c-tooltip-meta {
    font-size: 12px;
    color: #d1d5db;
    line-height: 1.4;
    word-wrap: break-word;
}

.ec-8314579c-tooltip-divider {
    border: none;
    border-top: 1px solid #374151;
    margin: 8px 0;
}

/* Responsive */
@media (max-width: 767px) {
    .ec-8314579c-wrap {
        padding: 16px;
    }

    .ec-8314579c-day {
        min-height: 56px;
        padding: 4px;
    }

    .ec-8314579c-day-num {
        font-size: 12px;
    }

    .ec-8314579c-event-label {
        display: none;
    }

    .ec-8314579c-month-label {
        font-size: 16px;
    }

    .ec-8314579c-tooltip {
        min-width: 160px;
        max-width: 240px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .ec-8314579c-wrap {
        padding: 10px;
    }

    .ec-8314579c-day {
        min-height: 40px;
        padding: 2px;
    }

    .ec-8314579c-day-header {
        font-size: 10px;
        padding: 4px 1px;
    }

    .ec-8314579c-event-dots {
        justify-content: center;
        width: 100%;
    }
}
