:root {
    --series-padding: 48px;
    --series-gap: 10px;
    --button-radius: 8px;
}

.buy-as-legal-entity-button {
    background: #ffffff;
    color: #c00808;
    border: 2px solid #c00808;
    margin-top: 11px;
    width: 100%;
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s ease-in-out;

    &:hover {
        background: #e6e6e6;
        border: 2px solid #a70000;
    }
}

.legal__bid-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.legal__bid-popup-content {
    background-color: #fff;
    padding: 24px;
    border-radius: 6px;
    width: 90%;
    max-width: 504px;
    max-height: 90vh;
    overflow-y: auto;
}

.legal__bid-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.legal__bid-popup-title {
    margin: 0;
    font-size: 18px;
    line-height: 24px;
}

.legal__bid-popup-close {
    font-size: 28px;
    cursor: pointer;
    color: #EC3C45;
}

.legal__bid-popup-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.legal__form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.legal__form-group label {
    margin-bottom: 6px;
    line-height: 14px;
    font-weight: 400;
    font-size: 12px;
    color: #979797;
}

.legal__form-group input,
.legal__form-group textarea {
    width: 100%;
    padding: 10px 12px 10px 16px;
    border: 1px solid #D0D0D0;
    border-radius: 2px;
    font-size: 14px;
    box-sizing: border-box;

    &::placeholder {
        font-size: 12px;
        line-height: 16px;
    }
}

.legal__form-group textarea {
    resize: vertical;
}

.legal__file-upload-container {
    margin-top: 20px;
}

.legal__checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.legal__checkbox input {
    margin: 0;
}

.legal__form-submit {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-block: 11px 12px;
    font-size: 16px;
    line-height: 166%;
    border-radius: 4px;
    cursor: pointer;
    background-color: #EC3C45;
    color: white;
    border: none;
    font-weight: 400;
    margin-top: 8px;
    transition: all .2s ease-in-out;
}

.legal__form-submit:hover {
    background-color: #c00808;
}

.legal__button-upload {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px 8px;
    font-size: 16px;
    line-height: 166%;
    border-radius: 4px;
    cursor: pointer;
    background-color: white;
    color: #EC3C45;
    border: 1px solid #EC3C45;
    font-weight: 400;
}

.legal__button-upload .legal__icon {
    margin-right: 10px;
    font-size: 24px;
    font-weight: 500;
    color: #EC3C45;
}

.legal__bid-popup-form .legal__checkbox {
    width: auto;
    margin-top: 10px;
    display: flex;
    align-items: center;
    color: #d40510;
}

.legal__bid-popup-form .legal__checkbox input {
    width: auto;
    accent-color: #EC3C45;
}

.legal__bid-popup-form input:focus,
.legal__bid-popup-form textarea:focus {
    border-color: #d40510;
    outline: none;
}

.legal__bid-popup-form .legal__form-group {
    flex: 1 1 100%;
}

.legal__file-upload-flex-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.legal__file-limit {
    font-size: 14px;
    line-height: 24px;
    color: #979797;
    margin-bottom: 0;
}

.legal__file-limit-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.legal__file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.legal__remove-file {
    background: none;
    border: none;
    color: #d40510;
    cursor: pointer;
    margin-left: 10px;
}

#file-name-legal,
#file-size-legal {
    margin-right: 10px;
}

.policy-checkbox-legal {
    display: flex;
    margin-right: 5px;
}

.policy-checkbox-legal::after {
    content: "*";
    color: #d40510;
    margin-left: 3px;
    display: inline;
}

.legal__form-group label::after {
    content: "";
    display: none;
}

.legal__form-group.required label::after {
    content: "*";
    color: #d40510;
    margin-left: 2px;
    display: inline;
}

.legal__policy-link {
    text-decoration: underline;
    cursor: pointer;
}

.legal__policy-title-underlined {
    text-decoration: underline;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    color: #979797;
}

.legal__policy-title-underlined:hover {
    color: #b8040e;
    text-decoration: underline;
}

.legal__checkbox-wrap {
    display: flex;
}

.policy-checkbox-legal {
    display: flex;
    margin-right: 8px;
    margin-top: 4px;
}

.policy-checkbox-legal > input[type="checkbox"]:hover {
    box-shadow: 0 0 0 1px #EC3C45;
}

.policy-checkbox-legal > input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    position: relative;
    background-color: white;
}

.policy-checkbox-legal > input[type="checkbox"]:checked {
    background-color: #EC3C45;
}

.policy-checkbox-legal > input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.legal__policy-title {
    font-weight: 400;
    font-size: 16px;
    line-height: 166%;
    color: #979797;
}

.legal__policy-title-underlined {
    text-decoration: underline;
    cursor: pointer;
    display: inline;
}

.legal__policy-title-underlined:hover {
    color: #b8040e;
}

@media (max-width: 600px) {
    .legal__file-upload-flex-wrapper {
        flex-direction: column;
    }

    .legal__file-upload-flex-wrapper > div {
        width: 100%;
    }

    .legal__image-wrap img {
        max-width: 297px;
        width: 100%;
    }
}

.alertify-notifier {
    color: white;
}

.legal-error {
    border-color: rgb(212, 5, 16) !important;
}

.required-info {
    display: flex;
    align-items: center;
    margin-block: 8px;
    gap: 8px;
    font-size: 16px;
    line-height: 1;
    color: #979797;
}
