/* دکمه‌های استعلام سیاه و سفید */
.olet-btn-black {
    background-color: #000 !important;
    color: #fff !important;
    border: 1px solid #000 !important;
    font-weight: bold !important;
    transition: all 0.3s ease;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
}

.olet-btn-black:hover {
    background-color: #333 !important;
    color: #fff !important;
    transform: translateY(-1px);
}

/* دکمه لینک متنی در صفحه سبد خرید */
.olet-text-link {
    background: none !important;
    border: none !important;
    color: #333 !important;
    text-decoration: underline !important;
    font-weight: bold !important;
    cursor: pointer;
    padding: 0 10px !important;
    display: inline-block;
    vertical-align: middle;
    transition: color 0.3s ease;
}

/* افکت هاور قرمز برای دکمه سبد خرید */
.olet-text-link:hover {
    color: #e74c3c !important; /* رنگ قرمز */
    text-decoration: none !important;
}

/* دکمه مینی کارت */
.olet-btn-small {
    font-size: 11px !important;
    padding: 8px 10px !important;
    width: 100% !important;
    margin-top: 5px !important;
    display: block;
    clear: both;
}

/* بج نوتیفیکیشن در منو */
.olet-badge {
    background-color: #e74c3c;
    color: white;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 5px;
    font-weight: bold;
    display: inline-block;
    line-height: 1.4;
}

/* استایل جدول جزئیات */
.olet-inquiry-details th, .olet-inquiry-details td {
    vertical-align: middle !important;
}

.olet-thumb img {
    border-radius: 4px;
    border: 1px solid #eee;
    width: 50px;
    height: auto;
}

.row-approved {
    background-color: #f0fff4; /* سبز کمرنگ */
}

.row-rejected {
    background-color: #fff5f5; /* قرمز کمرنگ */
    opacity: 0.8;
}

.new-tag {
    background: #e74c3c;
    color: white;
    font-size: 9px;
    padding: 2px 4px;
    border-radius: 3px;
    margin-right: 5px;
}

/* باکس محصول جایگزین - استایل جدید (فلکس باکس) */
.olet-alt-product {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: 2px dashed #27ae60;
    padding: 8px;
    margin-top: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* لینک دربرگیرنده عکس و متن */
.olet-alt-link {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    flex-grow: 1;
}

.olet-alt-link:hover .alt-title {
    color: #27ae60;
    text-decoration: underline;
}

.olet-alt-img {
    flex-shrink: 0;
    margin-left: 10px;
}

.olet-alt-img img {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    object-fit: cover;
    border: 1px solid #eee;
}

.alt-details {
    display: flex;
    flex-direction: column;
}

.alt-label {
    font-size: 10px;
    color: #27ae60;
    font-weight: bold;
}

.alt-title {
    font-size: 12px;
    font-weight: bold;
    color: #333;
    line-height: 1.3;
    transition: color 0.2s;
}

.alt-price {
    font-size: 11px;
    color: #555;
    font-weight: normal;
}

.alt-action {
    margin-right: 10px;
}

.olet-mini-btn {
    font-size: 10px !important;
    padding: 4px 8px !important;
    line-height: 1 !important;
    border-radius: 4px;
    text-decoration: none !important;
    text-align: center;
}

.olet-mini-btn.add-cart {
    background: #000;
    color: #fff;
    border: 1px solid #000;
    white-space: nowrap;
}
.olet-mini-btn.add-cart:hover {
    background: #333;
}

.olet-actions {
    margin-top: 20px;
    text-align: left;
}

/* --- سیستم پاپ‌آپ (Modal) --- */
.olet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.olet-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    width: 90%;
    max-width: 500px;
    padding: 25px;
    border-radius: 8px;
    z-index: 99999;
    display: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    text-align: center;
    font-family: inherit;
}

.olet-modal h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

.olet-close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.olet-close-modal:hover {
    color: #000;
}

.olet-popup-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    text-align: right;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.olet-popup-list li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px dashed #f1f1f1;
    padding-bottom: 5px;
}

.olet-popup-list img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    margin-left: 10px;
    object-fit: cover;
}

.olet-disclaimer {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: justify;
}

.olet-modal-btns {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.olet-modal-btns .button {
    width: 100%;
}

/* --- تولتیپ --- */
.olet-tooltip {
    position: relative;
}

.olet-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s;
    pointer-events: none;
    margin-bottom: 8px;
    z-index: 10;
}

.olet-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

.olet-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    margin-bottom: -2px;
    transition: opacity 0.2s;
    z-index: 10;
}

.olet-tooltip:hover::before {
    opacity: 1;
    visibility: visible;
}