@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

/* Global styles for Portal */
.zdt-portal-wrapper {
    font-family: 'Montserrat', sans-serif;
    color: #2D3748;
    max-width: 100%; /* Changed from 800px to 100% for full width */
    margin: 0 auto;
}
.zdt-portal-wrapper table, 
.zdt-portal-wrapper td, 
.zdt-portal-wrapper th { 
    border: none !important; 
}

/* Info Box - Glassmorphism Style */
.zdt-info-box {
    background: #ffffff;
    border: none; /* Removed border */
    margin-bottom: 40px;
    padding: 35px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

.zdt-info-box h3 {
    font-size: 20px !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px;
    color: #1a202c;
    margin-bottom: 30px !important;
    padding-bottom: 12px !important;
    border-bottom: 3px solid #ff1493 !important;
    display: table !important;
}

/* Table Design */
.zdt-table-wrapper {
    border-radius: 16px;
    overflow: hidden;
    border: none; /* Removed border */
    background: #f8fafc;
}

.zdt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.zdt-table td {
    padding: 18px 25px !important;
    border: none !important;
    vertical-align: middle;
}

.zdt-table tr:last-child td {
    border-bottom: none !important;
}

.zdt-table td .label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 4px;
}

.zdt-table strong {
    display: block;
    color: #1e293b;
    font-weight: 700;
    font-size: 15px;
}

/* Timeline Box */
.zdt-timeline-box {
    position: relative;
    padding-left: 33px;
    margin-top: 50px;
    display: flex;
    flex-direction: column;
}

.zdt-timeline-box::before {
    content: '';
    position: absolute;
    left: 6px;
    /* Perfect center for 14px node */
    top: 15px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(180deg, #ff1493 0%, #e2e8f0 100%);
}

.zdt-timeline-item {
    position: relative;
    padding-bottom: 40px;
}

.zdt-timeline-item::before {
    content: '';
    position: absolute;
    left: -33px;
    /* -40px container padding - (14px node / 2) + offset adjustment */
    top: 10px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #e2e8f0;
    z-index: 2;
    transition: all 0.3s;
}

.zdt-timeline-item:first-child::before {
    border-color: #ff1493;
    background: #ff1493;
    box-shadow: 0 0 0 5px rgba(255, 20, 147, 0.2);
    left: -33px;
}

/* DESKTOP HORIZONTAL STYLE */
@media screen and (min-width: 768px) {
    .zdt-timeline-box {
        flex-direction: row-reverse; /* Newest first on the left, or row for oldest first */
        justify-content: space-between;
        padding-left: 0;
        margin-top: 80px;
        padding-top: 30px;
    }

    /* Adjust the line to be horizontal */
    .zdt-timeline-box::before {
        left: 0;
        right: 0;
        top: 36px; /* Align with node center */
        bottom: auto;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, #e2e8f0 0%, #ff1493 100%);
    }

    .zdt-timeline-item {
        flex: 1;
        padding-bottom: 0;
        padding-top: 55px;
        text-align: center;
    }

    .zdt-timeline-item::before {
        left: 50%;
        transform: translateX(-50%);
        top: 0;
    }

    .zdt-timeline-item:first-child::before {
        left: 50%;
    }

    /* Content adjustments for horizontal */
    .zdt-timeline-status-text {
        font-size: 12px; /* Smoother/smaller for desktop horizontal */
    }
    
    .zdt-time {
        display: block;
        margin: 5px auto 0;
        width: fit-content;
    }

    /* Keep Shipping/Packing options below the item but controlled */
    .zdt-shipping-extra, .zdt-img-wrap {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 250px;
        z-index: 10;
        background: #fff;
        padding: 15px;
        border-radius: 12px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.05);
        margin-top: 15px;
    }
}

.zdt-timeline-status-text {
    font-size: 14px; /* Reduced from 17px */
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 5px;
    text-transform: uppercase;
    display: block;
}

.zdt-status-confirmed {
    color: #ff1493 !important;
}

.zdt-time {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

/* Buttons */
.zdt-track-btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #ff1493 0%, #ff69b4 100%);
    color: #fff !important;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 10px 20px rgba(255, 20, 147, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.zdt-track-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(255, 20, 147, 0.3);
}

/* Images */
.zdt-img-wrap img {
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    margin-top: 15px;
}

.zdt-img-wrap img:hover {
    transform: scale(1.02);
}