.wiw-wrapper {
    margin-top: 15px;
    margin-bottom: 15px;
    width: 100%;
}

.wiw-container {
    padding: 16px; 
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.wiw-content {
    position: relative;
    min-height: 50px;
}

.wiw-service-item {
    display: flex;
    align-items: center; /* تراز کردن عمودی تمامی المان‌ها در وسط */
    gap: 15px; /* فاصله اصولی بین لوگو و متن */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s;
}

.wiw-service-item.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.wiw-logo-wrapper {
    margin-right: 0;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex; /* برای وسط چین کردن دقیق خود عکس در کانتینرش */
    align-items: center;
    justify-content: center;
}

.wiw-logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
}

.wiw-text {
    flex-grow: 1;
    text-align: right; 
    display: flex;
    flex-direction: column;
    justify-content: center; /* تراز عمودی خود نوشته‌ها */
}

.wiw-price {
    font-weight: bold;
}

.wiw-desc {
    margin-top: 4px;
}

/* انیمیشن گذر نور */
.wiw-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation-name: shine-effect;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes shine-effect {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.wiw-click-message {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed #ccc;
    font-size: 12px;
    color: var(--wd-primary-color, #e0124c);
    text-align: center;
    font-weight: 500;
}

/* استایل‌های مربوط به موبایل */
@media (max-width: 768px) {
    .wiw-service-item {
        gap: 11px; /* کاهش فاصله بین لوگو و متن در موبایل برای جلوگیری از چسبیدگی */
    }
}