/* ============ programs book now button ============ */
.program-buy-button {
    display: inline-block;
    color: var(--ast-global-color-5);
    background-color: var(--ast-global-color-4);
    padding: 14px 25px;
    font-size: 1.0em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 100px;
    text-align: center;
    width: 100%;
}

.program-buy-button:hover {
    background: #27ae60;
    color: white;
}

/* ============ Woocommerce checkout page ============ */
.woocommerce-checkout .quantity {
    display: none !important;
}

/* ============ User Suscriptions ============ */
.pm-user-subscriptions {
    margin: 30px 0;
}

.pm-subscriptions-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pm-subscriptions-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
    background: white;
    min-width: 600px;
}

.pm-subscriptions-table th,
.pm-subscriptions-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.pm-subscriptions-table th {
    background: #f9f9f9;
    font-weight: 600;
}

.pm-subscriptions-table tr:nth-child(even) {
    background: #f9f9f9;
}

.subscription-status-active {
    color: #27ae60;
    font-weight: bold;
}

.button-cancel {
    background: #e74c3c;
    color: white;
}

.button-cancel:hover {
    background: #c0392b;
    color: white;
}

@media (max-width: 768px) {
    .pm-subscriptions-table,
    .pm-subscriptions-table thead,
    .pm-subscriptions-table tbody,
    .pm-subscriptions-table th,
    .pm-subscriptions-table td,
    .pm-subscriptions-table tr {
        display: block;
    }

    .pm-subscriptions-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .pm-subscriptions-table tr {
        border: 1px solid #ddd;
        margin-bottom: 15px;
        padding: 10px;
        background: white;
    }

    .pm-subscriptions-table td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
        text-align: right;
    }

    .pm-subscriptions-table td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 12px;
        width: 45%;
        font-weight: bold;
        text-align: left;
    }

    .pm-subscriptions-table td:last-child {
        border-bottom: 0;
    }
}

.pm-renewal-note {
    margin-top: 20px;
    font-style: italic;
    color: #666;
}