/* =========================================================
   PBNTC VISITOR COUNTER
   สำหรับใช้งานภายใน Footer
========================================================= */

.visitor-counter {
    width: 100%;
    margin-top: 20px;
    color: #ffffff;
}

/* =========================================================
   TITLE
========================================================= */
.visitor-counter-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
}
.visitor-counter-title-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.visitor-counter-title-right {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
    text-align: right;
}

.visitor-counter-title-right i {
    color: #ffc107;
    font-size: 11px;
}

.visitor-counter-title-right strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* =========================================================
   GRID
========================================================= */

.visitor-counter-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 8px;

    width: 100%;
}


/* =========================================================
   ITEM
========================================================= */

.visitor-counter-item {
    display: flex;
    align-items: center;

    gap: 9px;

    min-width: 0;

    padding: 9px 10px;

    background: rgba(255, 255, 255, 0.08);

    border: 1px solid rgba(255, 255, 255, 0.15);

    border-radius: 8px;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


/* Hover */

.visitor-counter-item:hover {
    background: rgba(255, 255, 255, 0.14);

    transform: translateY(-1px);
}


/* =========================================================
   ICON
========================================================= */

.visitor-counter-icon {
    width: 32px;
    height: 32px;

    min-width: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px;

    background: rgba(255, 193, 7, 0.15);

    color: #ffc107;

    font-size: 14px;
}


/* =========================================================
   INFO
========================================================= */

.visitor-counter-info {
    min-width: 0;
}


/* Label */

.visitor-counter-label {
    margin-bottom: 1px;

    font-size: 12px;

    line-height: 1.2;

    color: rgba(255, 255, 255, 0.75);
}


/* Number */

.visitor-counter-number {
    font-size: 18px;

    line-height: 1.2;

    font-weight: 700;

    color: #ffffff;

    white-space: nowrap;
}





/* =========================================================
   LOADING
========================================================= */

.visitor-counter-loading {
    color: rgba(255, 255, 255, 0.5);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .visitor-counter {
        margin-top: 18px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .visitor-counter {
        max-width: 420px;

        margin-left: auto;
        margin-right: auto;
    }

    .visitor-counter-title {
        justify-content: center;

        font-size: 18px;
    }

    .visitor-counter-grid {
        gap: 8px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .visitor-counter-grid {
        grid-template-columns: 1fr;
    }

    .visitor-counter-item {
        padding: 9px 12px;
    }

    .visitor-counter-number {
        font-size: 17px;
    }

}