/* Presentation only: preserve EDD's native markup, controls and payment flow. */
@media (max-width: 600px) {
    .page-id-251 #edd_checkout_cart,
    .page-id-251 #edd_purchase_form {
        font-size: 16px;
    }

    .page-id-251 #edd_purchase_form fieldset > legend {
        font-size: 20px;
        padding-right: 16px;
        padding-left: 16px;
    }

    .page-id-251 #edd_purchase_form fieldset > div,
    .page-id-251 #edd_purchase_form #edd_show_discount,
    .page-id-251 #edd_purchase_form #edd_final_total_wrap {
        padding-right: 16px;
        padding-left: 16px;
    }

    .page-id-251 #edd_purchase_form .edd-description,
    .page-id-251 #edd_checkout_cart .edd-sl-details {
        font-size: 14px;
    }

    /* 16px native inputs avoid focus zoom on iOS; hosted gateway UI stays native. */
    .page-id-251 #edd_purchase_form input.edd-input,
    .page-id-251 #edd_purchase_form select.edd-input {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        min-height: 44px;
        font-size: 16px;
    }

    .page-id-251 #edd_purchase_form .edd-submit {
        min-height: 44px;
        max-width: 100%;
        font-size: 16px;
    }

    .page-id-251 #edd_checkout_cart {
        display: block;
        width: 100%;
        max-width: 100%;
        border: 1px solid #e5e5e5;
    }

    /* Keep column headings available to assistive technology. */
    .page-id-251 #edd_checkout_cart thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .page-id-251 #edd_checkout_cart tbody,
    .page-id-251 #edd_checkout_cart tfoot {
        display: block;
        width: 100%;
    }

    .page-id-251 #edd_checkout_cart tr.edd_cart_item {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        padding: 16px;
        gap: 4px 16px;
        border-bottom: 1px solid #e5e5e5;
    }

    .page-id-251 #edd_checkout_cart tr.edd_cart_item > td {
        min-width: 0;
        padding: 0;
        border: 0;
        text-align: left;
    }

    .page-id-251 #edd_checkout_cart td.edd_cart_item_name {
        grid-column: 1 / -1;
        overflow-wrap: anywhere;
    }

    .page-id-251 #edd_checkout_cart .edd_checkout_cart_item_title {
        font-weight: 600;
    }

    .page-id-251 #edd_checkout_cart .eddr-cart-item-notice {
        margin: 8px 0;
    }

    .page-id-251 #edd_checkout_cart td.edd_cart_actions {
        justify-self: end;
    }

    .page-id-251 #edd_checkout_cart .edd_cart_remove_item_btn {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding: 4px 0 4px 12px;
    }

    .page-id-251 #edd_checkout_cart .edd_cart_footer_row {
        display: block;
        width: 100%;
    }

    .page-id-251 #edd_checkout_cart .edd_cart_footer_row > th,
    .page-id-251 #edd_checkout_cart .edd_cart_footer_row > td {
        display: block;
        width: 100%;
        padding: 14px 16px;
        border: 0;
        text-align: right;
        overflow-wrap: anywhere;
    }
}
