.qcc-calendar-container { position: relative; }
.qcc-calendar-container * { box-sizing: border-box; }
.qcc-calendar-container a { text-decoration: none; }
.qcc-calendar-container h2 { font-size: 18px; margin: 4px 0; }
.qcc-calendar-container h3 { font-size: 24px; line-height: 24px; margin: 5px 0; }
.qcc-calendar-container table {
    border-spacing: 0;
    border-collapse: collapse;
    width: 100%;
}

.qcc-calendar .hd {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 1em;
    min-height: 48px;
}

.qcc-calendar h2.month {
    flex: 1 1 auto;
    text-align: center;
    margin: 0;
    z-index: 1;
}

.qcc-calendar td {
    height: 92px;
    width: calc(100% / 7);
    font-size: 16px;
    vertical-align: top;

    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.qcc-calendar thead { font-weight: 500; text-transform: uppercase; }

.qcc-calendar th,
.qcc-calendar td {
    border: 1px solid;
    border-color: #dddddd;
    text-align: right;
    padding: 8px;
}
.qcc-calendar tr:nth-child(odd) {
    background-color: rgb(0 0 0 / 5%);
}

.qcc-event { cursor: pointer; position: relative; }


.qcc-event:after {
    top: 0;
    display: block;
    content: '';
    height: 8px;
    right: 0;
    position: absolute;
    width: 8px;
    clip-path: polygon(0 0, 100% 100%, 100% 0);
}


.qcc-btn-prev, .qcc-btn-next {
    background: #fff;
    border-radius: 50%;
    border: 1px solid #ccc;
    color: #2196F3;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 2;
    flex: 0 0 auto;
    margin: 0 8px;
    position: static;
}

.qcc-btn-prev:hover, .qcc-btn-next:hover {
    background: #e3e3e3;
}

.qcc-list { margin-top: 20px; }

.qcc-close { float: right; margin: -16px -16px 0 0; }

.qcc-day-event { width: 100%; padding: 24px; margin-bottom: 24px; display: none; text-align: left; border-radius: 3px; }
.qcc-day-event p { padding: 0 0 16px 0; }
.qcc-day-event-date { margin: 10px 0; font-size: smaller; }

/* Event pricing indicators in details panel - now without color coding */
.qcc-event-pricing {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin: 8px 8px 8px 0;
    text-transform: uppercase;
    background-color: #F5F5F5;
    color: #666;
    border: 1px solid #DDD;
}

/* Event status indicators in details panel - with color coding */
.qcc-event-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin: 8px 8px 8px 0;
    text-transform: uppercase;
}

.qcc-status-published {
    background-color: #E8F5E8;
    color: #2E7D32;
    border: 1px solid #4CAF50;
}

.qcc-status-draft {
    background-color: #E3F2FD;
    color: #1565C0;
    border: 1px solid #2196F3;
}

/* Legacy pricing classes - keeping for backward compatibility but removing colors */
.qcc-price-free,
.qcc-price-paid {
    background-color: #F5F5F5;
    color: #666;
    border: 1px solid #DDD;
}

#qcc-event-details {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 1em;
    padding: 1em;
    color: #000;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.qcc-calendar-container .qcc-calendar tbody td.active,
.qcc-calendar-container .qcc-day-event {
    background-color: rgba(0, 0, 0, 0.15);
}
.qcc-calendar-container .qcc-current-day,
.qcc-calendar-container .qcc-btn-prev:hover,
.qcc-calendar-container .qcc-btn-next:hover {
    color: #f9f9f9;
}
.qcc-calendar-container .qcc-event.qcc-current-day:after {
    background-color: #f9f9f9;
}
.qcc-calendar-container .qcc-btn-prev:hover,
.qcc-calendar-container .qcc-btn-next:hover {
    background-color: #cbd1d2;
}

.qcc-form input[type="text"],
.qcc-form input[type="date"],
.qcc-form input[type="submit"],
.qcc-form input[type="datetime"],
.qcc-form textarea {
    width: 100%;
    font-family: inherit;
    font-size: inherit;
    padding: 8px;
    border: 1px solid lightgray;
    border-radius: 3px;
}
.qcc-form input[type="submit"] {
    padding: 8px 8px;
    width: 100%;
}
.qcc-form input[type="submit"]:hover {
    padding: 8px;
    border: 1px solid gray;
}
.qcc-form fieldset {
    margin: 2px 0;
    padding: 0;
}

.qcc-label {
    line-height: 1;
    font-size: 12px;
    text-align: left;
    color: #fff;
    display: block;
    padding: 4px;
    border-radius: 2px;
    margin: 2px;
    background: #2196F3;
}

/* Calendar event labels - status-based colors */
.qcc-label-published {
    background: #4CAF50 !important; /* Green for published events */
}

.qcc-label-draft {
    background: #2196F3 !important; /* Blue for draft events */
}

/* Legacy pricing labels - keeping for backward compatibility */
.qcc-label-free {
    background: #4CAF50 !important; /* Green for free events */
}

.qcc-label-paid {
    background: #2196F3 !important; /* Blue for paid events */
}

.qcc-calendar-container .qcc-calendar tbody td:hover .qcc-label {
    background-color: #000000 !important;
}

.qcc-calendar-container .qcc-calendar tbody td:hover .qcc-label-published,
.qcc-calendar-container .qcc-calendar tbody td:hover .qcc-label-draft,
.qcc-calendar-container .qcc-calendar tbody td:hover .qcc-label-free,
.qcc-calendar-container .qcc-calendar tbody td:hover .qcc-label-paid {
    background-color: #000000 !important;
}

/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* STYLES GO HERE */
}

/* Smartphones (landscape) ----------- */
@media only screen
and (min-width : 321px) {
/* STYLES GO HERE */
}

/* Smartphones (portrait) ----------- */
@media only screen
and (max-width : 320px) {
/* STYLES GO HERE */
}

/* iPads (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px) {
/* STYLES GO HERE */
}

/* iPads (landscape) ----------- */
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : landscape) {
/* STYLES GO HERE */
}

/* iPads (portrait) ----------- */
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : portrait) {
/* STYLES GO HERE */
}

/* Desktops and laptops ----------- */
@media only screen
and (min-width : 1224px) {
/* STYLES GO HERE */
}

/* Large screens ----------- */
@media only screen
and (min-width : 1824px) {
/* STYLES GO HERE */
}

/* iPhone 5 (portrait & landscape)----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 568px) {
/* STYLES GO HERE */
}

/* iPhone 5 (landscape)----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 568px)
and (orientation : landscape) {
/* STYLES GO HERE */
}

/* iPhone 5 (portrait)----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 568px)
and (orientation : portrait) {
/* STYLES GO HERE */
}

.qcc-event-content {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.qcc-event-details {
    flex: 1;
    min-width: 0;
}

.qcc-event-image {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.qcc-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive behavior for smaller screens */
@media (max-width: 600px) {
    .qcc-event-content {
        flex-direction: column;
    }
    
    .qcc-event-image {
        width: 100%;
        height: 200px;
        align-self: center;
    }
}

/* Adjusted taxonomy row styles for compact dropdown */
.qcc-event-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0;
    font-size: 14px;
    position: relative;
    flex-wrap: wrap;
}
.qcc-event-meta-label {
    font-weight: 500;
    color: #333;
}
.qcc-event-meta-chip {
    background: #f0f4f8;
    color: #1565C0;
    border-radius: 10px;
    padding: 2px 10px;
    font-size: 13px;
    margin-right: 2px;
    margin-bottom: 2px;
    display: inline-block;
}
.qcc-event-meta-more-count {
    background: #e3e3e3;
    color: #444;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 12px;
    margin-left: 2px;
    margin-bottom: 2px;
    display: inline-block;
    border: 1px solid #ccc;
}
.qcc-event-meta-toggle {
    background: #2196F3;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 2px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-weight: 500;
    margin-bottom: 2px;
    margin-left: 4px;
    height: 26px;
    line-height: 22px;
    display: inline-block;
    box-sizing: border-box;
}
.qcc-event-meta-toggle:focus, .qcc-event-meta-toggle:hover {
    background: #1565C0;
    color: #fff;
    outline: none;
}
.qcc-event-meta-dropdown {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-left: 8px;
    margin-top: 2px;
}

.qcc-month-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    min-width: 0;
}
.qcc-calendar .month {
    margin: 0;
    font-size: 1.5em;
    font-weight: 600;
    text-align: center;
    flex-shrink: 0;
}
.qcc-btn-today {
    background: #2196F3;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 0 18px;
    height: 36px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: background 0.2s, color 0.2s;
}
.qcc-btn-today:hover, .qcc-btn-today:focus {
    background: #1565C0;
    color: #fff;
    outline: none;
}

.qcc-event-age-category {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    margin-left: 8px;
    background-color: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
} 