[data-thai-date] [hidden] { display: none !important; }
.news-calendar { position: relative; }
.news-calendar summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    list-style: none;
    cursor: pointer;
}
.news-calendar summary::-webkit-details-marker { display: none; }
.news-calendar summary::after {
    content: "";
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    border: 1px solid currentColor;
    border-top-width: 4px;
    border-radius: 2px;
}
.news-calendar summary[aria-invalid="true"] { outline: 2px solid #c62828; }
.news-calendar-panel {
    position: absolute;
    z-index: 20;
    box-sizing: border-box;
    width: min(264px, calc(100vw - 24px));
    padding: 10px;
    background: #fff;
    border: 1px solid #c7cdd5;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}
.thai-date-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 53px 28px 28px;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}
.news-calendar .thai-date-toolbar :is(select, input) {
    width: 100%;
    min-width: 0;
    padding: 3px;
    font: inherit;
}
.thai-date-footer { display: flex; justify-content: space-between; margin-top: 6px; }
.thai-date-footer button:last-child { margin-inline-start: auto; }
.thai-date-footer button, .thai-date-toolbar button {
    min-height: 28px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: #1768c4;
}
.news-calendar-panel button:not(:disabled) { cursor: pointer; }
.news-calendar-panel button:not(:disabled):hover { box-shadow: inset 0 0 0 1px currentColor; }
.news-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    text-align: center;
    gap: 2px;
}
.news-calendar-days button {
    min-height: 28px;
    padding: 2px 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
}
.news-calendar-days button.outside-month { opacity: .56; }
.news-calendar-days button.is-today { box-shadow: inset 0 0 0 1px #1768c4; }
.news-calendar-days button[aria-pressed="true"] {
    background: #1768c4;
    color: #fff;
    opacity: 1;
}
.news-calendar-days button:disabled { opacity: .45; }
