/* Global responsive overrides for standard_cart order flow */

#order-standard_cart {
    overflow-x: clip;
}

#order-standard_cart img,
#order-standard_cart svg,
#order-standard_cart iframe {
    max-width: 100%;
    height: auto;
}

#order-standard_cart .cart-body,
#order-standard_cart .secondary-cart-body,
#order-standard_cart .secondary-cart-sidebar {
    min-width: 0;
}

#order-standard_cart .sub-heading {
    overflow-wrap: anywhere;
}

#order-standard_cart .sub-heading .primary-bg-color {
    white-space: normal;
    display: inline-block;
    max-width: 100%;
}

#order-standard_cart .form-control,
#order-standard_cart select.form-control,
#order-standard_cart textarea.form-control,
#order-standard_cart .field.form-control {
    min-height: 42px;
}

#order-standard_cart textarea.form-control,
#order-standard_cart textarea.field.form-control {
    min-height: 110px;
}

#order-standard_cart .order-summary,
#order-standard_cart #producttotal {
    overflow-wrap: anywhere;
}

#order-standard_cart .order-summary .clearfix {
    display: flex;
    gap: 10px;
}

#order-standard_cart .order-summary .clearfix .pull-left,
#order-standard_cart .order-summary .clearfix .float-left {
    min-width: 0;
}

#order-standard_cart .order-summary .clearfix .pull-right,
#order-standard_cart .order-summary .clearfix .float-right {
    white-space: nowrap;
}

#order-standard_cart .already-registered {
    overflow: hidden;
}

#order-standard_cart .already-registered p {
    margin-bottom: 0;
}

@media (max-width: 1199.98px) {
    #order-standard_cart .cart-body {
        width: 100%;
    }

    #order-standard_cart .secondary-cart-body,
    #order-standard_cart .secondary-cart-sidebar {
        width: 100%;
        float: none;
    }

    #order-standard_cart .secondary-cart-sidebar {
        margin-top: 14px;
    }
}

@media (max-width: 991.98px) {
    #order-standard_cart {
        padding-left: 0;
        padding-right: 0;
    }

    #order-standard_cart .cart-body {
        padding-left: 0;
        padding-right: 0;
    }

    #order-standard_cart .row {
        margin-left: 0;
        margin-right: 0;
    }

    #order-standard_cart [class*="col-"] {
        padding-left: 6px;
        padding-right: 6px;
    }

    #order-standard_cart .already-registered {
        padding: 12px;
    }

    #order-standard_cart .already-registered .pull-right,
    #order-standard_cart .already-registered .float-right {
        float: none !important;
        margin-top: 10px;
        text-align: center;
    }

    #order-standard_cart .already-registered .btn {
        margin: 4px;
    }
}

@media (max-width: 767.98px) {
    #order-standard_cart {
        font-size: 14px;
    }

    #order-standard_cart .header-lined h1,
    #order-standard_cart .header-lined h2 {
        font-size: 22px !important;
        line-height: 1.25;
        margin-bottom: 10px;
    }

    #order-standard_cart .sub-heading {
        margin: 14px 0 10px;
    }

    #order-standard_cart .sub-heading .primary-bg-color {
        font-size: 13px;
        line-height: 1.25;
        padding: 7px 10px;
    }

    #order-standard_cart .order-summary h2 {
        font-size: 22px !important;
    }

    #order-standard_cart .order-summary .clearfix {
        align-items: flex-start;
    }

    #order-standard_cart .order-summary .clearfix .pull-right,
    #order-standard_cart .order-summary .clearfix .float-right {
        white-space: normal;
        text-align: right;
        max-width: 42%;
    }

    #order-standard_cart .btn,
    #order-standard_cart button.btn,
    #order-standard_cart input.btn {
        min-height: 42px;
    }

    #order-standard_cart .table-responsive {
        border: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 575.98px) {
    #order-standard_cart .header-lined h1,
    #order-standard_cart .header-lined h2 {
        font-size: 20px !important;
    }

    #order-standard_cart .form-control,
    #order-standard_cart select.form-control,
    #order-standard_cart textarea.form-control,
    #order-standard_cart .field.form-control {
        font-size: 16px; /* Prevent mobile zoom on iOS */
    }

    #order-standard_cart .already-registered {
        padding: 10px;
    }

    #order-standard_cart .already-registered .btn {
        width: 100%;
        margin: 4px 0;
    }

    #order-standard_cart .order-summary .summary-container {
        padding: 10px;
    }
}
