.persian-date-proxy,
.persian-date-input {
    min-width: 150px;
    direction: rtl;
    text-align: center;
}

.persian-date-trigger {
    margin-inline-start: 6px;
    width: 36px;
    min-height: 38px;
    border: 1px solid #ced4da;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    vertical-align: middle;
}

.persian-date-picker {
    position: absolute;
    z-index: 100000;
    width: 320px;
    max-width: calc(100vw - 20px);
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, .16);
    padding: 10px;
    direction: rtl;
    font-family: inherit;
}

.persian-date-picker[hidden] { display: none; }

.persian-date-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 8px;
}

.persian-date-nav {
    border: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    font-size: 18px;
}

.persian-date-nav:hover { background: #f2f2f2; }

.persian-date-title {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.persian-date-title select {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 4px 7px;
    background: #fff;
}

.persian-date-weekdays,
.persian-date-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.persian-date-weekdays div {
    text-align: center;
    font-size: 12px;
    color: #666;
    padding: 4px 0;
}

.persian-date-day {
    border: 0;
    background: #fff;
    min-height: 34px;
    border-radius: 5px;
    cursor: pointer;
}

.persian-date-day:hover { background: #eef5ff; }
.persian-date-day.muted { color: #aaa; }
.persian-date-day.today { box-shadow: inset 0 0 0 1px #888; }
.persian-date-day.selected { background: #1677ff; color: #fff; }
.persian-date-day.disabled { color: #c7c7c7; cursor: not-allowed; background: #fafafa; }

.persian-date-footer {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 9px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.persian-date-footer button {
    border: 1px solid #ced4da;
    background: #fff;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
}

.persian-date-footer .primary {
    background: #1677ff;
    color: #fff;
    border-color: #1677ff;
}
