.hydrobar-products-table {
    overflow: auto;
    padding-bottom: 2em;

    .hpt-toolbar {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        margin-bottom: 8px;
    }

    .hpt-per-page {
        margin-left: auto;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: .9em;
        color: #005387;
        font-weight: 600;

        select {
            height: 32px;
            padding: 0 24px 0 8px;
            border: 1px solid #005387;
            border-radius: 3px;
            background-color: #fff;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23005387' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 7px center;
            color: #005387;
            font-size: .9em;
            cursor: pointer;
            appearance: none;
            -webkit-appearance: none;
        }
    }

    .hpt-filter-toggle,
    .hpt-filter-reset,
    .hpt-sort-reset {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 14px;
        border-radius: 3px;
        background: #fff;
        font-size: .9em;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.15s, color 0.15s;

        &[hidden] { display: none; }
    }

    .hpt-filter-toggle {
        border: 1px solid #005387;
        color: #005387;

        &:hover,
        &.is-active {
            background: #005387;
            color: #fff;
            & > *{
                color: inherit;
            }
        }

        .hpt-toggle-icon{
            color: currentColor;
            & > path{
                color: inherit;
                stroke: currentColor;
            }
        }

        .hpt-toggle-icon--open {
            display: none;
        }

        &[aria-expanded="true"] {
            .hpt-toggle-icon--closed {
                display: none;
            }

            .hpt-toggle-icon--open {
                display: inline;
            }
        }
    }

    .hpt-sort-reset,
    .hpt-filter-reset {
        border: 1px solid #c0392b;
        color: #c0392b;

        &:hover {
            background: #c0392b;
            color: #fff;
        }

        & > *{
            color: inherit;
        }

        & > svg path{
            color: currentColor;
        }
    }

    thead {
        tr {
            background-color: #005387;

            &.hpt-filter-row {
                background-color: #00406a;

                th {
                    padding: 6px 10px;
                }
            }
        }

        th {
            color: #fff;
            padding: 10px;
            font-size: 1.1em;
            line-height: 1.25em;

            &.hpt-sortable {
                cursor: pointer;
                user-select: none;
                white-space: nowrap;

                &::after {
                    content: ' ⇅';
                    opacity: 0.5;
                    vertical-align: top;
                }

                &.is-sorted-asc::after,
                &.is-sorted-desc::after {
                    opacity: 1;
                    vertical-align: top;
                    line-height: 1;
                }

                &.is-sorted-asc::after {
                    content: ' ↑';
                }

                &.is-sorted-desc::after {
                    content: ' ↓';
                }
            }
        }
    }

    .hpt-filter-select,
    .hpt-filter-input {
        width: 100%;
        height: 28px;
        padding: 0 4px;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 3px;
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
        font-size: .85em;
        text-align: center;
        box-sizing: border-box;

        &:focus {
            color: #fff;
        }
    }

    .hpt-filter-select {
        cursor: pointer;

        option {
            background: #00406a;
            color: #fff;
        }
    }

    .hpt-filter-input {
        &::placeholder {
            color: rgba(255, 255, 255, 0.5);
        }
    }

    td {
        text-align: center;
        padding: 8px 10px;
        color: #005387;

        a {
            text-decoration: none;
            color: #3c97cb;
        }
    }

    .add-to-cart-wrapper {
        .cart {
            margin-bottom: 0;
        }
    }

    .add-to-cart-button {
        display: inline-flex;
        align-items: stretch;
        justify-content: center;

        .quantity input {
            margin: 0;
            font-weight: 400;
            line-height: 1.6;
            font-family: var(--global-body-font-family);
            -webkit-appearance: none;
            color: var(--global-palette5);
            border: 1px solid var(--global-gray-400);
            border-radius: 3px;
            box-shadow: 0 0 0 -7px rgba(0, 0, 0, 0);
            background: #fff;
            width: 3.631em;
            height: 34px;
            padding: 2px 3px;
            vertical-align: top;
            font-size: .9em;
            max-width: 4em;
            text-align: center;
        }

        button.button {
            border-radius: 3px;
            background: var(--global-palette-btn-bg);
            cursor: pointer;
            box-shadow: 0 0 0 -7px rgba(0, 0, 0, 0);
            color: var(--global-palette-btn);
            background-color: #e19900;
            border: 1px solid #e19900;
            height: 34px;
            min-height: 0;
            padding: 2px 16px;
            font-size: .9em;
            display: inline-block;
            margin-left: 3px;
            line-height: 1.3;
            vertical-align: top;
        }
    }

    .download-pdf-button {
        display: flex;
        justify-content: center;
    }

    .hpt-pagination {
        display: flex;
        align-items: center;
        justify-content: center;

        &[hidden] { display: none; }
        gap: 4px;
        margin-top: 16px;
        flex-wrap: wrap;

        .hpt-pagination__btn {
            min-width: 34px;
            height: 34px;
            padding: 0 8px;
            border: 1px solid var(--global-gray-400, #ddd);
            border-radius: 3px;
            background: #fff;
            color: #005387;
            font-size: .9em;
            cursor: pointer;
            transition: background 0.15s, color 0.15s;
            line-height: 1;

            &:hover:not(:disabled) {
                background: #005387;
                color: #fff;
                border-color: #005387;
            }

            &.is-active {
                background: #005387;
                color: #fff;
                border-color: #005387;
                font-weight: 600;
                cursor: default;
            }

            &:disabled {
                opacity: 0.4;
                cursor: default;
            }
        }

        .hpt-pagination__ellipsis {
            padding: 0 4px;
            color: #005387;
            line-height: 34px;
        }
    }
}
