/* ویجت رزرو نوبت — پل نوبت‌دهی شمسی */

.eab-widget {
    direction: rtl;
    background: #fafafa;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    padding: 18px;
    margin: 0 0 1.4em;
    font-size: 15px;
}

.eab-widget .eab-field {
    margin-bottom: 14px;
}

.eab-widget label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.eab-widget select {
    width: 100%;
    max-width: 320px;
    padding: 8px 10px;
    border: 1px solid #cfcfcf;
    border-radius: 6px;
}

/* --- نوع ویزیت (حضوری / آنلاین) --- */
.eab-visit-types {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.eab-visit-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 1px solid #cfcfcf;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    transition: border-color .15s, background .15s;
}

.eab-visit-option:hover {
    border-color: #7aa7c7;
    background: #eef4fa;
}

.eab-visit-option:has(input:checked) {
    border-color: #2271b1;
    background: #eef4fa;
    box-shadow: inset 0 0 0 1px #2271b1;
}

.eab-visit-option input {
    margin: 0;
}

.eab-visit-note {
    background: #eef4fa;
    border: 1px solid #cfe0ef;
    border-radius: 8px;
    padding: 10px 12px;
    color: #1d4e7e;
}

.eab-meeting-link a {
    font-weight: 700;
}

/* --- تقویم --- */
.eab-cal-section {
    margin-bottom: 14px;
}

.eab-cal-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.eab-cal-title {
    font-weight: 700;
    font-size: 16px;
}

.eab-nav {
    width: 34px;
    height: 34px;
    border: 1px solid #cfcfcf;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.eab-nav:hover:not(:disabled) {
    background: #f0f0f0;
}

.eab-nav:disabled {
    opacity: .35;
    cursor: default;
}

.eab-weekdays,
.eab-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    direction: rtl;
}

.eab-weekdays span {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #777;
    padding: 4px 0;
}

.eab-weekdays span:last-child {
    color: #c0392b; /* جمعه */
}

.eab-day {
    aspect-ratio: 1 / 1;
    min-height: 38px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
}

.eab-day.eab-blank {
    border: none;
    background: transparent;
    cursor: default;
}

.eab-day.eab-disabled {
    color: #c3c3c3;
    background: #f5f5f5;
    cursor: default;
}

.eab-day.eab-today {
    border-color: #7aa7c7;
    box-shadow: inset 0 0 0 1px #7aa7c7;
}

.eab-day:not(.eab-disabled):hover {
    background: #eef4fa;
    border-color: #7aa7c7;
}

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

/* --- ساعت‌ها --- */
.eab-slots-title {
    font-weight: 700;
    margin-bottom: 8px;
}

.eab-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.eab-slot {
    min-width: 72px;
    padding: 9px 12px;
    border: 1px solid #cfcfcf;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 15px;
}

.eab-slot:hover {
    border-color: #2271b1;
    background: #eef4fa;
}

.eab-slot-selected,
.eab-slot.eab-slot-selected:hover {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
    font-weight: 700;
}

.eab-noslots,
.eab-loading {
    color: #777;
    padding: 8px 0;
}

/* --- وضعیت --- */
.eab-widget > .eab-selected {
    margin-top: 14px;
    padding: 10px 12px;
    background: #e8f6ee;
    border: 1px solid #bfe6cf;
    border-radius: 8px;
    color: #1c7c3c;
    font-weight: 600;
}

.eab-error {
    margin-top: 12px;
    padding: 10px 12px;
    background: #fdecea;
    border: 1px solid #f2b8b5;
    border-radius: 8px;
    color: #b32d2e;
}

.eab-conn-error {
    margin-bottom: 10px;
}
