/* ============================================
   GALAXY FOLD - SMALL SCREEN STYLES
   ============================================ */
@media (max-width: 280px) and (max-height: 653px) {
    .galaxy_fold {
        font-size: 9px;
    }
    .galaxy_logo {
        width: 24px;
        height: 24px;
    }
    .galaxy_text {
        font-size: 10px;
    }
    .galaxy_menu {
        width: 24px;
        height: 24px;
    }
}

/* ============================================
   GROUP BAR - TOP NAV BAR
   ============================================ */

/* Desktop title font size */
@media (min-width: 1024px) {
    #group-bar .title {
        font-size: 1.125rem; /* text-lg */
    }
}

#group-bar {
    overflow: hidden;
}

/* Mobile view adjustments */
@media (max-width: 1023px) {
    #group-bar {
        padding: 10px 4px;
    }

    #group-bar a {
        font-size: 0.875rem;
        padding: 0 4px;
        white-space: nowrap;
    }

    #group-bar .text-gray-400 {
        font-size: 0.875rem;
        padding: 0 2px;
    }

    .delbar {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px 8px;

	}

    /* Hide desktop separators on mobile */
    #group-trade-account-bar,
    #group-support-bar,
    #group-export-enquiries-bar {
        display: none;
    }
}

/* Very small screens (Galaxy Fold) */
@media (max-width: 280px) {
    #group-bar a {
        font-size: 0.75rem;
    }

    #group-bar .text-gray-400 {
        font-size: 0.75rem;
    }
}

/* ============================================
   VOICE SEARCH - MIC BUTTON
   ============================================ */

/* Input padding for mic */
input[name="q"],
#search,
.header-search input {
    padding-right: 3rem !important;
}

/* Button default style */
#voiceSearchBtn {
    position: absolute;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    cursor: pointer;
    background: #f3f4f6;
    border-radius: 50%;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.2s;
    border: none;
}

/* Mic icon default */
.mic-icon {
    width: 24px;
    height: 24px;
    stroke: #000;
    fill: none;
    transition: stroke 0.3s ease;
}

/* Listening state: blue bg + pulsing mic */
#voiceSearchBtn.listening {
    background: #2563EB;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.3);
    animation: pulse 1.2s infinite;
}

#voiceSearchBtn.listening .mic-icon {
    stroke: #ffffff;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.3); }
    50%       { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.15); }
}

/* ============================================
   DESKTOP GET APP ICON
   ============================================ */
.get-app-icon {
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIj4KICA8ZyBjbGlwLXBhdGg9InVybCgjY2xpcDBfMTE1NzBfODc5OTgpIj4KICAgIDxwYXRoIGQ9Ik0xOCAyMC4yNVYzLjc1QzE4IDIuOTIxNTcgMTcuMzI4NCAyLjI1IDE2LjUgMi4yNUw3LjUgMi4yNUM2LjY3MTU3IDIuMjUgNiAyLjkyMTU3IDYgMy43NUw2IDIwLjI1QzYgMjEuMDc4NCA2LjY3MTU3IDIxLjc1IDcuNSAyMS43NUgxNi41QzE3LjMyODQgMjEuNzUgMTggMjEuMDc4NCAxOCAyMC4yNVoiIHN0cm9rZT0iYmxhY2siIHN0cm9rZS13aWR0aD0iMS40IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KICAgIDxwYXRoIGQ9Ik0xMiAxMC4xMDU1TDEyIDE3LjYwNTUiIHN0cm9rZT0iYmxhY2siIHN0cm9rZS13aWR0aD0iMS40IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KICAgIDxwYXRoIGQ9Ik05Ljc1IDE1LjM1NTVMMTIgMTcuNjA1NUwxNC4yNSAxNS4zNTU1IiBzdHJva2U9ImJsYWNrIiBzdHJva2Utd2lkdGg9IjEuNCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CiAgICA8cGF0aCBkPSJNMTAuNSA0LjVIMTMuNSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIxLjQiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPgogIDwvZz4KICA8ZGVmcz4KICAgIDxjbGlwUGF0aCBpZD0iY2xpcDBfMTE1NzBfODc5OTgiPgogICAgICA8cmVjdCB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9IndoaXRlIi8+CiAgICA8L2NsaXBQYXRoPgogIDwvZGVmcz4KPC9zdmc+Cg==') center center / 24px 24px no-repeat;
    color: white;
    border: none;
    padding: 0;
    border-radius: 8px;
    cursor: pointer;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    margin-left: 15px;
    flex-shrink: 0;
    position: relative;
}

.get-app-icon:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Hide desktop icon on mobile */
@media (max-width: 915px) {
    .get-app-icon {
        display: none;
    }
}

/* ============================================
   MOBILE GET APP BUTTON (Near Search Bar)
   ============================================ */
.mobile-get-app-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    padding: 4px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mobile-app-icon {
    width: 24px;
    height: 24px;
    color: #1e293b;
}

.mobile-get-app-text {
    font-size: 11px;
    margin-top: 2px;
    font-weight: 500;
    white-space: nowrap;
    color: #000000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    letter-spacing: 0.3px;
}

/* Mobile search wrapper adjustment */
@media (max-width: 915px) {
    #mobile-search-wrapper {
        position: relative;
        flex: 1;
        min-width: 0;
    }

    #mobile-search-wrapper input,
    #search-form-mobile input {
        width: 100%;
        padding-right: 10px !important;
        padding-left: 10px !important;
    }
}

/* ============================================
   GET APP POPUP MODAL
   ============================================ */
.app-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.app-popup-overlay.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-popup-content {
    background: white;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    padding: 30px 20px;
    position: relative;
    animation: slideUp 0.3s ease;
    text-align: center;
}

.app-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.app-popup-close:hover {
    background: #f0f0f0;
    color: #333;
}

.qr-code-container {
    margin: 20px auto;
    padding: 15px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    display: inline-block;
}

.qr-code-container canvas,
.qr-code-container img {
    width: 200px !important;
    height: 200px !important;
    display: block;
}

.store-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.store-btn {
    display: inline-block;
    transition: transform 0.2s;
}

.store-btn:hover {
    transform: scale(1.05);
}

.store-btn img {
    height: 48px;
    width: auto;
}

.popup-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.popup-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gentlePulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.15); }
}