/* Simple Month Calendar CSS - Updated for new structure */

/* Main calendar wrapper */
.smc-calendar-wrapper {
    margin: 20px 0;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Calendar title */
.smc-calendar-title {
    text-align: center;
    margin-bottom: 15px;
}

.smc-calendar-title h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    margin: 0;
    padding: 0;
}

/* Top text above calendar */
.smc-top-text {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.smc-top-text p {
    margin: 0;
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

/* Calendar bar container */
.smc-calendar-bar {
    margin-bottom: 20px;
}

/* Months row with colored boxes */
.smc-months-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    margin-bottom: 2px;
}

.smc-month-box {
    width: 45px;
    height: 35px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.smc-month-box.active {
    opacity: 1;
    border-color: #007cba;
}

.smc-month-box.inactive {
    background-color: #f5f5f5 !important;
    opacity: 0.4;
}

/* Numbers row */
.smc-numbers-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
}

.smc-month-number {
    width: 45px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    color: #333333;
    background: transparent;
    border: none;
}

/* Bottom texts container */
.smc-bottom-texts {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 15px;
    gap: 20px;
}

.smc-text-left,
.smc-text-right {
    flex: 1;
    max-width: 140px;
    font-size: 12px;
    line-height: 1.4;
}

.smc-text-left p,
.smc-text-right p {
    margin: 0;
    padding: 0;
    color: #666666;
    word-wrap: break-word;
}

.smc-text-left {
    text-align: left;
}

.smc-text-right {
    text-align: right;
}

/* Quick View specific fixes */
.woocommerce-variation-description .smc-calendar-wrapper,
.product-quickview .smc-calendar-wrapper,
.quick-view-product .smc-calendar-wrapper,
.mfp-content .smc-calendar-wrapper {
    margin: 15px 0;
    padding: 15px;
    max-width: 100%;
    box-sizing: border-box;
}

/* Responsive design */
@media (max-width: 768px) {
    .smc-calendar-wrapper {
        padding: 15px;
        margin: 15px 0;
    }
    
    .smc-month-box {
        width: 40px;
        height: 32px;
    }
    
    .smc-month-number {
        width: 40px;
        height: 22px;
        font-size: 11px;
    }
    
    .smc-bottom-texts {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .smc-text-left,
    .smc-text-right {
        max-width: 100%;
        text-align: center;
    }

    .smc-calendar-title h3 {
        font-size: 16px;
    }
    
    .smc-top-text {
        padding: 8px;
    }
    
    .smc-top-text p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .smc-month-box {
        width: 35px;
        height: 28px;
    }
    
    .smc-month-number {
        width: 35px;
        height: 20px;
        font-size: 10px;
    }
    
    .smc-months-row,
    .smc-numbers-row {
        gap: 1px;
    }
}

/* Additional fixes for various themes and Quick View plugins */
.woocommerce .smc-calendar-wrapper,
.wc-shortcodes-wrapper .smc-calendar-wrapper,
.elementor-widget-woocommerce-product-content .smc-calendar-wrapper {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure proper font loading */
.smc-calendar-wrapper * {
    font-family: inherit;
    box-sizing: border-box;
} 