/* Floating Download App QR Widget */
.download-qr-floating-wrapper {
    position: fixed;
    right: 0;
    top: 45%;
    transform: translateY(-50%) translateX(calc(100% - 34px));
    z-index: 99995;
    display: flex;
    align-items: stretch;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    user-select: none;
}

/* Hover or JS Expanded State */
.download-qr-floating-wrapper:hover,
.download-qr-floating-wrapper.expanded-state {
    transform: translateY(-50%) translateX(0);
}

.download-qr-floating-wrapper.collapsed-state:not(:hover) {
    transform: translateY(-50%) translateX(calc(100% - 34px));
}

/* Left Vertical Handle Tab */
.download-qr-handle {
    width: 34px;
    background: linear-gradient(180deg, #1553c7 0%, #0a2761 100%);
    border-radius: 10px 0 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
    cursor: pointer;
    box-shadow: -4px 0 14px rgba(0, 0, 0, 0.22);
    color: #ffffff;
    gap: 6px;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.download-qr-handle:hover {
    background: linear-gradient(180deg, #195de6 0%, #0d317a 100%);
}

.download-qr-handle-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: #ffffff;
    text-transform: uppercase;
    white-space: nowrap;
}

.download-qr-handle-icon {
    font-size: 10px;
    transition: transform 0.35s ease;
    opacity: 0.8;
}

.download-qr-floating-wrapper:hover .download-qr-handle-icon,
.download-qr-floating-wrapper.expanded-state .download-qr-handle-icon {
    transform: rotate(180deg);
}

/* Dark Navy Content Card */
.download-qr-card {
    background: #0b1e38;
    background: linear-gradient(145deg, #0d2345 0%, #071529 100%);
    padding: 14px 16px 12px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: -10px 10px 30px rgba(0, 0, 0, 0.4);
    border-radius: 0 0 0 10px;
    min-width: 230px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.download-qr-title {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-align: center;
    width: 100%;
}

/* Two-column QR grid */
.download-qr-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 0;
}

.download-qr-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-decoration: none !important;
}

.download-qr-col-left {
    padding-right: 10px;
}

.download-qr-col-right {
    padding-left: 10px;
}

/* White QR Code container box */
.qr-code-box {
    background: #ffffff;
    border-radius: 8px;
    padding: 5px;
    width: 78px;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-qr-col:hover .qr-code-box {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.qr-code-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Label below QR box */
.qr-store-label {
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #ffffff;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.download-qr-col:hover .qr-store-label {
    color: #38bdf8;
}

.qr-store-label i {
    font-size: 12px;
}

.qr-store-label i.fa-google-play {
    font-size: 10px;
}

/* Vertical divider line between QR codes */
.download-qr-divider {
    width: 1px;
    height: 80px;
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.05) 100%);
    flex-shrink: 0;
}

/* Mobile responsive adjustments */
@media (max-width: 576px) {
    .download-qr-floating-wrapper {
        top: 38%;
        transform: translateY(-50%) translateX(calc(100% - 30px));
    }
    .download-qr-floating-wrapper.collapsed-state:not(:hover) {
        transform: translateY(-50%) translateX(calc(100% - 30px));
    }
    .download-qr-handle {
        width: 30px;
        padding: 10px 0;
    }
    .download-qr-handle-text {
        font-size: 9px;
        letter-spacing: 1px;
    }
    .download-qr-card {
        padding: 16px 16px 14px 16px;
        min-width: 270px;
    }
    .qr-code-box {
        width: 85px;
        height: 85px;
        padding: 6px;
    }
    .download-qr-col-left {
        padding-right: 10px;
    }
    .download-qr-col-right {
        padding-left: 10px;
    }
    .download-qr-divider {
        height: 90px;
    }
    .qr-store-label {
        font-size: 9px;
    }
}
