/* ========================================
   FOOTER CSS - Free Floating Elements
   ======================================== */

.footer-floating {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 8px 15px;
    z-index: 9999;
    pointer-events: none;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: auto;
}

.footer-right {
    display: flex;
    align-items: center;
    pointer-events: auto;
}

.footer-label {
    font-family: var(--font-pixel);
    font-size: 0.8rem;
    color: var(--white);
    white-space: nowrap;
}

.footer-count {
    font-family: var(--font-pixel);
    font-size: 0.85rem;
    color: var(--white);
    font-weight: bold;
}

.footer-form {
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-input {
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-family: var(--font-pixel);
    font-size: 0.7rem;
    width: 130px;
    background: rgba(255, 255, 255, 0.9);
}

.footer-submit {
    padding: 4px 10px;
    background: #333;
    color: #fff;
    border: 1px solid #555;
    border-radius: 3px;
    font-family: var(--font-pixel);
    font-size: 0.7rem;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.footer-submit:hover {
    background: #555;
}

/* ---- Tablet ---- */
@media (max-width: 768px) {
    .footer-floating {
        padding: 6px 12px;
    }

    .footer-label {
        font-size: 0.7rem;
    }

    .footer-count {
        font-size: 0.75rem;
    }

    .footer-input {
        width: 110px;
        font-size: 0.65rem;
        padding: 3px 6px;
    }

    .footer-submit {
        font-size: 0.65rem;
        padding: 3px 8px;
    }

    .btn-red {
        padding: 4px 10px;
        font-size: 0.7rem;
    }

    .btn-red img {
        width: 12px;
        height: 12px;
    }
}

/* ---- Mobile ---- */
@media (max-width: 480px) {
    .footer-floating {
        padding: 5px 8px;
    }

    .footer-left {
        gap: 4px;
    }

    .footer-label {
        font-size: 0.6rem;
    }

    .footer-count {
        font-size: 0.65rem;
    }

    .footer-form {
        gap: 3px;
    }

    .footer-input {
        width: 80px;
        font-size: 0.55rem;
        padding: 3px 5px;
    }

    .footer-submit {
        font-size: 0.55rem;
        padding: 3px 6px;
    }

    .btn-red {
        padding: 3px 8px;
        font-size: 0.6rem;
        border-width: 1px;
    }

    .btn-red img {
        width: 10px;
        height: 10px;
    }
}

/* ---- Very small screens ---- */
@media (max-width: 360px) {
    .footer-floating {
        justify-content: center;
        gap: 10px;
    }

    .footer-right {
        display: none;
    }

    .footer-label {
        font-size: 0.55rem;
    }

    .footer-count {
        font-size: 0.6rem;
    }
}
