/* ================================ */
/* Modal Overlay & Animation        */
/* ================================ */
.modal-overlay { 
    display: none;
    position: fixed;
    top: 0;
    /* left: 0; */
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    align-items: center !important;
    justify-content: center !important;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 1;
    pointer-events: auto;
}

.modal {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #333;
    color: #fff;
    padding: 1rem;
    border-radius: 12px;
    width: 900px;
    min-width: 900px;
    max-height: 95%;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.4s ease;
    position: relative;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ================================ */
/* Modal Header                     */
/* ================================ */
.modal-header {
    display: flex;
    flex-direction: row !important;
    direction: ltr !important;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 600;
    color: var(--text-light);
    background: rgba(0, 0, 0, 0.1);
}

.modal-header .btn:hover {
    color: var(--main-color);
}

/* ================================ */
/* Modal Body Layout                */
/* ================================ */
.modal-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Main content */
.modal-main {
    flex: 1;
    padding: 18px;
    overflow-y: auto;
}

/* Tabs */
.modal-tabs {
    width: 300px;
    display: flex;
    flex-direction: row;
    padding: 12px;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.01), transparent);
    transition: all 0.3s;
    font-size: 16px;
    font-weight: 600;
}

/* 🟢 الوضع LTR (الإنجليزي) */
html[dir="ltr"] .modal-tabs {
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

/* 🔵 الوضع RTL (العربي) */
html[dir="rtl"] .modal-tabs {
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.tabs-list {
    display: flex;
    width: 100%;
    flex-direction: row;
    gap: 8px;
}

.modalpricing{
    margin-top:12px;
    display:flex;
    align-self: center;
    justify-content: center;
    gap:25px;
    flex-wrap:wrap
}

.hfont {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--danger-color);
    z-index: 1000;
}

.order-box{
    text-align: center;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 10px;
    border-radius: var(--border-radius);
    cursor: pointer;
    border: 1px solid transparent;
    color: var(--text-light);
    transition: all 0.2s ease-in-out;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
    background: var(--main-color);
    color: var(--light-color);
    border-color: var(--accent-color);
}

/* Tab content */
.tab-content {
    display: none;
    animation: fadeContent 0.3s ease;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 0 !important;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
}

@keyframes fadeContent {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================ */
/* Product Rows                     */
/* ================================ */
.product-row {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.01);
    margin-bottom: 10px;
    transition: background 0.2s;
}

.product-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.product-row img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
}

.product-meta {
    flex: 1;
    color: var(--text-light);
}

/* ================================ */
/* Responsive Behavior              */
/* ================================ */
@media (max-width: 900px) {
    .modal {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        flex-direction: column;
    }

    .modal-tabs {
        width: 100%;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        flex-direction: row;
        padding: 8px;
        overflow-x: auto;
    }

    .tabs-list {
        flex-direction: row;
    }

    .modal-main {
        padding: 12px;
    }
}

/* ---------------------------- */
/* 📌 tracking Input              */
/* ---------------------------- */
.tracking-input { 
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  background: var(--light-color);
  color: var(--text-dark);
  font-size: 14px;
  transition: all 0.3s ease;
}

.tracking-input:focus {
  border-color: var(--main-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 111, 97, 0.2);
}

/* small helpers */
.muted {
    color: var(--text-light);
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
}

.small {
    font-size: 14px;
}