.cart-mobile-catalog-search {
    display: none;
}

.cart-card-commercial-offer-btn {
    display: none;
}

.cart-options-summary {
    display: none;
}

@media (max-width: 767px) {
    .header-mobile.cart-mobile-header {
        grid-template-rows: 1fr;
        grid-row-gap: 0;
        padding: 4px 20px;
    }

    .header-mobile.cart-mobile-header .header-mobile-title {
        grid-column-start: 2;
        grid-column-end: 3;
        grid-row-start: 1;
        grid-row-end: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 5px 0;
        font-size: 18px;
        font-weight: 600;
        color: #0D0800;
    }

    .cart-mobile-fixed-panel {
        position: sticky;
        top: 48px;
        z-index: 8;
        margin: 0 -15px 10px;
        padding: 0 15px 8px;
        background-color: var(--background-wrap-color);
    }

    .cart-page-title {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        flex-wrap: nowrap;
        margin: 0;
        padding: 6px 0;
    }

    .cart-page-title-text {
        display: none;
    }

    .cart-page-title .back-to-catalog-btn,
    .cart-page-title .import-cart-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        flex: 0 1 auto;
        min-width: 0;
        padding: 4px 8px;
        font-size: 12px;
    }

    .cart-mobile-catalog-search {
        width: 100%;
        border: 1px solid var(--primary);
        border-radius: 8px;
        display: flex;
        position: relative;
        background-color: white;
        overflow: hidden;
    }

    .cart-mobile-catalog-search .search-form {
        height: 32px;
    }

    .cart-mobile-catalog-search input {
        border: none;
        height: 100%;
        padding: 0 10px;
        font-size: 0.875rem;
    }

    .cart-mobile-catalog-search .search-btn {
        min-width: 48px;
        border: none;
        background-color: var(--primary);
        padding: 0;
    }

    .cart-mobile-catalog-search .search-btn img {
        width: 50%;
    }

    .cart-mobile-catalog-search .clear-query {
        top: 8px;
    }

    .cart-mobile-fixed-panel .cart-controls-panel {
        align-items: center;
        flex-wrap: nowrap;
        margin-top: 8px;
    }

    .cart-mobile-fixed-panel .cart-controls-panel::after {
        content: none;
        display: none;
    }

    .cart-mobile-fixed-panel .cart-controls-panel .discount-toggle {
        order: 3;
        flex: 0 1 86px;
        white-space: normal;
        line-height: 1.05;
    }

    .cart-mobile-fixed-panel .cart-controls-panel .wholesale-toggle {
        order: 4;
        margin-left: 0;
    }

    .cart-item .cart-card-agreement-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: start;
        gap: 10px 14px;
    }

    .cart-item .cart-card-agreement-row .actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        min-width: 0;
        padding-bottom: 0;
    }

    .cart-item .cart-card-agreement-row .clean-cart {
        width: 100%;
        min-height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 6px 8px;
        white-space: nowrap;
    }

    .cart-item .cart-card-commercial-offer-btn {
        width: 100%;
        min-height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 0;
        border-radius: 20px;
        font-size: 14px;
        line-height: 1.15;
        text-align: center;
    }

    .cart-item .cart-card-agreement-panel {
        min-width: 0;
        max-width: none;
        width: 100%;
    }

    .cart-item .cart-card-agreement-panel .catalog-customer-agreement-panel {
        flex-direction: column;
        align-items: stretch;
        gap: 11px;
        margin: 0;
        padding: 0;
    }

    .cart-item .cart-card-agreement-panel .catalog-customer-agreement-panel__item {
        position: relative;
        min-width: 0;
        width: 100%;
        flex: 0 0 auto;
    }

    .cart-item .cart-card-agreement-panel .catalog-customer-agreement-panel__item label {
        position: absolute;
        left: 0;
        top: -11px;
        margin-bottom: 2px;
        font-size: 11px;
    }

    .cart-item .cart-card-agreement-panel .catalog-customer-agreement-panel__item .form-control,
    .cart-item .cart-card-agreement-panel .select2-container--krajee-bs4 .select2-selection--single {
        height: 38px;
        min-height: 38px;
    }

    .cart-item .checkout-btn .generate-commercial-offer-btn:not(.cart-card-commercial-offer-btn) {
        display: none;
    }

    .cart-item .cart-card-amount-col,
    .cart-item .cart-card-total-col {
        display: none;
    }

    .cart-product-item:not(.compact) {
        position: relative;
        display: grid !important;
        grid-template-columns: 84px minmax(0, 1fr) 96px;
        grid-template-rows: auto auto;
        align-items: start;
        column-gap: 8px;
        row-gap: 0;
        margin-top: 8px;
        padding: 10px 34px 6px 8px;
    }

    .cart-product-item:not(.compact) .cart-checkbox {
        display: none !important;
    }

    .cart-product-item:not(.compact) .cart-checkbox .checkbox-custom {
        min-height: 18px;
        padding: 0;
    }

    .cart-product-item:not(.compact) .cart-checkbox .checkmark {
        top: 0;
        left: 0;
    }

    .cart-product-item:not(.compact) .cart-item-buttons {
        position: absolute;
        top: 0;
        right: 0;
        width: auto;
        margin: 0;
    }

    .cart-product-item .cart-item-buttons .cart-checkbox {
        display: none !important;
    }

    .cart-product-item:not(.compact) .remove {
        position: absolute;
        top: 0;
        right: 0;
        margin: 0;
    }

    .cart-product-item:not(.compact) .images-block {
        grid-column: 1;
        grid-row: 1 / span 2;
        align-self: center;
        justify-self: stretch;
        display: flex;
        justify-content: center;
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    .cart-product-item:not(.compact) .product-info {
        display: block !important;
        flex: 0 0 100%;
        grid-column: 2;
        grid-row: 1;
        align-self: start;
        max-width: 100%;
        width: 100%;
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .cart-product-item:not(.compact) .images-block img {
        height: 72px;
        width: 100%;
        object-fit: contain;
    }

    .cart-product-item:not(.compact) .cart-price-col {
        display: flex !important;
        grid-column: 3;
        grid-row: 1;
        align-self: end;
        flex-direction: column;
        align-items: flex-end;
        max-width: 96px;
        width: 96px;
        padding-right: 8px !important;
        text-align: right;
    }

    .cart-product-item:not(.compact) .cart-price-col > * {
        align-self: flex-end;
        max-width: 100%;
        text-align: right;
    }

    .cart-product-item:not(.compact) .input {
        flex: 0 0 auto;
        grid-column: 2;
        grid-row: 2;
        max-width: 72px;
        width: 72px;
        align-self: start;
        justify-self: start;
    }

    .cart-product-item:not(.compact) .cart-sum-col {
        display: flex !important;
        grid-column: 3;
        grid-row: 1;
        align-self: center;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center !important;
        max-width: 96px;
        width: 96px;
        margin: 0;
        padding-right: 8px !important;
        text-align: right;
    }

    .cart-product-item:not(.compact) .product-info {
        padding: 0;
    }

    .cart-product-item:not(.compact) .product-info > .d-sm-flex {
        display: none !important;
    }

    .cart-product-item:not(.compact) .product-info > .d-sm-none {
        display: block !important;
    }

    .cart-product-item:not(.compact) .input {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
        align-items: center;
        column-gap: 0;
        row-gap: 1px;
        margin: 0;
        padding: 1px 0 !important;
        min-height: 0;
    }

    .cart-product-item:not(.compact) .product-info > div {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        min-height: 0;
    }

    .cart-product-item:not(.compact) .product-info .brand {
        height: auto !important;
        min-height: 0;
    }

    .cart-product-item:not(.compact) .title {
        display: none !important;
    }

    .cart-product-item:not(.compact) .value,
    .cart-product-item:not(.compact) .price-format,
    .cart-product-item:not(.compact) .cart-personal-price,
    .cart-product-item:not(.compact) .cart-rrp-price,
    .cart-product-item:not(.compact) .input input {
        justify-self: start;
        max-width: 100%;
        margin: 0 !important;
        text-align: left;
        line-height: 1.15;
    }

    .cart-product-item:not(.compact) .price-format .price-string {
        padding-right: 0;
        line-height: 1.15;
    }

    .cart-product-item:not(.compact) .price-format .currency {
        margin-left: 3px;
        line-height: 1.15;
    }

    .cart-product-item:not(.compact) .price-format {
        justify-content: flex-start;
        flex-direction: row-reverse;
        float: none;
    }

    .cart-product-item:not(.compact) .cart-price-col > .price-format,
    .cart-product-item:not(.compact) .cart-price-col > .cart-rrp-price,
    .cart-product-item:not(.compact) .cart-price-col > .cart-personal-price,
    .cart-product-item:not(.compact) .cart-sum-col > .price-format {
        grid-column: 1;
    }

    .cart-product-item:not(.compact) .cart-price-col > .price-format,
    .cart-product-item:not(.compact) .cart-price-col .cart-rrp-price .price-format {
        justify-content: flex-end;
    }

    .cart-product-item:not(.compact) .cart-price-col .cart-rrp-price {
        display: block;
        color: #9ca3af;
        font-size: 12px;
        line-height: 1.15;
        text-decoration: none;
        width: 100%;
    }

    .cart-product-item:not(.compact) .cart-price-col .cart-rrp-price .price-format {
        justify-content: flex-end;
    }

    .cart-product-item:not(.compact) .cart-price-col .cart-rrp-price .price-string,
    .cart-product-item:not(.compact) .cart-price-col .cart-rrp-price .currency {
        color: #9ca3af;
        font-size: 12px;
    }

    .cart-product-item:not(.compact) .cart-sum-col .price-format {
        align-items: flex-end;
        flex-direction: row-reverse;
        justify-content: flex-end;
        float: none;
        margin-left: auto !important;
        text-align: right;
        width: auto;
        position: relative;
        top: 0;
    }

    .cart-product-item:not(.compact) .cart-sum-col .price-string {
        color: #0D0800;
        font-size: 16px;
        font-weight: 500;
    }

    .cart-product-item:not(.compact) .cart-sum-col .currency {
        color: #6b7280;
        font-size: 11px;
        font-weight: 500;
        line-height: 1.1;
    }

    .cart-product-item:not(.compact) .cart-personal-price,
    .cart-product-item:not(.compact) .was-text {
        display: flex;
        align-items: baseline;
        justify-content: flex-end;
        gap: 4px;
        line-height: 1.15;
    }

    .cart-product-item:not(.compact) .cart-personal-price {
        flex-direction: row;
        align-items: flex-end;
        gap: 4px;
        justify-content: flex-end;
        width: 100%;
    }

    .cart-product-item:not(.compact) .cart-personal-price .price-format {
        justify-content: flex-end;
    }

    .cart-product-item:not(.compact) .cart-discount-badge {
        align-self: flex-end;
        margin-top: 0;
        font-size: 10px;
        line-height: 1;
        white-space: nowrap;
    }

    .cart-product-item:not(.compact) .name .value {
        display: block;
        color: #0D0800;
        font-size: 13px !important;
        font-weight: 500;
        line-height: 12px !important;
    }

    .cart-product-item:not(.compact) .article .value,
    .cart-product-item:not(.compact) .brand .value {
        color: #6b7280;
        font-size: 12px !important;
        line-height: 1.05;
    }

    .cart-product-item:not(.compact) .input input {
        height: 26px;
        width: 72px;
        text-align: center;
    }

    .cart-product-item:not(.compact) .was-text {
        grid-column: 1;
        justify-self: end;
        position: static;
        top: auto;
        bottom: auto;
        margin: 0 !important;
        text-align: right;
        line-height: 1.1;
    }

    .cart-product-item.compact {
        position: relative;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 96px;
        grid-template-rows: auto auto;
        align-items: start;
        column-gap: 8px;
        row-gap: 0;
        margin-top: 8px;
        padding: 10px 34px 6px 8px;
    }

    .cart-product-item.compact .cart-checkbox {
        display: none !important;
    }

    .cart-product-item.compact .remove {
        position: absolute;
        top: 0;
        right: 0;
        margin: 0;
    }

    .cart-product-item.compact .product-info {
        display: block !important;
        grid-column: 1;
        grid-row: 1;
        align-self: start;
        max-width: 100%;
        width: 100%;
        padding: 0;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible;
    }

    .cart-product-item.compact .cart-price-col {
        display: flex !important;
        grid-column: 2;
        grid-row: 1;
        align-self: end;
        flex-direction: column;
        align-items: flex-end;
        max-width: 96px;
        width: 96px;
        padding-right: 8px !important;
        text-align: right;
    }

    .cart-product-item.compact .cart-price-col > * {
        align-self: flex-end;
        max-width: 100%;
        text-align: right;
    }

    .cart-product-item.compact .input {
        display: grid !important;
        grid-column: 1;
        grid-row: 2;
        grid-template-columns: minmax(0, 1fr);
        align-items: center;
        justify-self: start;
        max-width: 72px;
        width: 72px;
        margin: 0;
        padding: 1px 0 !important;
    }

    .cart-product-item.compact .cart-sum-col {
        display: flex !important;
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center !important;
        max-width: 96px;
        width: 96px;
        margin: 0;
        padding-right: 8px !important;
        text-align: right;
        transform: translateY(8px);
    }

    .cart-product-item.compact .product-info > .d-sm-none,
    .cart-product-item.compact .product-info > div {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        min-height: 0;
    }

    .cart-product-item.compact .product-info > .d-sm-flex {
        display: none !important;
    }

    .cart-product-item.compact .product-info .brand.d-sm-none {
        display: block !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 12px !important;
        overflow: hidden;
    }

    .cart-product-item.compact .product-info .brand.d-sm-none .value {
        display: block;
        line-height: 12px !important;
    }

    .cart-product-item.compact .title {
        display: none !important;
    }

    .cart-product-item.compact .value,
    .cart-product-item.compact .price-format,
    .cart-product-item.compact .cart-personal-price,
    .cart-product-item.compact .cart-rrp-price,
    .cart-product-item.compact .input input {
        max-width: 100%;
        margin: 0 !important;
        text-align: left;
        line-height: 1.15;
    }

    .cart-product-item.compact .price-format {
        justify-content: flex-start;
        flex-direction: row-reverse;
        float: none;
    }

    .cart-product-item.compact .cart-price-col > .price-format,
    .cart-product-item.compact .cart-price-col .cart-rrp-price .price-format,
    .cart-product-item.compact .cart-personal-price .price-format {
        justify-content: flex-end;
    }

    .cart-product-item.compact .cart-price-col .cart-rrp-price {
        display: block;
        color: #9ca3af;
        font-size: 12px;
        line-height: 12px !important;
        margin: 0 0 2px !important;
        text-decoration: none;
        width: 100%;
    }

    .cart-product-item.compact .cart-price-col .cart-rrp-price .price-format {
        line-height: 12px !important;
    }

    .cart-product-item.compact .cart-price-col .cart-rrp-price .price-string,
    .cart-product-item.compact .cart-price-col .cart-rrp-price .currency {
        color: #9ca3af;
        font-size: 12px;
        line-height: 12px !important;
    }

    .cart-product-item.compact .cart-sum-col .price-format {
        align-items: flex-end;
        flex-direction: row-reverse;
        justify-content: flex-end;
        float: none;
        margin-left: auto !important;
        text-align: right;
        width: auto;
        position: relative;
        top: 0;
    }

    .cart-product-item.compact .cart-sum-col .price-string {
        color: #0D0800;
        font-size: 16px;
        font-weight: 500;
        line-height: 1 !important;
    }

    .cart-product-item.compact .cart-sum-col .currency {
        color: #6b7280;
        font-size: 11px;
        font-weight: 500;
        line-height: 1.1 !important;
    }

    .cart-product-item.compact .cart-personal-price,
    .cart-product-item.compact .was-text {
        display: flex;
        align-items: baseline;
        justify-content: flex-end;
        gap: 4px;
        line-height: 1;
    }

    .cart-product-item.compact .cart-personal-price {
        align-items: flex-end;
        row-gap: 1px;
        margin: 0 !important;
        width: 100%;
    }

    .cart-product-item.compact .cart-personal-price .price-format,
    .cart-product-item.compact .cart-personal-price .price-string,
    .cart-product-item.compact .cart-personal-price .currency {
        line-height: 1 !important;
    }

    .cart-product-item.compact .cart-discount-badge {
        align-self: flex-end;
        margin-top: 0;
        font-size: 10px;
        line-height: 1;
        white-space: nowrap;
    }

    .cart-product-item.compact .name .value {
        display: block;
        color: #0D0800;
        font-size: 13px !important;
        font-weight: 500;
        line-height: 12px !important;
    }

    .cart-product-item.compact .article .value,
    .cart-product-item.compact .brand .value {
        color: #6b7280;
        font-size: 12px !important;
        line-height: 1.05;
    }

    .cart-product-item.compact .input input {
        height: 26px;
        width: 72px;
        text-align: center;
    }

    .cart-product-item.compact .was-text {
        position: static;
        top: auto;
        bottom: auto;
        margin: 0 !important;
        text-align: right;
        line-height: 1.1;
    }

    .cart-options-fixed-spacer > div.cart-options {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 9;
        flex-direction: column;
        gap: 12px;
        margin: 0;
        padding: 12px 10px calc(12px + env(safe-area-inset-bottom));
        background-color: var(--background-wrap-color);
        box-shadow: 0 -4px 14px rgba(0, 0, 0, .12);
        transform: translate3d(0, calc(-1 * var(--cart-options-footer-offset, 0px)), 0);
        will-change: transform;
    }

    .cart-options-fixed-spacer {
        min-height: 124px;
    }

    .cart-options-fixed-spacer:not(:last-of-type) > div.cart-options {
        position: static;
        box-shadow: none;
    }

    div.cart-options .dropdown {
        width: 100%;
    }

    .cart-options-summary {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: end;
        gap: 8px;
        width: 100%;
    }

    .cart-options-summary__item {
        min-width: 0;
        text-align: center;
    }

    .cart-options-summary__title {
        display: block;
        font-size: 10px;
        line-height: 1.1;
        color: #4b5563;
        white-space: nowrap;
    }

    .cart-options-summary__value {
        display: block;
        margin-top: 3px;
        font-size: 14px;
        line-height: 1.15;
        color: #0D0800;
        font-weight: 700;
        white-space: nowrap;
    }

    .cart-options-summary__item--sum .cart-options-summary__value {
        font-size: 13px;
    }

    .cart-options-summary__item--sum .price-format {
        display: flex;
        align-items: baseline;
        justify-content: center;
        flex-direction: row;
        gap: 3px;
        float: none;
        width: 100%;
        white-space: nowrap;
    }

    .cart-options-summary__item--sum .currency {
        font-size: 10px;
        font-weight: 500;
    }

    .cart-options-checkout-btn {
        width: 100%;
        min-height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        transform: translateY(5px);
        padding: 6px 8px;
        border-radius: 20px;
        font-size: 12px;
        line-height: 1;
        background-color: var(--primary);
        border-color: var(--primary);
        white-space: nowrap;
    }
}

@media (max-width: 360px) {
    .cart-page-title .back-to-catalog-btn,
    .cart-page-title .import-cart-btn {
        font-size: 11px;
        padding-right: 6px;
        padding-left: 6px;
    }
}
