﻿.pc-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

    .pc-wrapper > input.persian-date {
        width: 100%;
        box-sizing: border-box;
        cursor: pointer;
    }

.pc-popup {
    position: absolute;
    z-index: 99999;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .15);
    font-family: inherit;
    box-sizing: border-box;
}

    .pc-popup[hidden] {
        display: none;
    }

.pc-header {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
}

.pc-nav,
.pc-title,
.pc-today,
.pc-clear {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}

.pc-nav {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    font-size: 25px;
    line-height: 1;
}

    .pc-nav:hover,
    .pc-title:hover {
        background: #f3f4f6;
    }

.pc-title {
    min-height: 36px;
    border-radius: 9px;
    font-weight: 700;
    font-size: 15px;
}

.pc-weekdays,
.pc-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.pc-weekday {
    text-align: center;
    font-size: 11px;
    color: #6b7280;
    padding: 5px 0;
}

.pc-day {
    min-height: 36px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
}

button.pc-day:hover:not(:disabled) {
    background: #f3f4f6;
}

.pc-empty {
    pointer-events: none;
}

.pc-selected {
    background: #111827 !important;
    color: #fff;
    font-weight: 700;
}

.pc-today-day {
    box-shadow: inset 0 0 0 1px #9ca3af;
}

.pc-disabled {
    opacity: .3;
    cursor: not-allowed;
}

.pc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.pc-today,
.pc-clear {
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 12px;
}

    .pc-today:hover,
    .pc-clear:hover {
        background: #f3f4f6;
    }

@media (max-width: 480px) {
    .pc-popup {
        width: min(320px, calc(100vw - 24px));
    }
}
