
.wpcal-wrapper {
    font-family: Arial, Helvetica, sans-serif;
    max-width: 1200px;
    margin: 10px auto;
    width: 100%;
    box-sizing: border-box;
}
.wpcal-wrapper * {
    box-sizing: border-box;
}
.wpcal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
}
.wpcal-header h2 {
    font-size: 28px;
    color: #25414a;
    margin: 0;
}
.wpcal-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.wpcal-controls select {
    max-width: 100%;
}
.wpcal-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    background: #fff;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
}
.wpcal-table-scroll {
    width: 100%;
}
.wpcal-month {
    width: 100%;
    border-collapse: collapse;
    background: #fbfbfb;
    table-layout: fixed;
}
.wpcal-month thead th {
    background: #f7f8f9;
    color: #666;
    text-align: left;
    padding: 12px 8px;
    border-bottom: 1px solid #e6e6e6;
    overflow: hidden;
}
.wpcal-month td {
    width: 14.2857%;
    vertical-align: top;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 18px 12px;
    height: 120px;
    position: relative;
    overflow: hidden;
}
.wpcal-daynum {
    color: #555;
    font-weight: 600;
    margin-bottom: 6px;
}
.wpcal-out .wpcal-daynum {
    color: #bdbdbd;
}
.wpcal-event {
    display: block;
    width: 100%;
    background: #1f4f5b;
    color: #fff;
    padding: 6px 8px;
    border-radius: 3px;
    font-size: 13px;
    margin-top: 6px;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}
.wpcal-event:hover,
.wpcal-event:focus {
    background: #165258;
}
.wpcal-show-more {
    color: #1f4f5b;
    font-size: 12px;
    margin-top: 6px;
    cursor: pointer;
    text-decoration: underline;
}
.wpcal-show-more:hover,
.wpcal-show-more:focus {
    color: #165258;
}
.wpcal-today {
    outline: 3px solid rgba(31, 79, 91, 0.06);
    outline-offset: -3px;
}
.wpcal-hover-box {
    display: none;
    position: absolute;
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-width: 250px;
    font-size: 12px;
    line-height: 1.4;
    white-space: normal;
}
.wpcal-event:hover + .wpcal-hover-box,
.wpcal-hover-box:hover,
.wpcal-show-more:hover + .wpcal-hover-box {
    display: block;
    top: 0;
    left: 100%;
}
.wpcal-mobile-list {
    display: none;
}
.wpcal-mobile-day {
    border: 1px solid #e7ecef;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
    background: #fff;
}
.wpcal-mobile-today {
    border-color: #1f4f5b;
    box-shadow: 0 0 0 2px rgba(31, 79, 91, 0.08);
}
.wpcal-mobile-date-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.wpcal-mobile-date {
    font-size: 16px;
    font-weight: 700;
    color: #25414a;
}
.wpcal-mobile-count {
    font-size: 12px;
    color: #5b6a70;
    white-space: nowrap;
}
.wpcal-mobile-events {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.wpcal-mobile-event-item {
    background: #f7f8f9;
    border-left: 4px solid #1f4f5b;
    border-radius: 6px;
    padding: 10px 12px;
}
.wpcal-mobile-event-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2d33;
    margin-bottom: 4px;
}
.wpcal-mobile-event-time,
.wpcal-mobile-no-events {
    font-size: 13px;
    color: #66767c;
}
@media (max-width: 900px) {
    .wpcal-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .wpcal-controls {
        width: 100%;
    }
}
@media (max-width: 700px) {
    .wpcal-wrapper {
        margin: 10px 0;
    }
    .wpcal-header h2 {
        font-size: 24px;
    }
    .wpcal-controls {
        gap: 6px;
        width: 100%;
    }
    .wpcal-controls select {
        flex: 1 1 160px;
        min-height: 38px;
    }
    .wpcal-desktop-view {
        display: none;
    }
    .wpcal-mobile-list {
        display: block;
    }
    .wpcal-hover-box {
        position: fixed;
        left: 12px !important;
        right: 12px;
        top: auto !important;
        bottom: 12px;
        max-width: none;
        z-index: 9999;
    }
}
