/* TimeGridPicker CSS */
.tgp-pop {
    position: fixed;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    font-family: inherit;
    z-index: 1050;
    display: none;
    flex-direction: column;
    padding: 1rem;
    width: 320px;
    border: 1px solid #eaeaea;
}

.tgp-pop.tgp-open {
    display: flex;
}

.tgp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 0.75rem;
}

.tgp-grid-wrapper {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 5px;
}

.tgp-grid-wrapper::-webkit-scrollbar {
    width: 6px;
}
.tgp-grid-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 4px;
}
.tgp-grid-wrapper::-webkit-scrollbar-thumb {
    background: #ccc; 
    border-radius: 4px;
}
.tgp-grid-wrapper::-webkit-scrollbar-thumb:hover {
    background: #999; 
}

.tgp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.tgp-btn {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #333;
}

.tgp-btn:hover {
    border-color: #3f51b5;
    background: #f8f9fe;
}

.tgp-btn.active {
    background: #3f51b5;
    border-color: #3f51b5;
    color: #fff;
}

.tgp-time {
    font-size: 0.85rem;
    font-weight: 700;
}

.tgp-ampm {
    font-size: 0.6rem;
    font-weight: 500;
    margin-top: 2px;
    color: inherit;
    opacity: 0.7;
}
