/* کانتینر اصلی */
.wc-inst-wrapper {
    background: #fff;
    padding: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.wc-inst-heading {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
    font-weight: 700;
}

/* گرید کارت‌ها */
.wc-inst-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* استایل هر کارت */
.wc-inst-card {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fcfcfc;
    position: relative;
}

.wc-inst-card:hover {
    border-color: #b0b0b0;
    transform: translateY(-2px);
}

/* آیکون */
.wc-inst-icon-box {
    width: 40px;
    height: 40px;
    background: #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    color: #555;
    transition: all 0.3s;
}

.wc-inst-content {
    flex-grow: 1;
}

.wc-inst-title {
    display: block;
    font-weight: 700;
    font-size: 15px;
    color: #333;
}

.wc-inst-desc {
    display: block;
    font-size: 12px;
    color: #777;
    margin-top: 3px;
}

/* دایره انتخاب (Check Circle) */
.wc-inst-check {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    position: relative;
}

.wc-inst-check::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px;
    height: 10px;
    background: #39469E;
    border-radius: 50%;
    transition: transform 0.2s;
}

/* --- حالت فعال (Selected) --- */
.wc-inst-card.selected {
    border-color: #39469E;
    background-color: #f4f6ff; /* آبی خیلی کمرنگ */
}

.wc-inst-card.selected .wc-inst-icon-box {
    background-color: #39469E;
    color: #FAE88A; /* زرد */
}

.wc-inst-card.selected .wc-inst-title {
    color: #39469E;
}

.wc-inst-card.selected .wc-inst-check {
    border-color: #39469E;
}

.wc-inst-card.selected .wc-inst-check::after {
    transform: translate(-50%, -50%) scale(1);
}

/* --- لودینگ (Overlay) --- */
#wc_inst_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    font-weight: bold;
    color: #39469E;
    backdrop-filter: blur(2px);
}

.wc-inst-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(57, 70, 158, 0.3);
    border-radius: 50%;
    border-top-color: #39469E;
    animation: wc-spin 1s ease-in-out infinite;
    margin-bottom: 10px;
}

@keyframes wc-spin {
    to { transform: rotate(360deg); }
}

/* ریسپانسیو */
@media screen and (max-width: 600px) {
    .wc-inst-grid {
        grid-template-columns: 1fr;
    }
}

/* استایل جدول محصول (بدون تغییر اما برای تکمیل پکیج) */
.wc-inst-comparison-wrapper { margin: 30px 0; font-family: inherit; }
.wc-inst-scroll { overflow-x: auto; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.wc-inst-table { width: 100%; border-collapse: collapse; background: #fff; margin: 0; border: 1px solid #eee; }
.wc-inst-table th { background: #39469E; color: #fff; padding: 15px; text-align: center; font-weight: 500; }
.wc-inst-table td { padding: 12px 15px; text-align: center; border-bottom: 1px solid #f1f1f1; color: #444; }
.wc-inst-table tr.highlight-blue { background: #39469E; color:#fff;}
.wc-inst-table tr.highlight-yellow td { background-color: #FAE88A; color: #333; font-weight: bold; }