.section-panel {
    padding-bottom: 20px;
}

.section-title-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.go-back-button {
    padding: 0;
    padding-bottom: 0.25rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 0.5rem;

    background-color: unset;
    border: none;
    border-bottom: 2px solid var(--company-color1);
}

.go-back-text {
    color: var(--company-color1);
}

.go-back-arrow {
    height: 1rem;
}

.card-grid {
    display: -ms-grid;
    display: grid;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    grid-template-columns: repeat(auto-fit, 280px);
    gap: 1rem;
}

.card {
    width: 280px;
    padding: 0;

    display: -webkit-box;

    display: -ms-flexbox;

    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;

    border: none;
    background-color: var(--light-font-color);
    -webkit-box-shadow: 0px 0px 10px 2px var(--boxshadow-color);
    box-shadow: 0px 0px 10px 2px var(--boxshadow-color);
}

.card-image {
    width: 280px;
    height: 280px;
    -o-object-fit: cover;
    object-fit: cover;
    border-bottom: 1px solid var(--light-input-color);
}

.card-content {
    width: 100%;
    /* height: 100%; */
    padding: 1rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    gap: 2rem;
}

.card-data-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 0.15rem;
}

.card-title {
    width: 100%;
    font-size: 1.25em;
    text-align: start;
    text-wrap: nowrap;
    overflow: hidden;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    font-family: var(--bold-font);
}

.card-subtitle {
    width: 100%;
    font-size: 0.8em;
    text-align: start;
    text-wrap: nowrap;
    overflow: hidden;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    font-family: var(--bold-font);
    color: var(--input-color);
}

.view-product-span {
    color: var(--company-color1);
    -ms-flex-item-align: end;
    -ms-grid-row-align: end;
    align-self: end;
}

.chemical-data-panel {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    position: relative;
}

.all-chemicals-searchbar {
    width: 100% !important;
    max-width: 30rem !important;
    position: relative !important;
}

.all-chemicals-searchbar.hide-searchbar {
    display: none;
}

.similars-searchbar {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    position: relative;
    margin-bottom: 1rem;
}

.similars-searchbar-icon {
    height: 1rem;
    width: 1rem;
    position: absolute;
    left: 0.8rem;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

.similars-searchbar-input {
    width: 100%;
    padding: 0.5rem 2rem;
    border: 2px solid var(--light-input-color);
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
}

.similars-searchbar>hr {
    width: calc(100% - 1rem);
    margin: 0;
    border-width: 1px;
    color: var(--input-color);

    position: absolute;
    left: 0.5rem;
    bottom: calc(0.5rem - 2px);
}

.similar-chemicals-list {
    margin: 0;
    padding: 0.5rem 1rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    overflow-x: scroll;
    border: 2px solid var(--input-color);
}

.chemical-li-card {
    min-width: 12.5rem;
    width: 100%;
    /* margin-right: 2rem; */
    padding: 0 1rem;
    border-right: 1px solid var(--input-color);
}

.similar-chemicals-list>:last-child {
    margin-right: 0;
    border-right: unset;
}

#no-chemicals-li {
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    border-right: none;
}

.selected-card-button {
    background-color: #eaecf0;
}

.selected-card-button * {
    font-weight: bold;
}

.selected-card-button .hidden-chem-li-data {
    display: block;
}

.chemical-li-card-button {
    width: 100%;
    padding: 0.5rem;
    border: none;
    background-color: unset;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 0.15rem;
}

.hidden-chem-li-data {
    display: none;
}

.chem-li-title,
.chem-li-data {
    width: 100%;
    text-align: start;
    text-wrap: nowrap;
    overflow: hidden;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
}

.chem-li-title {
    font-family: var(--bold-font);
}

.chem-li-data {
    font-size: 0.8em;
    color: var(--dark-input-color);
    font-weight: bold;
}

.panel-main-content {
    min-width: 60%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

.panel-title {
    width: 100%;
    padding: 1rem;
    margin: 0;
    font-size: 1.5rem;
    text-align: center;
    text-wrap: nowrap;
    overflow: hidden;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
}

.action-button-group {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.regular-button,
.selected-button {
    width: 15rem;
    padding: 0.5rem 1rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
}

.regular-button {
    background-color: unset;
    border: none;
    border-bottom: 2px solid var(--company-color1);
}

.regular-button>.button-text {
    color: var(--company-color1);
    font-size: 1em;
}

.regular-button>.button-img {
    height: 0.7em;
    margin-top: 0.5rem;
}

.selected-button {
    background-color: var(--company-color1);
    border: none;
}

.selected-button>.button-text {
    color: var(--light-font-color);
    font-size: 1em;
}

.selected-button>.button-img {
    display: none;
}

.data-panel {
    margin-top: 1rem;
}

.tabs-group {
    padding: 0;
    margin: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.tab-contianer {
    padding: 0.25rem 1rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    border: 2px solid #e1e1e1;
}

.tab-contianer>button {
    padding: 0;
    background-color: unset;
    border: none;
}

.tab-selected {
    background-color: #e1e1e1;
}

.tab-selected>button {
    color: var(--dark-input-color);
    font-weight: bold;
}

.chemical-panels {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 2rem;
}

.data-section {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 2rem;
    border-top: 1px solid var(--light-input-color);
}

.chemical-panels>:first-child {
    border: unset;
}

.data-section-title {
    margin: 0;
    padding: 1rem 1rem 0 1rem;
    font-size: 1.1em;
}

.data-double-group {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 2rem;
}

.data-group {
    padding: 0 1rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 1rem;
}

.data-group>span {
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    overflow: hidden;
}

.data-section-subtitle {
    margin: 0;
}

#product-description {
    margin: 0;
    text-align: justify;
}

.request-a-quote-panel {
    margin-top: 1rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 1rem;
}

.request-form {
    width: 80%;
    padding: 1rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: start;
    gap: 1rem;
    border: 2px solid var(--light-input-color);
}

.input-group {
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group>span {
    font-weight: bold;
}

.input-group>input {
    padding: 0.5rem 1rem;
    border: none;
    border-bottom: 2px solid var(--dark-input-color);
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
}

.checkbox-group {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: reverse;
    -ms-flex-direction: row-reverse;
    flex-direction: row-reverse;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: start;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 1rem;
}

.checkbox-group>input {
    height: 1rem;
    width: 1rem;
    margin: 0;
}

.checkbox-group>span {
    color: var(--input-color);
    font-weight: bold;
}

.inquire-button {
    padding: 0.5rem 2.5rem;
    background-color: var(--company-color1);
    color: var(--light-font-color);
    border: none;
}

#chemical-properties {
    margin-top: 1rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 1rem;
}

#chemical-properties>.header-row>* {
    font-family: var(--bold-font);
}

#chemical-properties>.header-row,
#chemical-properties>.row {
    padding-bottom: 0.25rem;
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 25% 1fr;
    grid-template-columns: 25% 1fr;
    border-bottom: 1px solid var(--input-color);
}

#chemical-properties>:last-child {
    border-bottom: none;
}

#chemical-properties>.header-row>span,
#chemical-properties>.row>span {
    overflow: hidden;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
}

.no-properties-row {
    display: flex !important;
}

.no-properties-row>span {
    width: 100%;
    text-align: center;
}

.no-chemicals-matched {
    display: none;
    width: 100%;
    text-align: center;
    font-size: 1.25rem;
}

@media (width>=425px) {
    .tabs-group {
        -webkit-box-orient: unset;
        -webkit-box-direction: unset;
        -ms-flex-direction: unset;
        flex-direction: unset;
    }
}

@media (width>=768px) {
    .action-button-group {
        -webkit-box-orient: unset;
        -webkit-box-direction: unset;
        -ms-flex-direction: unset;
        flex-direction: unset;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        gap: 1rem;
    }

    .data-double-group {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: unset;
        -webkit-box-direction: unset;
        -ms-flex-direction: unset;
        flex-direction: unset;
        gap: 0;
    }

    .data-double-group>:first-child {
        width: 20rem;
    }

    .data-double-group>:last-child {
        -webkit-box-flex: 1;
        -ms-flex: 1;
        flex: 1;
    }
}

@media (width>=1024px) {
    .action-button-group {
        -webkit-box-pack: start;
        -ms-flex-pack: start;
        justify-content: start;
    }

    .section-title-container {
        -webkit-box-orient: unset;
        -webkit-box-direction: unset;
        -ms-flex-direction: unset;
        flex-direction: unset;
        -webkit-box-align: end;
        -ms-flex-align: end;
        align-items: end;
    }

    .go-back-button {
        margin-bottom: calc(10px - 0.25rem);
        margin-left: auto;
    }

    .similar-chemicals-list {
        height: 70vh;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        overflow: hidden;
    }

    .similar-chemicals-list:hover {
        padding-right: calc(1rem - var(--scrollbar-width));
        overflow-y: scroll;
    }

    .panel-title {
        padding: 0;
        padding-bottom: 1rem;
        text-align: unset;
    }

    .similars-searchbar {
        position: absolute;
    }

    .similar-chemicals-list {
        margin-top: calc(41px + 1rem);
    }

    .similar-chemicals-list>:last-child {
        border-bottom: unset;
    }

    .chemical-li-card {
        border-right: unset;
        margin-right: 0;
        border-bottom: 1px solid var(--input-color);
        padding: 0.5rem 0;
    }

    .similars-searchbar,
    .similar-chemicals-list {
        width: 30%;
        max-width: 20rem;
    }

    .chemical-data-panel {
        height: inherit;
        -webkit-box-orient: unset;
        -webkit-box-direction: unset;
        -ms-flex-direction: unset;
        flex-direction: unset;
        gap: 1rem;
    }

    .chemical-panels {
        /* height: calc(70vh - 4px - 1rem - 33px); */
        -webkit-box-flex: 1;
        -ms-flex: 1;
        flex: 1;
        padding: 0 1rem 1rem 0;
        overflow-y: hidden;
    }

    .chemical-panels:hover {
        padding-right: calc(1rem - var(--scrollbar-width));
        overflow-y: scroll;
    }

    .request-a-quote-panel {
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: start;
    }

    .panel-main-content {
        display: block;
        height: inherit;
    }

    .all-chemicals-searchbar {
        margin-bottom: calc(10px);
        padding-bottom: 0;
    }
}