/* EDD Checkout Page Styles */
#edd_checkout_cart {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2em;
    background: var(--card-background);
}

#edd_checkout_cart th,
#edd_checkout_cart td {
    padding: 12px;
    border: 1px solid var(--border-color, #e0e0e0);
    text-align: left;
}

#edd_checkout_cart th {
    background: var(--primary-color);
    color: var(--text-color-dark, #333);
    font-weight: bold;
}

#edd_checkout_cart .edd_cart_item_name {
    display: flex;
    align-items: center;
    gap: 10px;
}

#edd_checkout_cart .edd_cart_item_image img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.edd_cart_item_price {
    font-weight: 600;
    color: var(--text-color);
}

.edd_cart_actions {
    text-align: center;
}

.edd_cart_remove_item_btn {
    color: var(--danger-color, #dc3545);
    text-decoration: none;
    font-size: 0.9em;
}

/* Payment Gateway Styles */
#edd_payment_mode_select {
    margin-bottom: 2em;
}

#edd_payment_mode_select_wrap {
    padding: 15px;
    background: var(--card-background);
    border-radius: 8px;
    margin-bottom: 1.5em;
}

#edd_payment_mode_select_wrap legend {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1em;
}

.edd-gateway {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 4px;
    background: var(--background-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.edd-gateway:hover {
    background: var(--hover-color, #f5f5f5);
}

.edd-gateway input[type="radio"] {
    margin: 0;
}

.edd-gateway label {
    flex: 1;
    cursor: pointer;
}

/* Purchase Button */
#edd-purchase-button {
    background: var(--primary-color);
    color: var(--text-color-light, #fff);
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.3s ease;
}

#edd-purchase-button:hover {
    background: var(--secondary-color);
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    #edd_checkout_cart .edd_cart_item_image {
        display: none;
    }
    
    #edd_checkout_cart th,
    #edd_checkout_cart td {
        padding: 8px;
        font-size: 0.9em;
    }

    #edd_payment_mode_select_wrap {
        padding: 10px;
    }

    #edd_payment_mode_select_wrap legend {
        font-size: 0.95em;
        padding: 0 8px;
        line-height: 1.2;
        word-wrap: break-word;
        width: 100%;
        text-align: center;
        margin-bottom: 0.8em;
    }
}

#edd_checkout_cart tfoot tr:last-child {
    background: var(--primary-color);
    color: #ffffff;
}

#edd_checkout_cart tfoot tr:last-child th,
#edd_checkout_cart tfoot tr:last-child .edd_cart_total {
    color: #ffffff;
}