.pdc-date-picker {
    position: absolute;
    z-index: 100000;
    width: 310px;
    max-width: calc(100vw - 16px);
    padding: 10px;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    direction: rtl;
    display: none;
    box-sizing: border-box;
}

.pdc-date-picker.is-open {
    display: block;
}

.pdc-picker-head {
    display: grid;
    grid-template-columns: 38px 1fr 38px;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.pdc-picker-head button {
    min-height: 34px;
    border: 1px solid #dcdcde;
    background: #f6f7f7;
    cursor: pointer;
    border-radius: 5px;
}

.pdc-picker-head .pdc-title {
    font-weight: 700;
}

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

.pdc-weekdays {
    margin-bottom: 4px;
    color: #646970;
    font-size: 12px;
    text-align: center;
}

.pdc-weekdays span {
    padding: 4px 0;
}

.pdc-day,
.pdc-days > span {
    min-height: 34px;
}

.pdc-day {
    border: 1px solid transparent;
    background: #fff;
    border-radius: 5px;
    cursor: pointer;
}

.pdc-day:hover:not(:disabled) {
    border-color: #2271b1;
    background: #f0f6fc;
}

.pdc-day.today {
    border-color: #2271b1;
}

.pdc-day.selected {
    background: #2271b1;
    color: #fff;
    font-weight: 700;
}

.pdc-day:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.pdc-core-publish-date {
    display: block;
    width: 100%;
    max-width: 180px;
    margin: 0 0 8px;
    box-sizing: border-box;
}

.pdc-core-source {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Never show a native/browser date control after Persian conversion. */
input.pdc-jalali::-webkit-calendar-picker-indicator { display: none !important; }
input.pdc-jalali { -webkit-appearance: none; appearance: none; }

input.pdc-jalali[disabled] {
    opacity: 0.65;
    cursor: not-allowed;
}

input.pdc-jalali[readonly] {
    background-image: none;
}
