#messagecontainer {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 5px;
    border-radius: 5px;
    z-index: 997;
    max-width: 80%;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: opacity 0.5s ease;
    background-color: #ffd900;
    border: 1px solid hsl(46, 97%, 85%);
    color: #000000;
}

.success-message {
    background-color: #00ff3c;
    color: #ffffff;
    border: 1px solid #04ff3f;
}

.error-message {
    background-color: #ff0015;
    color: #ffffff;
    border: 1px solid #ff0019;
}

.prompt-message {
    background-color: #ffd900;
    border: 1px solid hsl(46, 97%, 85%);
    color: #000000;
}

#messagecontainer button {
    margin: 10px 5px 0;
    padding: 8px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#messagecontainer button:hover {
    background-color: #0056b3;
}

#messagecontainer p {
    margin: 0 0 10px 0;
}
/* New styles for payment history */
.payment-history {
    max-height: 80vh;
    overflow-y: auto;
    text-align: left;
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #e0e0e0;
}

.payment-history h2 {
    text-align: center;
    margin-bottom: 15px;
    color: #333333;
    font-weight: bold;
}

.payment-history table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.payment-history th, 
.payment-history td {
    border: 1px solid #e0e0e0;
    padding: 10px;
    text-align: left;
}

.payment-history th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.payment-history tr:nth-child(even) {
    background-color: #f9f9f9;
}

.payment-history tr:hover {
    background-color: #f0f0f0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #messagecontainer.payment-history {
        top: 10px;
        left: 10px;
        right: 10px;
        transform: none;
        max-width: calc(100% - 20px);
    }

    .payment-history table, 
    .payment-history thead, 
    .payment-history tbody, 
    .payment-history th, 
    .payment-history td, 
    .payment-history tr {
        display: block;
    }

    .payment-history thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .payment-history tr {
        border: 1px solid #ccc;
        margin-bottom: 10px;
    }

    .payment-history td {
        border: none;
        position: relative;
        padding-left: 50%;
    }

    .payment-history td:before {
        position: absolute;
        top: 6px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        content: attr(data-label);
        font-weight: bold;
    }
}