
/* ********************* Buttons ********************************* */

.bid-button-subtle {
    display: flex;
    align-items: center;
    border: none;
    background: transparent;
    cursor: pointer;

    & > .inner-icon {
        display: flex;
        background: var(--footer-background);
    }
}

.bid-button-outline {
    display: flex;
    align-items: center;
    background: transparent;
    border: 1px solid var(--footer-background);
    border-radius: 0.375rem;
    cursor: pointer;
    color: var(--footer-background);
    width: fit-content;
    & > .inner-icon {
        display: flex;
        background: var(--footer-background);
    }
}

.bid-button-secondary {
    display: flex;
    border-radius: 0.375rem;
    border: none;
    background:  var(--footer-background);
    cursor: pointer;
    color: var(--white);

    & > .inner-icon {
        display: flex;
        background: var(--white);
    }

    &:hover {
        background: var(--secondary-5);
    }
}

.bid-button-gray {
    display: flex;
    align-items: center;
    border-radius: 0.375rem;
    border: none;
    background:  var(--light-gray);
    cursor: pointer;
    color: var(--primary-5);
    
    & > .inner-icon {
        display: flex;
        background: var(--primary-5);
    }

    &:hover {
        background: var(--tags-border);
    }
}

.bid-button-sm {
   gap: 0.5rem; 
   padding: 0.62rem 1.38rem;

   & > .inner-icon {
    width: 1.25rem;
    height: 1.25rem;
}
}

.bid-button-compact-sm {
    gap: 0.38rem;
    padding: 0;
    & > .inner-icon {
        width: 0.875rem;
        height: 0.875rem;
    }
}


/* *************** Actions icons ****************************** */
.bid-action-icon-primary-transparent {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    & > .inner-icon {
        background: var(--black);
        &:hover {
            background: var(--lucky-gray);
        }
    }
}

.bid-action-icon-secondary-transparent {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    & > .inner-icon {
        background: var(--footer-background);
        &:hover {
            background: var(--secondary-5);
        }
    }
}

.bid-action-icon-primary-outline {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    border: 1px solid var(--Primary-Primary-3, var(--tags-border));
    background: transparent;
    & > .inner-icon {
        background: var(--black);
    }
}

.bid-close-button-md {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    & > .inner-icon {
        background: var(--lucky-gray);
        &:hover {
            background: var(--primary-5);
        }
    }

}

.bid-action-icon-xs {
    width: 1.25rem;
    height: 1.25rem;
    & > .inner-icon {
        width: 1rem;
        height: 1rem;
    }
}

.bid-action-icon-sm {
    width: 2.625rem;
    height: 2.625rem;
    min-width: 2.625rem;
    min-height: 2.625rem;
    & > .inner-icon {
        width: 1.25rem;
        height: 1.25rem;
    }
}

.bid-close-button-md {
    width: 2.5rem;
    height: 2.5rem;
    & > .inner-icon {
        width: 1.25rem;
        height: 1.25rem;
    }
}

/* *************** Badge ****************************** */

.bid-badge-light-secondary {
    border-radius: 0.5rem;
    background: var(--secondary-1);
    height: fit-content;
    & > .text {
        color: var(--footer-background);
    }
}

.bid-badge-light-green {
    border-radius: 0.5rem;
    background: var(--green-1);
    & > .text {
        color: var(--green-4);
    }
}

.bid-badge-dot-secondary {
    border-radius: 0.5rem;
    border: 1px solid  var(--light-gray);
    background:  var(--white-smoke);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    height: fit-content;
    
    & > .dot {
        border-radius: 100%;
        width: 0.5rem;
        height: 0.5rem;
        background: var(--footer-background);
    }
}

.bid-badge-md {
    padding: 0.56rem 0.88rem;
}

.bid-badge-xs {
    padding: 0.38rem 0.75rem;
}
/************************** Инпут *************************************/

.bid-input-container {
    gap: 0.38rem;
    width: 100%;

    & .bid-input-wrapper {
        display: flex;
        border-radius: var(--Radius-Input, 0.375rem);
        background:  var(--white-smoke);
        padding: 0.625rem 0.75rem;
        border: none;
        gap: 0.62rem;

        & > .bid-input {
            background: var(--white-smoke);
            border: none;
            width: 100%;
            
            &:focus-visible {
                outline: none;
            }
        }

        & > .inner-icon {
            width: 1.125rem;
            height: 1.125rem;
            background: var(--primary-5);
            cursor: pointer;
        }
    }
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.checkbox + label {
    display: flex;
    align-items: center;
    user-select: none;
    cursor: pointer;
}

.checkbox + label:before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    flex-grow: 0;
    border: 2px solid var(--light-gray);
    border-radius: 6px;
    margin-right: 12px;
    background-repeat: no-repeat;
    background-position: center center;
    background-color: var(--white);
    background-size: 70% 70%;
}

.checkbox:checked + label::before {
    border-color: var(--light-green);
    background-color: var(--light-green);
    background-image: url('data:image/svg+xml,%3csvg width="15" height="12" viewBox="0 0 15 12" fill="none" xmlns="http://www.w3.org/2000/svg"%3e%3cpath fill-rule="evenodd" clip-rule="evenodd" d="M14.3751 1.12621C14.7656 1.51673 14.7656 2.1499 14.3751 2.54042L6.04174 10.8738C5.85421 11.0613 5.59985 11.1666 5.33464 11.1666C5.06942 11.1666 4.81506 11.0613 4.62753 10.8738L0.460862 6.70709C0.0703377 6.31656 0.0703377 5.6834 0.460862 5.29287C0.851386 4.90235 1.48455 4.90235 1.87508 5.29287L5.33464 8.75243L12.9609 1.12621C13.3514 0.735682 13.9846 0.735682 14.3751 1.12621Z" fill="white"/%3e%3c/svg%3e');
}

.checkbox.error + label::before {
    border: 1px solid var(--red);
}

.checkbox:checked.error + label::before {
    border-color: var(--light-green);
}

.radiobutton-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radiobutton {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.radiobutton + label {
    display: flex;
    align-items: center;
    user-select: none;
    cursor: pointer;
}

.radiobutton + label:before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    flex-grow: 0;
    border: 2px solid var(--light-gray);
    border-radius: 50%;
    margin-right: 12px;
    background-color: var(--white);
    box-sizing: border-box;
}

.radiobutton:checked + label::before {
    border-color: var(--light-green);
    border-width: 5px;
}

.radiobutton.error + label::before {
    border: 1px solid var(--red);
}
.radiobutton:checked.error + label::before {
    border-color: var(--light-green);
    border-width: 5px;
}

/*********************************************************************/


.bid-select-button {
    border-radius: var(--Radius-Input, 0.375rem);
    background:  var(--white-smoke);
    padding: 0.625rem 0.75rem;  
    display: flex;
    cursor: pointer;
    align-items: center;
    border: none;
    gap: 0.62rem;

    & > .inner-icon {
        width: 1.125rem;
        height: 1.125rem;
        background: var(--primary-5);
        cursor: pointer;
    }

    & > .inner-text {
        display: flex;
        width: 100%;
        align-items: start;
    }
}


.bid-textarea {
    display: flex;
    border-radius: var(--Radius-Input, 0.375rem);
    background:  var(--white-smoke);
    padding: 0.625rem 0.75rem;
    width: 100%;
    outline: none;
    resize: none;
    height: 8.625rem;
    margin: 0;
    border: none;
    &:focus-visible {
        outline: none;
    }
}