/* ===== Injected: Service Widget ===== */
.count-item {
    font-size: 1.8rem;
    background: #fbff00;
    padding: 0.3rem 0.5rem;
    color: #000 !important;
    border-radius: 10px;
    font-weight: bold;
}

.wrapper-service {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 10px;
    margin-top: 1.3rem;
    border: 3px solid #fbff00;
    padding: 0.8rem;
}

.status-wrapper,
.status-wrapper-mem {
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-wrapper p {
    margin-right: 0.6rem !important;
}

.item-service {
    margin-right: 3rem;
}

.item-service:last-child {
    margin-right: 0;
}

.item-service h1 {
    font-size: 1rem;
    margin-top: 3px !important;
    margin-bottom: 0px;
    text-transform: uppercase;
    font-weight: bold !important;
}

.item-service p {
    color: #fff;
}

/* Google search block: centered icon + text */
.google-wrapper {
    background: #fff;
    padding: 1.7rem;
    width: 18rem;
    height: 0.5rem;
    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.google-wrapper > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.google-wrapper img {
    width: 2rem;
    display: block;
}

.google-wrapper p {
    margin: 0;
    text-transform: uppercase;
    font-size: 1.5rem !important;
    font-weight: bold !important;
    color: #000 !important;
}


/* ===== Injected: Transactions Widget ===== */
.wrap-all-trans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    justify-items: center;
}

.wrapper-transactions {
    width: 100%;
    max-width: 35rem;
    padding: 0.7rem;
    margin: 1rem 0;
    border-radius: 10px;
    border: 3px solid #fbff00;
    background: var(--result-background);
    box-sizing: border-box;
}

.text-centertitle {
    width: 100%;
    text-align: center;
    color: #ffffff;
    margin-top: 0;
    padding-bottom: 0.5rem;
    font-size: 1.15rem;
    font-weight: bold;
}

.content-trans {
    height: 15rem;
    overflow: hidden;
    position: relative;
}

.item-trans {
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    gap: 0.6rem;

    color: #fff;
    background: #5d4601;
    border: 2px solid #ffffff;
    border-radius: 5px;
    font-size: 1rem;
    padding: 0.4rem;
    margin-bottom: 0.45rem !important;

    animation: moveUp 40s linear infinite;
}

.avatar-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;

    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.avatar-trans {
    width: 2rem;
    flex-shrink: 0;
}

.rupiah-trans {
    flex: 0 0 auto;
    white-space: nowrap;
    font-weight: bold;
    color: #ffffff;
    padding-left: 0.5rem;
}


/* ===== Animation ===== */
@keyframes moveUp {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-1500px);
    }
}


/* ===== Responsive for injected widgets ===== */
@media only screen and (max-width: 1000px) {
    .wrap-all-trans {
        display: block;
    }

    .wrapper-transactions {
        max-width: 100%;
    }

    .menu-alternatif li {
        width: 100%;
        text-align: center;
        padding: 0.3rem;
        font-size: 1rem;
    }

    /* Center the whole top widget content on mobile */
    .wrapper-service {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 0.8rem;
    }

    /* Remove right-margins that were designed for desktop horizontal layout */
    .item-service {
        margin-right: 0;
        width: 100%;
    }

    /* Ensure inner rows are centered too */
    .status-wrapper,
    .status-wrapper-mem {
        justify-content: center;
        width: 100%;
    }

    /* Add spacing above "Ketik Di Google" line */
    .item-service p {
        margin-top: 0.6rem;
        margin-bottom: 0.4rem;
    }

    /* Center the google input block and prevent overflow */
    .google-wrapper {
        margin-top: 0.3rem;
        width: min(18rem, 100%);
        margin-left: auto;
        margin-right: auto;
    }
}
