/* کانتینر اصلی */
.tw-noon-container {
    font-family: inherit; margin: 25px 0; direction: rtl; position: relative;
    box-sizing: border-box; width: 100%; display: block !important;
}
.tw-noon-container * { box-sizing: border-box; }
.tw-noon-container.waiting-for-variation { opacity: 0.6; cursor: not-allowed; }

/* هدر */
.tw-noon-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; flex-wrap: wrap; gap: 10px; }
.tw-noon-header h3 { font-size: 16px; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 8px; color: #333; }

/* انیمیشن */
.tw-nudge-wrapper { height: 20px; overflow: hidden; color: #777; font-size: 12px; line-height: 20px; }
.tw-nudge-track { animation: nudgeUp 12s infinite cubic-bezier(0.65, 0, 0.35, 1); }
.tw-nudge-item { height: 20px; display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.tw-nudge-item i { color: #38ae04; font-size: 11px; }
@keyframes nudgeUp { 
    0%, 20% { transform: translateY(0); } 25%, 45% { transform: translateY(-20px); } 
    50%, 70% { transform: translateY(-40px); } 75%, 95% { transform: translateY(-60px); } 
}

/* اسلایدر */
.tw-noon-slider-wrapper {
    position: relative;
    width: 100%;
    /* پیش‌فرض: توسط المنتور بازنویسی می‌شود */
    padding: 0 40px; 
    overflow: visible !important; 
}

.tw-noon-slider {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    /* پیش‌فرض: توسط المنتور بازنویسی می‌شود */
    gap: 15px; 
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 5px 20px 5px;
    scrollbar-width: none;
    align-items: stretch;
}
.tw-noon-slider::-webkit-scrollbar { display: none; }

/* دکمه‌های نویگیشن */
.tw-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    width: 35px;
    height: 35px;
    background: #fff;
    border: 1px solid #e2e5f1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    color: #555;
    transition: all 0.3s ease;
    opacity: 1; 
    pointer-events: auto;
}

.tw-nav-btn:hover {
    color: #3866df;
    border-color: #3866df;
    box-shadow: 0 5px 15px rgba(56, 102, 223, 0.2);
}

.tw-nav-btn.prev { right: 0; }
.tw-nav-btn.next { left: 0; }

/* کارت */
.tw-noon-card {
    border: 1px solid #e2e5f1;
    display: flex; flex-direction: column; justify-content: space-between;
    position: relative; transition: all 0.2s ease; background: #fff; z-index: 1;
    /* پیش‌فرض: توسط المنتور بازنویسی می‌شود */
    padding: 16px; 
}
.tw-noon-card:hover { border-color: #999; box-shadow: 0 5px 15px rgba(0,0,0,0.08); }
.tw-noon-card.selected { 
    border: 2px solid #3866df; 
    background-color: #f7f9ff; 
    /* پدینگ در حالت سلکت نباید تغییر کند تا کارت نپرد */
    padding: 16px; 
}

/* محتویات کارت */
.tw-card-top { display: flex; gap: 10px; margin-bottom: 12px; position: relative; padding-left: 25px; }
.tw-card-img { display: flex; align-items: center; justify-content: center; overflow: hidden; background: #f4f6f8; border-radius: 8px; flex-shrink: 0; }
.tw-card-img img { width: 100%; height: 100%; object-fit: contain; }
.tw-card-img i { color: #3866df; font-size: 20px; }

.tw-card-titles { display: flex; flex-direction: column; flex: 1; min-width: 0; justify-content: center; }
.tw-duration-tag { font-size: 10px; font-weight: 800; color: #3866df; background: #eef2ff; padding: 2px 6px; border-radius: 4px; width: fit-content; margin-bottom: 4px; }
.tw-plan-title { font-size: 13px; margin: 0; font-weight: 700; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* آیکون اطلاعات */
.tw-info-trigger { position: absolute; left: 0; top: 0; cursor: pointer; color: #bbb; padding: 0; z-index: 20; display: flex; align-items: center; justify-content: center; }
.tw-info-trigger:hover { color: #3866df; }
.tw-hidden-terms { display: none !important; }

/* ویژگی‌ها و فوتر */
.tw-card-features { margin-bottom: 15px; flex-grow: 1; }
.tw-feat-item { display: flex; gap: 8px; font-size: 11px; color: #666; margin-bottom: 5px; align-items: center; }
.tw-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; border-top: 1px solid #f5f5f5; padding-top: 12px; }
.tw-card-price { font-weight: 800; font-size: 14px; color: #333; direction: ltr; }

/* دکمه انتخاب - استایل پایه */
.tw-select-btn-noon { 
    background: #fff; 
    border: 1px solid #3866df; 
    color: #3866df; 
    padding: 5px 15px; 
    border-radius: 4px; 
    font-weight: 700; 
    font-size: 12px; 
    cursor: pointer; 
    transition: all 0.2s; 
    position: relative; 
    z-index: 10; 
}

/* حالت انتخاب شده - استایل پایه */
.tw-noon-card.selected .tw-select-btn-noon { 
    background: #3866df; 
    color: #fff; 
    border-color: #3866df;
}

/* Off-Canvas */
.tw-offcanvas-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 99998; display: none; }
.tw-offcanvas-overlay.open { display: block; }
.tw-offcanvas-panel { position: fixed; top: 0; right: -100%; width: 300px; height: 100%; background: #fff; z-index: 99999; transition: right 0.3s; display: flex; flex-direction: column; direction: rtl; box-shadow: -5px 0 20px rgba(0,0,0,0.2); }
.tw-offcanvas-panel.open { right: 0; }
.tw-offcanvas-header { padding: 15px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; background: #f9f9f9; }
.tw-offcanvas-body { padding: 20px; overflow-y: auto; flex: 1; font-size: 13px; line-height: 1.6; color: #444; }
.tw-close-offcanvas { background: none; border: none; font-size: 20px; cursor: pointer; color: #666; }

/* فونت آیکون */
.tw-info-trigger i, .tw-nav-btn i, .tw-feat-item i { font-family: "Font Awesome 5 Free", "Font Awesome 5 Pro", "FontAwesome" !important; font-weight: 900 !important; font-style: normal; }