/* ============================================= */
/* MOBILE DOWNLOAD APP BANNER - STYLES         */
/* ============================================= */

/* Import Poppins Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

/* Header adjustments for mobile */
@media (max-width: 640px) {
    .l-subheader.at_top {
        padding: 0 !important;
    }
}

/* Mobile Download Banner Container */
.download-app-container {
    display: none;
    width: 100vw;
    background: #F2F7FF;
    padding: 8px 15px;
    gap: 17px;
    position: relative;
    font-family: 'Poppins', sans-serif;
    border-bottom: 1px solid #D9E8FF;
    min-height: 52px;
    box-sizing: border-box;
}

.download-app-container.active {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Download GIF/Icon */
.download-gif {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-gif img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Download Text */
.download-text {
    flex: 1;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #000000;
    line-height: 18px;
    margin: 0;
    padding: 0 8px;
    min-width: 0;
    overflow: hidden;
}

.download-text p {
    margin: 0;
    padding: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
}

/* Download Actions Container (Button + Close) */
.download-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Download Button */
.download-button {
    flex-shrink: 0;
}

.download-button a {
    display: inline-flex !important;
    background: #0066ff;
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 10px !important;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    white-space: nowrap;
    transition: background 0.3s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 102, 255, 0.3);
    user-select: none;
    -webkit-user-select: none;
    gap: 8px;
    max-width: 100px;
    max-height: 25px;
    justify-content: center;
    margin:0 !important;
}

.download-button a:active {
    background: #0052cc;
}

.download-button a:hover {
    background: #0052cc;
}

/* Close Button */
.download-close-button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #1C1D1F;
    transition: color 0.3s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    user-select: none;
    -webkit-user-select: none;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

/* Increase touch target area on mobile */
.download-close-button-icon::before {
    content: '';
    position: absolute;
    top: -8px;
    right: -8px;
    bottom: -8px;
    left: -8px;
}

.download-close-button-icon:active {
    color: #000;
}

.download-close-button-icon svg {
    width: 10px;
    height: 10px;
    pointer-events: none;
}

/* ============================================= */
/* RESPONSIVE - VARIOUS MOBILE DEVICES          */
/* ============================================= */

/* Medium Phones (390px and below) */
@media (max-width: 390px) {
    .download-app-container {
        padding: 7px 12px;
        gap: 10px;
        min-height: 48px;
    }
    
    .download-gif {
        width: 32px;
        height: 32px;
    }
    
    .download-text {
        font-size: 11px;
        line-height: 16px;
        padding: 0 6px;
    }
    
    .download-actions {
        gap: 8px;
    }
    
    .download-button a {
        font-size: 9px;
        padding: 7px 10px;
    }
}

/* Small Phones (360px and below) */
@media (max-width: 360px) {
    .download-app-container {
        padding: 6px 10px;
        gap: 8px;
        min-height: 44px;
    }
    
    .download-gif {
        width: 28px;
        height: 28px;
    }
    
    .download-text {
        font-size: 10px;
        line-height: 14px;
        padding: 0 4px;
    }
    
    .download-button a {
        font-size: 8px;
        padding: 6px 8px;
        max-width: 85px;
    }
    
    .download-close-button-icon {
        width: 18px;
        height: 18px;
        min-width: 18px;
        min-height: 18px;
    }
    
    .download-close-button-icon svg {
        width: 9px;
        height: 9px;
    }
}

/* Very Small Phones (320px and below) */
@media (max-width: 320px) {
    .download-app-container {
        padding: 5px 8px;
        gap: 6px;
        min-height: 40px;
    }
    
    .download-gif {
        width: 24px;
        height: 24px;
    }
    
    .download-text {
        font-size: 9px;
        line-height: 13px;
        padding: 0 4px;
    }
    
    .download-actions {
        gap: 6px;
    }
    
    .download-button a {
        font-size: 7px;
        padding: 5px 7px;
        max-width: 75px;
    }
    
    .download-close-button-icon {
        width: 16px;
        height: 16px;
        min-width: 16px;
        min-height: 16px;
    }
    
    .download-close-button-icon svg {
        width: 8px;
        height: 8px;
    }
}
