
/* =========================================
   MOBILE SELF-SERVICE: TWO-COLUMN LAYOUT
   ========================================= */

#smitacs-self-service-mobile {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 12px;
    box-sizing: border-box;
    color: #172033;
}

#smitacs-self-service-mobile *,
#smitacs-self-service-mobile *::before,
#smitacs-self-service-mobile *::after {
    box-sizing: border-box;
}

#smitacs-self-service-mobile .ssm-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

/* Dua kolom: kategori dan data */
#smitacs-self-service-mobile .ss-form-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 10px;
    align-items: start;
}

/* Kolom */
#smitacs-self-service-mobile .ss-form-column {
    min-width: 0;
    width: 100%;
    padding: 10px;
    border: 1px solid #dbe5f5;
    border-radius: 12px;
    background: #fff;
}

/* Judul kolom */
#smitacs-self-service-mobile .ss-form-column h3 {
    font-size: 14px;
    line-height: 1.4;
    margin: 0 0 12px;
}

/* Kategori */
#smitacs-self-service-mobile .ss-category-column {
    grid-column: 1;
    grid-row: 1;
}

/* Produk dan data */
#smitacs-self-service-mobile .ss-data-column {
    grid-column: 2;
    grid-row: 1;
}

/* QRIS selebar layar, di bawah dua kolom */
#smitacs-self-service-mobile .ss-payment-column {
    grid-column: 1 / -1;
    grid-row: 2;
}

/* Jangan sampai input meluber */
#smitacs-self-service-mobile input,
#smitacs-self-service-mobile select,
#smitacs-self-service-mobile textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* Tombol QRIS memenuhi kolom pembayaran */
#smitacs-self-service-mobile button.ppob-pay-qris {
    width: 100%;
    min-height: 46px;
}

/* Gambar QRIS */
#smitacs-self-service-mobile img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

/* Layar sangat kecil */
@media (max-width: 360px) {
    #smitacs-self-service-mobile {
        padding: 8px;
    }

    #smitacs-self-service-mobile .ss-form-grid {
        gap: 6px;
    }

    #smitacs-self-service-mobile .ss-form-column {
        padding: 7px;
    }

    #smitacs-self-service-mobile .ss-form-column h3 {
        font-size: 12px;
    }
}



/* QRIS-only: sembunyikan tombol BELI SEKARANG */
#smitacs-self-service-mobile button[name="ppob_payment_submit_pulsa"],
#smitacs-self-service-mobile button.button-primary:not(.ppob-pay-qris) {
    display: none !important;
}

/* Tombol pembayaran QRIS tetap tampil */
#smitacs-self-service-mobile button.ppob-pay-qris {
    display: block !important;
    width: 100%;
    min-height: 46px;
}

