/* Responsive table for subscriptions and donations tab on account page */
@media (max-width: 575.98px) {
    /* Subscriptions Table (already present) */
    #subs .table-responsive table,
    #subs .table-responsive thead,
    #subs .table-responsive tbody,
    #subs .table-responsive th,
    #subs .table-responsive td,
    #subs .table-responsive tr {
        display: block;
        width: 100%;
    }
    #subs .table-responsive thead {
        display: none;
    }
    #subs .table-responsive tr {
        margin-bottom: 1rem;
        border-bottom: 2px solid #eee;
        box-shadow: 0 1px 4px rgba(0,0,0,0.04);
        padding: 0.5rem 0;
    }
    #subs .table-responsive td {
        text-align: left;
        padding-left: 50%;
        position: relative;
        min-height: 2.5em;
        border: none;
        border-bottom: 1px solid #f2f2f2;
        white-space: normal;
        word-break: break-word;
    }
    #subs .table-responsive td:before {
        position: absolute;
        top: 0.5em;
        left: 1em;
        width: 45%;
        white-space: nowrap;
        font-weight: 700;
        color: #888;
        content: attr(data-label);
    }
    #subs .table-responsive td:last-child {
        border-bottom: none;
    }

    /* Donations Table */
    #donations .table-responsive table,
    #donations .table-responsive thead,
    #donations .table-responsive tbody,
    #donations .table-responsive th,
    #donations .table-responsive td,
    #donations .table-responsive tr {
        display: block;
        width: 100%;
    }
    #donations .table-responsive thead {
        display: none;
    }
    #donations .table-responsive tr {
        margin-bottom: 1rem;
        border-bottom: 2px solid #eee;
        box-shadow: 0 1px 4px rgba(0,0,0,0.04);
        padding: 0.5rem 0;
    }
    #donations .table-responsive td {
        text-align: left;
        padding-left: 50%;
        position: relative;
        min-height: 2.5em;
        border: none;
        border-bottom: 1px solid #f2f2f2;
        white-space: normal;
        word-break: break-word;
    }
    #donations .table-responsive td:before {
        position: absolute;
        top: 0.5em;
        left: 1em;
        width: 45%;
        white-space: nowrap;
        font-weight: 700;
        color: #888;
        content: attr(data-label);
    }
    #donations .table-responsive td:last-child {
        border-bottom: none;
    }

    /* Donations Pagination */
    #donations-pagination-nav .pagination {
        flex-direction: column;
        align-items: stretch;
    }
    #donations-pagination-nav .page-item {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    #donations-pagination-nav .page-link {
        width: 100%;
        text-align: left;
        position: relative;
        padding-left: 3.5em;
    }
    #donations-pagination-nav .page-link:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 1em;
        color: #888;
        font-weight: 700;
    }

    /* Wrap long check email message for iPhone */
    .check-email-message {
        word-break: break-word;
        white-space: normal;
        font-size: 1.05rem;
        line-height: 1.5;
        text-align: left;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    /* Wrap long confirm email message for iPhone on login page */
    .confirm-email-message {
        word-break: break-word;
        white-space: normal;
        font-size: 1.05rem;
        line-height: 1.5;
        text-align: left;
        display: block;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .confirm-email-banner {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
}
