/* Container flex: bên trái form, bên phải thông tin & QR */
.momo-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 30px;
    flex-wrap: wrap; /* Cho phép xuống dòng trên mobile */
}

/* Bên trái: form nhập */
.momo-left {
    flex: 1;
    min-width: 300px; /* Đảm bảo form không quá hẹp */
}

/* Bên phải: thông tin đơn hàng + QR */
.momo-right {
    flex: 1;
    min-width: 300px; /* Đảm bảo QR không quá hẹp */
}

/* Form quyên góp */
.momo-donate-form {
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.momo-donate-form input[type="text"],
.momo-donate-form input[type="number"],
.momo-donate-form textarea {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 3px;
}
.momo-donate-form button[type="submit"] {
    width: 100%;
    padding: 12px;
    background: #a428b2; /* Màu MoMo */
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s;
}
.momo-donate-form button[type="submit"]:hover {
    background: #d82f93;
}


/* Thông báo lỗi */
.momo-error {
    color: #d9534f;
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

/* Khung Thông tin đơn hàng */
.momo-order-box {
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
}
.momo-order-box h3 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.momo-order-box p {
    margin: 8px 0;
    line-height: 1.6;
}
.momo-order-box p strong {
    width: 110px;
    display: inline-block;
    color: #555;
}

/* Khung QR Code */
.momo-qr-box {
    text-align: center;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}
.momo-qr-box img {
    max-width: 100%;
    height: auto;
    border: 5px solid #f0f0f0;
}
.momo-qr-box p {
    margin: 10px 0;
    font-weight: bold;
}

/* Bảng danh sách giao dịch [momo_donate_list] */
.momo-donate-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.momo-donate-table th,
.momo-donate-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}
.momo-donate-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}
.momo-donate-table tr:nth-child(even) {
    background-color: #f9f9f9;
}


/* --- CSS CHO CÁC TÍNH NĂNG MỚI --- */

/* Bộ đếm tổng tiền */
.momo-total-counter {
    font-size: 1.5em;
    font-weight: bold;
    color: #a428b2;
}

/* Khung trạng thái chiến dịch */
.momo-campaign-status-box {
    border: 1px solid #d82f93;
    border-radius: 5px;
    padding: 20px;
    margin: 25px 0;
    background: #fff0f7;
}

.momo-campaign-raised {
    font-size: 1.2em;
    margin-bottom: 15px;
    font-weight: 500;
}
.momo-campaign-raised strong {
    font-weight: bold;
}

.momo-campaign-progress-bar {
    background-color: #e0e0e0;
    border-radius: 20px;
    padding: 4px;
    overflow: hidden;
    height: 30px;
    box-sizing: border-box;
}

.momo-campaign-progress {
    background-color: #4CAF50; /* Màu xanh lá */
    color: white;
    padding: 0 10px;
    line-height: 22px;
    height: 100%;
    text-align: center;
    border-radius: 16px;
    white-space: nowrap;
    min-width: 35px; /* Để % vẫn hiển thị khi còn nhỏ */
    transition: width 0.5s ease-in-out;
    box-sizing: border-box;
}

.momo-campaign-donate-button-wrapper {
    margin-top: 20px;
    text-align: center;
}

.momo-campaign-donate-button {
    display: inline-block;
    background-color: #a428b2;
    color: #fff !important;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
}
.momo-campaign-donate-button:hover {
    background-color: #d82f93;
    transform: translateY(-2px);
}