.table-wrapper {
    position: relative;
}

.table-container {
    overflow-x: auto;
    scroll-behavior: smooth;
    position: relative;
}

.table-results {
    border-collapse: separate;
    border: solid lightgray 1px;
    border-radius: 6px;
    -moz-border-radius: 6px;
}
.table-results td {
    border-right: 1px solid lightgray;
}
.table-results td:last-child {
    border-right: none;
}

.table-results input[type="checkbox"] {
    /* height: 20px;
    width: 20px; */
    transform: scale(1.5); /* FF */
    z-index: -1;
    cursor: pointer;
}

.table-results.top-sticky-table input[type="checkbox"] {
    z-index: unset;
    cursor: pointer;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 280px;
    padding: 10px;
    font-weight: 500;
}

.sub-table-header {
    font-weight: 300;
}

.table-cell {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 250px;
    min-height: 40px;
    padding: 10px;
}

.table-button {
    display: block;
    width: 90%;
    margin: 0 auto;
}

.table-item-number,
.table-item-compare-selector,
.table-item-logo {
    padding: 5px;
}

.table-item-name {
    font-size: 14px;
}

.table-item-premium-total {
    font-size: 20px;
    font-weight: normal;
}

.table-ghost {
    display: block;
    height: 0;
    border: none;
}

.table-header-selected {
    box-shadow: inset -3px 0px 0px 0px rgb(68 138 255), inset 3px 0px 0px 0px rgb(68 138 255), inset -3px 3px 0px 0px rgb(68 138 255),
        inset 3px 3px 0px 0px rgb(68 138 255) !important;
    /* border: 3px solid rgb(68 138 255) !important;
    border-bottom: none !important; */
}

.table-cell-selected {
    box-shadow: inset -3px 0px 0px 0px rgb(68 138 255), inset 3px 0px 0px 0px rgb(68 138 255) !important;
}

.table-footer-selected {
    box-shadow: inset -3px 0px 0px 0px rgb(68 138 255), inset 3px 0px 0px 0px rgb(68 138 255), inset -3px 3px 0px 0px rgb(68 138 255),
        inset 3px 3px 0px 0px rgb(68 138 255) !important;
}

.info-dialog-trigger,
.help-tooltip-dialog-trigger {
    cursor: pointer;
}

.table-item-premium {
    font-size: 28px;
    font-weight: 500;
}

/* to fix the tooltips in the tables */
#info-content .premium-table p {
    margin: 0;
}

.table-cell.table-item-offer-alert,
.table-cell.table-item-errors {
    padding: 0 !important;
    min-height: unset !important;
}

.table-footer td {
    vertical-align: baseline;
}

.table-cell .alert {
    padding: 5px 10px;
    box-shadow: none;
    border-radius: 0;
    margin: 0;
    width: 100%;
}

.table-cell .alert-negative {
    font-size: 14px;
}

.table-cell .alert.alert-positive {
    text-align: center;
    justify-content: center;
}

.table-cell .file-link{
    font-weight: normal;
}

.scroll-button {
    display: none;
    border-radius: 50%;
    background-color: #e05d22;
    color: white;
    cursor: pointer;
    position: absolute;
    padding: 10px;
    z-index: 50;
    transition: top ease 0.1s;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

.top-sticky-table {
    display: none;
    border-radius: 0;
    border: none;
    z-index: 40;
    /* transition: top ease 0.01s; */
}

.top-side-sticky-table {
    display: none;
    border-radius: 0;
    border: none;
    z-index: 41;
    border-left: 1px solid lightgray;
    border-right: lightgray 1px solid;
    /* padding: 1px; */
    background-color: white;
    border-bottom: lightgray 1px solid;
}

.side-sticky-table {
    display: none;
    /* padding: 2px; */
    border-right: none;
    border-radius: 0;
    border-left: lightgray 1px solid;
    border-right: lightgray 1px solid;
    background-color: white;
}

.top-sticky-table {
    border-left: lightgray 1px solid;
}

.top-sticky-table tr td,
.side-sticky-table tr td,
.top-side-sticky-table tr td {
    background-color: white;
    position: relative;
}

/* .top-sticky-table tr td:nth-child(2) {
    z-index: 42;
} */

.top-sticky-table tr:last-child td {
    border-bottom: 1px solid lightgray;
}

.top-sticky-table .table-header-selected {
    z-index: 45;
    box-shadow: inset -3px 0px 0px 0px rgb(68 138 255), inset 3px 0px 0px 0px rgb(68 138 255), inset -3px 3px 0px 0px rgb(68 138 255),
        inset 3px 3px 0px 0px rgb(68 138 255) !important;
    /* border: 3px solid rgb(68 138 255) !important;
    border-bottom: none !important; */
}

.top-sticky-table .table-cell-selected {
    z-index: 45;
    box-shadow: inset -3px 0px 0px 0px rgb(68 138 255), inset 3px 0px 0px 0px rgb(68 138 255) !important;
}

@media screen and (max-width: 767px) {
    .table-header {
        width: 200px;
    }

    .table-cell {
        width: 170px;
    }
}
