/* Custom Product Cards */
.product-card--button {
    text-wrap: nowrap;
}

.product-card--type {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.2rem;
}

.product-card--type .product-card--type-point {
    display: block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50px;
}

.product-card .product-card-ribbon {
    background: rgba(220, 220, 220, 1);
    color: var(--oxy-text);
    font-size: 0.8rem;
    padding: 5px;
    border-radius: 5px 0 0 5px;
}

/* Generic */
body {
    background-color: #fbf9f9;
}

.current-menu-item {
    position: relative;
    border-radius: 5px 5px 0 0;
    background-color: #fbf9f9;
}

.current-menu-item::before {
    content: "";
    position: absolute;
    top: 100%;
    width: 100%;
    height: 5px;
    background-color: #fbf9f9;
}

.acf-field-number input {
    -moz-appearance: textfield;
}

.acf-field-number input::-webkit-outer-spin-button, .acf-field-number input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

/* User Icon */
.levery-user-container{
    display: flex;
    align-items: center;
    gap: 1rem;
}

.levery-user-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50px;
    transition: 200ms;
}

.levery-user-icon:hover {
    filter: invert(1);
}

.levery-user-icon .levery-user-icon--text {
    mix-blend-mode: difference;
    color: white;
    font-weight: 700;
}

/* GridBuilder */
.wpgb-facet-4 .wpgb-reset {
    background-color: transparent !important;
    color: #454545 !important;
    border: 1px solid #c9c9c9 !important;
    border-radius: 10px !important;
    padding: 0.5rem 1rem !important;
}

#user_login{
    border-radius: 15px;
}

#user_pass{
    border-radius: 15px;
}

#wp-submit{
    background-color: #e97132;
    color: #efefef;
    margin-left: 1px;
    border-radius: 20px;
}

#wp-submit:hover {
  background-color: #454545;
}

#_login_form-4-212{
    border: 1px solid #c9c9c9;
    padding: 1rem;
    border-radius: 20px;
}

.populate-button, .calculate-button, .supplier-button {
    width: fit-content;
    min-width: 100px;
    background: transparent;
    border: 1px solid var(--oxy-primary);
    border-radius: 5px;
    padding: 0.2rem;
    font-size: 0.8rem;
    color: var(--oxy-primary);
    background: var(--oxy-text-light);
    margin-bottom: 1rem;
    cursor: pointer;
    transition: 200ms;
}

.populate-button:hover, .calculate-button:hover, .supplier-button:hover {
    background: var(--oxy-text);
    color: var(--oxy-text-light);
    border-color: var(--oxy-text);
}

/* Edit/Create Posts */
.acf-field-group:not(.inline-table) > .acf-input {
    height: 0px;
    overflow: hidden;
    transition: 300ms;
}

.acf-field-group:not(.inline-table) > .acf-input.show {
    height: fit-content;
    overflow: hidden;
}

.acf-field-group:not(.inline-table) > .acf-label label{
    cursor: pointer;
    width: fit-content;
    color: var(--oxy-primary);
    text-decoration: underline;
    position: relative;
    
}

.acf-field-group:not(.inline-table) > .acf-label label:hover{
    color: var(--oxy-primary);
}

.acf-field-group:not(.inline-table) > .acf-label.rotate-icon label:after{
    content: "\f151";
}

.acf-field-group:not(.inline-table) > .acf-label label:after{
    margin-left: 0.5rem;
    content: "\f150";
    font-family: "Font Awesome 5 Free";
    color: var(--oxy-primary);
    position: absolute;
    top: 0;
    left: 100%;
    bottom: 0;
}

.inline-table {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 16px !important;
    border: transparent !important;
}

.inline-table .acf-input {
    flex-grow: 1;
    -moz-appearance: textfield;
}

.inline-table .acf-label {
    width: 15%;
    margin: 0 !important;
}

.inline-table > .acf-input {
    width: 85%;
}

.inline-table .acf-input thead {
    display: none;
}

.inline-table.preserve-thead .acf-input thead {
    display: contents;
}

.acf-field-group > .acf-input:has(.acf-notice) {
    height: fit-content;
    overflow: hidden;
}

.acf-fields.-border {
    background: rgba(120, 120, 120, 0.1) !important;
    border-color: transparent !important;
}

.indicators-container > .acf-input {
    height: fit-content !important;
    overflow: hidden !important;
}

.indicators-container .inline-table .acf-label label {
    font-size: 0.8rem;
}

/* Comparator */
.comparator-card {
    cursor: pointer;
    transition: 200ms;
}

.comparator-card:hover .comparator-card--mask {
    background: rgba(0, 0, 0, 0.1);
}

.comparator-card.added .comparator-card--mask {
    background: rgba(0, 0, 0, 0.1);
}

.comparator-card--added-check{
    transition: 200ms;
}

.comparator-card.added .comparator-card--added-check {
    opacity: 1;
}

.comparator-card--mask {
    transition: 200ms;
}

.comparison-currently-selected-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    min-width: 200px;
    width: 200px;
    max-width: 200px;
    padding: 5px;
    padding-left: 37px;
    background: white;
    border: 1px solid var(--oxy-custom-grey);
    border-radius: 10px 0 0 10px;
    z-index: 10;
    overflow: hidden;
    transition: 500ms;
}

.comparison-currently-selected-container.closed {
    right: -168px !important;
}

.comparison-currently-selected-container:has(.comparison-currently-selected:empty) {
    min-height: 150px;
    max-height: 150px;
    right: -168px !important;
}

.comparison-currently-selected {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.comparison-currently-selected-closer {
    background: var(--oxy-primary);
    cursor: pointer;
}

.comparison-currently-selected-container:has(.comparison-currently-selected:empty) .comparison-currently-selected-closer {
    transform: rotate(180deg);
}

.comparison-currently-selected-container.closed .comparison-currently-selected-closer {
    transform: rotate(180deg);
}

.single-selected-comparison-item {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background: white;
    border: 1px solid var(--oxy-custom-grey);
    border-radius: 5px;
    width: 100%;
}

.single-selected-comparison-item:hover .single-selected-comparison-item-mask{
    background: rgba(0, 0, 0, 0.1);
}

.single-selected-comparison-item .single-selected-comparison-item-mask {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    transition: 200ms;
}

.single-selected-comparison-item img {
    max-width: 50px;
}

.single-selected-comparison-item p {
    text-align: center;
    margin: 0;
}

/* Comparison Table */

.comparison-table .comparison-section-title span{
    font-size: 1.3rem;
    font-weight: 700;
}

.comparison-table th, .comparison-table td {
    font-size: 0.8rem;
    text-align: center;
    border: 1px solid var(--oxy-custom-grey);
}

.comparison-table img{
    max-width: 200px;
}

.comparison-table .nested-table {
    font-size: 0.7rem;
    border: 1px solid var(--oxy-custom-grey);
}

.comparison-table .nested-table th {
    border: 1px solid transparent;
    border-bottom: 1px solid var(--oxy-custom-grey);
}

.comparison-table .nested-table td {
    border: 1px solid transparent;
}

#dpp-data-report{
    cursor: pointer;
}

.product-card--button:hover a{
    color: var(--oxy-text-light);
}

/* Fixes */

.frontend-admin-message {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 999;
}