/* انتخابگر تاریخ شمسی به سبک چرخ (مشابه اندروید) — فقط در وب‌اپ iOS */

.sp-ios-jw-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10060;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.sp-ios-jw-backdrop.sp-ios-jw-open {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sp-ios-jw-dialog {
    width: 100%;
    max-width: 360px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    transform: translateY(12px);
    transition: transform 0.22s ease;
}

.sp-ios-jw-backdrop.sp-ios-jw-open .sp-ios-jw-dialog {
    transform: translateY(0);
}

.sp-ios-jw-title {
    padding: 18px 16px 12px;
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #3f3f46;
    text-align: center;
    line-height: 1.45;
}

.sp-ios-jw-frame {
    position: relative;
    height: 220px;
    margin: 0 8px;
}

.sp-ios-jw-frame::before,
.sp-ios-jw-frame::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    height: 1px;
    background: #c4c4c4;
    z-index: 2;
    pointer-events: none;
}

.sp-ios-jw-frame::before {
    top: calc(50% - 22px);
}

.sp-ios-jw-frame::after {
    top: calc(50% + 22px);
}

.sp-ios-jw-row {
    display: flex;
    flex-direction: row;
    direction: ltr;
    height: 100%;
    position: relative;
    z-index: 1;
}

.sp-ios-jw-col {
    flex: 1;
    min-width: 0;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.sp-ios-jw-col::-webkit-scrollbar {
    display: none;
}

.sp-ios-jw-pad {
    height: 88px;
    flex-shrink: 0;
}

.sp-ios-jw-item {
    height: 44px;
    line-height: 44px;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 600;
    color: #9ca3af;
    scroll-snap-align: center;
    flex-shrink: 0;
    user-select: none;
}

.sp-ios-jw-item.sp-ios-jw-item-near {
    color: #6b7280;
    font-size: 1rem;
}

.sp-ios-jw-item.sp-ios-jw-item-center {
    color: #1a1a2e;
    font-size: 1.12rem;
    font-weight: 800;
}

.sp-ios-jw-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 16px 16px;
    direction: rtl;
}

.sp-ios-jw-actions-spacer {
    flex: 1;
}

.sp-ios-jw-btn.sp-ios-jw-today {
    color: #64748B;
    font-weight: 600;
    margin-left: auto;
}

.sp-ios-jw-btn {
    border: none;
    background: none;
    padding: 10px 14px;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    color: #ff6b35;
    font-family: inherit;
}

.sp-ios-jw-btn:active {
    opacity: 0.75;
}
