:root {
    --color-primary: var(--primaryColour);
}

#quotationModal {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.cad-container .cad-header {
    select {
        border-color: var(--primaryColour);
        background-color: white;
        padding: 10px 30px 10px 10px;
        min-height: 46px;
        cursor: pointer;
        appearance: none;
        border-radius: 0;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19' height='19' viewBox='0 0 19 19' fill='none'%3E%3Cpath d='M9.50021 12.5696L9.99303 12.1481L15.313 7.58806L14.3274 6.43024L9.50027 10.5686L4.67313 6.43024L3.6875 7.58806L9.0075 12.1481L9.50021 12.5696Z' fill='%23B2282F'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat no-repeat;
        background-position: calc(100% - 5px) center;
        background-size: 20px;
    }

    select:hover {
        background-color: var(--primaryColour);
        color: white;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19' height='19' viewBox='0 0 19 19' fill='none'%3E%3Cpath d='M9.50021 12.5696L9.99303 12.1481L15.313 7.58806L14.3274 6.43024L9.50027 10.5686L4.67313 6.43024L3.6875 7.58806L9.0075 12.1481L9.50021 12.5696Z' fill='%23ffffff'/%3E%3C/svg%3E") !important;
    }
}

#outer-container {
    /*display: none;*/
    height: 100%;
    margin: auto;
    max-width: 1200px;
}

#outer-container.active {
    display: block;
}

.inner-container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.download-section {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.download-section .button {
    white-space: nowrap;
    flex: 1 1;
}

/*#order-download.active {*/
/*}*/

.varName {
    display: none;
}

.tab-buttons {
    display: flex;
    margin-bottom: 16px;
}

#order-search input {
    border: 1px solid yellow;
    border-radius: 4px;
    box-sizing: border-box;
    display: block;
    margin-bottom: 8px;
    padding: 10px;
    width: 100%;
}

#order-search label {
    display: block;
    margin-bottom: 8px;
    width: 100%;
}

#viewer2d-container,
#viewer3d-container {
    flex-basis: 400px;
    height: 600px;
    min-width: 400px;
}

#table-container {
    padding-top: 40px;
    flex: 1 1 auto;
}

#viewer2d-container {
    display: none;
    background-color: white;
}

#viewer3d-container.active,
#viewer2d-container.active,
#table-container.active {
    display: block;
    /*height: 900px;*/
}

#webviewer-3d, #webviewer-2d {
    height: 100%;
    width: 100%;
}

#table {
    padding: 2px;
}

/*.viewer3d-container {*/
/*    height: 900px;*/
/*}*/

.psol-comp-Searchbar .controlcontainer .container .inputcontainer .input {
    border: 1px solid var(--primaryColour);
    outline-color: transparent;
    padding: 13px 20px;
    min-height: 52px;
}

.psol-comp-Searchbar .controlcontainer .container .inputcontainer .input::placeholder {
    color: transparent;
}

.show-placeholder .input::placeholder {
    color: grey !important;
}

.psol-comp-Searchbar .controlcontainer .container {
    gap: 10px;
}

.search-wrapper {
    margin-bottom: 15px;
    position: relative;
}

#autocomplete-box {
    padding: 10px;
    border: 1px solid var(--primaryColour);
    /*max-width: max-content;*/
    /*min-width: 280px;*/
    background-color: white;
    position: absolute;
    top: 100%;
    left: 0;
    border-top: none;
    z-index: 2;
    width: calc(100% - 62px);
}

#autocomplete-box:empty {
    display: none;
}

.suggestion-item {
    display: block;
    width: 100%;
    background: var(--lightGray);
    padding: 10px 20px;
    color: var(--textColour);
    -webkit-transition: all .2s linear;
    -moz-transition: all .2s linear;
    -ms-transition: all .2s linear;
    -o-transition: all .2s linear;
    transition: all .2s linear;
}

.suggestion-item:not(:last-child) {
    margin-bottom: 6px;
}

.suggestion-item:hover {
    background: var(--lightGrayHover);
    color: white;
}

.psol-comp-Searchbar .controlcontainer .container .primary {
    background-color: var(--primaryColour);
    color: white;
    outline-color: transparent;
    border: 1px solid var(--primaryColour);
    width: 52px;
    min-width: 52px;
    text-align: center;
    border-radius: 0;
    transition: all .3s ease;
}

.psol-comp-Searchbar .controlcontainer .container .primary:hover {
    background-color: rgba(178, 40, 47, 0.8);
}

.psol-comp-webviewer2D-header .primary {
    background-color: var(--primaryColour) !important;
    border-radius: 0;
    border-color: var(--primaryColour) !important;
}

.psol-comp-webviewer2D-header .psol-comp-webviewer2D-header {
    border-radius: 0 !important;
    border-color: var(--primaryColour) !important;
}

.navigation-panel {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.navigation-panel .language-select-wrapper {
    flex: 1 0 140px;

    select {
        width: 100%;
    }
}

@media screen and (min-width: 550px) {
    .navigation-panel .language-select-wrapper {
        flex-grow: 0;
    }
}

#go-home {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    min-width: 46px;
    width: 46px;
    padding: 0;
}

#go-home svg {
    margin-left: 0;
}

.psol-comp-allcomp-themeable {
    font-family: var(--bodyFont);
    overflow-x: auto;
    max-width: calc(100vw - 40px);
}

.sliderWrapper .psol-comp-allcomp-themeable {
    max-width: 100%;
    overflow-x: visible;
}

#download-dialog > .psol-comp-allcomp-themeable {
    max-width: 100%;
}

.psol-comp-breadcrumbs {
    border-radius: 0;
}

.psol-comp-breadcrumbs .backArrow {
    background-color: white;
    border: 1px solid var(--primaryColour);
    min-height: 46px;
    width: 46px;
    min-width: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--textColour);
    transition: all .3s ease;

    svg {
        color: var(--textColour);
        transition: all .3s ease;
    }
}

.psol-comp-breadcrumbs .backArrow:hover {
    background-color: var(--primaryColour);
}

.psol-comp-breadcrumbs .backArrow:hover svg {
    color: white !important;
}

.psol-comp-IndexGridCard .topContainer > .imageContainer > .supplierImage {
    left: -5px;
    top: -5px;
    z-index: 1;
}

.psol-comp-ActionButton.ActionButton {
    border-radius: 0;
    border: 1px solid var(--textColour);
    box-shadow: none;
    color: var(--textColour);
}

.psol-comp-ActionButton.ActionButton.toggle-active {
    border-color: var(--primaryColour);
}

#table-expandable {
    padding-top: 50px;
}

.view-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 10px;
}

.view-buttons .button {
    width: 40px;
    height: 40px;
    padding: 0;
}

.view-buttons .button.active {
    background-color: var(--primaryColour);
    color: white;
}

#browsing {
    min-height: 600px;
    height: 600px;
}

.hide {
    display: none !important;
}

#quotationModal .f-button {
    --f-close-button-bg: black;
    --f-close-border-radius: 0;
    --f-close-button-height: 60px;
    --f-close-button-width: 60px;
    --f-close-button-hover-color: var(--highlightColor);
    --f-close-button-hover-bg: black;

    top: 10px !important;
    right: 10px !important;

    &:focus-visible {
        outline: 1px solid var(--textColour);
        outline-offset: 3px;
    }
}

.quotationForm select {
    padding-right: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19' height='19' viewBox='0 0 19 19' fill='none'%3E%3Cpath d='M9.50021 12.5696L9.99303 12.1481L15.313 7.58806L14.3274 6.43024L9.50027 10.5686L4.67313 6.43024L3.6875 7.58806L9.0075 12.1481L9.50021 12.5696Z' fill='%23B2282F'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat no-repeat;
    background-position: calc(100% - 5px) center;
    background-size: 20px;
}

.quotationForm .selected_product_container {
    align-items: center;
    border: 1px solid rgba(151, 151, 151, 0.3);
}

.quotationForm .selected_product_container .ff-t-column-1 {
    border-right: 1px solid rgba(151, 151, 151, 0.3);
}

.quotationForm .selected_product_container .ff-t-column-2 {
    padding-right: 15px !important;
}

.quotationForm .selected_product_container .ff-custom_html {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.quotationForm #quote_product_container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.quotationForm #quote_product_preview {
    border-right: 1px solid rgba(151, 151, 151, 0.3) !important;
}

#requestQuotation .ff-message-success {
    margin-top: 70px;
    border: none;
    box-shadow: none;
}

#requestQuotation .ff-message-success img {
    margin-bottom: 30px;
}

#requestQuotation .ff-message-success p {
    margin-top: 6px;
}

#requestQuotation .ff-message-success p a {
    margin-top: 40px;
    display: inline-block;
}

.flatpickr-calendar.open {
    z-index: 1000000 !important;
}

.blocker {
    z-index: 999999;
}


.dialogHeaderDismissBtn {
    position: relative;
    width: 60px;
    height: 60px;
    background-color: var(--black);
    border-radius: 0;
    font-size: 0;
    right: 10px;
    top: 10px;
    margin-top: 0;
    cursor: pointer;
    background-image: none !important;
    border: none;
    overflow: hidden;
}

.dialogHeaderDismissBtn > div {
    display: none !important;
}

.dialogHeaderDismissBtn:before,
.dialogHeaderDismissBtn:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 23px;
    height: 2px;
    background-color: white;
    transform-origin: center;
    transition: transform 0.2s ease-in-out;
}

.dialogHeaderDismissBtn:before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.dialogHeaderDismissBtn:after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.dialogHeaderDismissBtn:hover:before,
.dialogHeaderDismissBtn:hover:after {
    background-color: var(--primaryColour);
}

.psol-comp-Dialog-themeable.DownloadDialog {
    max-width: 1110px;
}

.primaryBtn.downloadBtn {
    padding-top: 10px;
    padding-bottom: 10px;
    min-width: 220px;
}

.DownloadDialog-downloadButton-wrapper {
    justify-content: center;
}

.psol-comp-Dialog-themeable,
.psol-comp-Button {
    border-radius: 0 !important;
}

.DownloadDialog-body .DownloadDialog-filter-formats-wrapper {
    border-radius: 0;
}

.cad-download-status {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6); /* fullscreen backdrop */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    backdrop-filter: blur(2px);
}

.cad-download-status.hidden {
    display: none;
}

/* Loader container */
.cad-loader {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: var(--primaryColour);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 40px rgba(0,0,0,.6);
}

/* SVG spinner */
.spinner {
    width: 200px;
    height: 200px;
    transform: rotate(-90deg);
}

.spinner .path {
    stroke: #ffffff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
    animation: spin 1.4s ease-in-out infinite;
}

/* Center text */
.cad-loader .text {
    position: absolute;
    text-align: center;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    max-width: 140px;
    pointer-events: none;
}

/* Animation */
@keyframes spin {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 200;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 200;
        stroke-dashoffset: -125;
    }
}

/* Product Page component */

.cad-container {
    padding-bottom: 40px;
    padding-top: 40px;

    --table-selected-border: var(--primaryColour);
    --tableVar-selected-background: var(--primaryColour);
}

.cad-container .column-1,
.cad-container .column-2 {
    width: 100%;
}

.cad-container {
    select {
        border-color: var(--primaryColour);
        background-color: white;
        padding: 10px;
        min-height: 46px;
        cursor: pointer;
    }

    select:hover {
        background-color: var(--primaryColour);
        color: white;
    }
}

#outer-container {
    /*display: none;*/
    height: 100%;
    margin: auto;
    max-width: 1200px;
}

#outer-container.active {
    display: block;
}

.inner-container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.download-section {
    display: flex;
    margin-top: 20px;
    justify-content: center;
}

/*#order-download.active {*/
/*}*/

.varName {
    display: none;
}

.tab-buttons {
    display: flex;
    margin-bottom: 16px;
}

#order-search input {
    border: 1px solid yellow;
    border-radius: 4px;
    box-sizing: border-box;
    display: block;
    margin-bottom: 8px;
    padding: 10px;
    width: 100%;
}

#order-search label {
    display: block;
    margin-bottom: 8px;
    width: 100%;
}

#viewer2d-container,
#viewer3d-container {
    flex-basis: 400px;
    height: 600px;
    min-width: 400px;
}

#table-container {
    padding-top: 40px;
    flex: 1 1 auto;
}

#viewer2d-container {
    display: none;
    background-color: white;
}

#viewer3d-container.active,
#viewer2d-container.active,
#table-container.active {
    display: block;
    /*height: 900px;*/
}

#webviewer-3d, #webviewer-2d {
    height: 100%;
    width: 100%;
}

#table {
    padding: 2px;
}

/*.viewer3d-container {*/
/*    height: 900px;*/
/*}*/

.psol-comp-Searchbar .controlcontainer .container .inputcontainer .input {
    border: 1px solid var(--primaryColour);
    outline-color: transparent;
    padding: 13px 20px;
    min-height: 52px;
}
.psol-comp-Searchbar .controlcontainer .container .inputcontainer .input::placeholder {
    color: transparent;
}

.show-placeholder .input::placeholder {
    color: grey !important;
}

.psol-comp-Searchbar .controlcontainer .container {
    gap: 10px;
}

.search-wrapper {
    margin-bottom: 15px;
    position: relative;
}

#autocomplete-box {
    padding: 10px;
    border: 1px solid var(--primaryColour);
    /*max-width: max-content;*/
    /*min-width: 280px;*/
    background-color: white;
    position: absolute;
    top: 100%;
    left: 0;
    border-top: none;
    z-index: 2;
    width: calc(100% - 62px);
}

#autocomplete-box:empty {
    display: none;
}

.suggestion-item {
    display: block;
    width: 100%;
    background: var(--lightGray);
    padding: 10px 20px;
    color: var(--textColour);
    -webkit-transition: all .2s linear;
    -moz-transition: all .2s linear;
    -ms-transition: all .2s linear;
    -o-transition: all .2s linear;
    transition: all .2s linear;
}

.suggestion-item:not(:last-child) {
    margin-bottom: 6px;
}

.suggestion-item:hover {
    background: var(--lightGrayHover);
    color: white;
}

.psol-comp-Searchbar .controlcontainer .container .primary {
    background-color: var(--primaryColour);
    color: white;
    outline-color: transparent;
    border: 1px solid var(--primaryColour);
    width: 52px;
    min-width: 52px;
    text-align: center;
    border-radius: 0;
    transition: all .3s ease;
}
.psol-comp-Searchbar .controlcontainer .container .primary:hover {
    background-color: rgba(178, 40, 47, 0.8);
}

.navigation-panel {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

#go-home {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    min-width: 46px;
    width: 46px;
    padding: 0;
}

#go-home svg {
    margin-left: 0;
}

.psol-comp-breadcrumbs .backArrow {
    background-color: white;
    border: 1px solid var(--primaryColour);
    min-height: 46px;
    width: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--textColour);
    transition: all .3s ease;

    svg {
        color: var(--textColour);
        transition: all .3s ease;
    }
}

.psol-comp-breadcrumbs .backArrow:hover {
    background-color: var(--primaryColour);
}

.psol-comp-breadcrumbs .backArrow:hover svg {
    color: white !important;
}

.psol-comp-IndexGridCard .topContainer > .imageContainer > .supplierImage {
    left: -5px;
    top: -5px;
    z-index: 1;
}

/*Project View*/

#prj-view {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

@media screen and (min-width: 1024px) {
    #prj-view {
        flex-wrap: nowrap;
    }

    #prj-view .column-1 {
        width: 60%;
    }
    #prj-view .column-2 {
        width: 40%;
    }
}

.psol-comp-ActionButton.ActionButton {
    border-radius: 0;
    border: 1px solid var(--textColour);
    box-shadow: none;
    color: var(--textColour);
}

.psol-comp-ActionButton.ActionButton.toggle-active {
    border-color: var(--primaryColour);
}

#table-expandable {
    padding-top: 50px;
}

.view-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 10px;
}

.view-buttons .button {
    width: 40px;
    height: 40px;
    padding: 0;
}

.view-buttons .button.active {
    background-color: var(--primaryColour);
    color: white;
}

#browsing {
    min-height: 600px;
    height: 600px;
}

.hide {
    display: none !important;
}

#productNB {
    padding: 10px;
    background-color: var(--lightGray);
    display: inline-block;
    margin-bottom: 10px;
    min-height: 43px;
}
