/* Warranty Banner on Product Page */
.ehabgroup-warranty-banner {
    margin: 15px 0;
    padding: 10px;
    border: 1px solid #eee;
    background-color: #fff;
    border-radius: 8px;
    display: inline-block;
    /* Or block depending on design preference */
    width: 100%;
    box-sizing: border-box;
}

.warranty-info-row {
    display: flex;
    align-items: center;
    width: 100%;
    /* Ensure full width */
    gap: 10px;
}

[dir="rtl"] .warranty-info-row {
    /* RTL direction handled by browser default for flex */
}

.warranty-logo {
    height: 30px;
    width: auto;
    object-fit: contain;
}

.warranty-title {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.warranty-more-link {
    font-size: 13px;
    color: #4a90e2;
    text-decoration: none;
    margin-left: auto;
    /* LTR: Push to right */
}

[dir="rtl"] .warranty-more-link {
    margin-left: 0;
    margin-right: auto;
    /* RTL: Push to left */
}

/* Modal Styling */
.ehabgroup-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
}

.ehabgroup-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 0;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    z-index: 1;
}

[dir="rtl"] .close-modal {
    float: left;
    right: auto;
    left: 20px;
}

.close-modal:hover,
.close-modal:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-header {
    display: flex;
    flex-shrink: 0;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem 1rem;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: calc(0.3rem - 1px);
    border-top-right-radius: calc(0.3rem - 1px);
    flex-direction: column;
}

.modal-header h2 {
    margin: 0;
    line-height: 1.5;
    font-size: 1.25rem;
    color: #2c3e50;
    font-weight: 500;
}

.modal-sub-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    /* Allow wrapping on small screens */
}

.modal-sub-header img {
    height: 25px;
    width: auto;
}

.modal-sub-header h3 {
    margin: 0;
    font-size: 16px;
    color: #e67e22;
    /* Matches design color often used */
    font-weight: normal;
    text-align: center;
    /* Center text if wrapped */
}

.modal-body {
    padding: 25px;
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    text-align: right;
    /* Assuming Arabic content */
    max-height: 60vh;
    overflow-y: auto;
}

[dir="ltr"] .modal-body {
    text-align: left;
}

.modal-body ul {
    list-style-type: disc;
    margin-right: 20px;
    margin-left: 0;
}

[dir="ltr"] .modal-body ul {
    margin-left: 20px;
    margin-right: 0;
}

.modal-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    background-color: #f9f9f9;
    text-align: center;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.modal-footer p {
    margin: 0;
    font-size: 12px;
    color: #888;
}