.btn-info,
.btn-default,
.btn-primary,
.po-button,
.po-button-2 {
    padding: 6px 24px;

    font-family: "Raleway";
    font-weight: 500;
    font-size: 1.25rem;
    line-height: 120%;
    font-feature-settings: "lnum";
    font-variant-numeric: tabular-nums;

    border: none;
    border-radius: 4px;
    cursor: pointer;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    text-decoration: none;

    width: fit-content;
    height: auto;

    -webkit-transition: border-color 0.2s linear, color 0.2s linear,
        background-color 0.2s linear;
    -o-transition: border-color 0.2s linear, color 0.2s linear,
        background-color 0.2s linear;
    transition: border-color 0.2s linear, color 0.2s linear,
        background-color 0.2s linear;
}

/*  */
.btn-info,
.po-button {
    color: #ffffff;
    border: 1px solid #ff1441;
    background-color: #ff1441;
}

.btn-info:hover:not(:disabled),
.po-button:hover:not(:disabled) {
    background-color: #ff1441;
    color: rgba(255, 255, 255, 0.5);
    border-color: #ff1441;
    text-decoration: none;
}

.btn-info:active:not(:disabled),
.btn-info:focus:not(:disabled),
.po-button:active:not(:disabled),
.po-button:focus:not(:disabled) {
    color: #ffffff;
    border-color: #de0d35;
    background-color: #de0d35;
    text-decoration: none;
}

.btn-info:disabled,
.po-button:disabled,
.po-button.is-disabled {
    color: #fff;
    border: 1px solid #e6b3bd;
    background-color: #e6b3bd;
    cursor: not-allowed;
    pointer-events: none;
}

/*  */
.btn-default,
.po-button-2 {
    color: #ff1441;
    border: 1px solid #ff1441;
    background-color: transparent;
}

.btn-default:hover:not(:disabled),
.po-button-2:hover:not(:disabled) {
    color: rgba(255, 20, 65, 0.5);
    background-color: transparent;
    border: 1px solid #ff1441;
    text-decoration: none;
}
.btn-default:active:not(:disabled),
.po-button-2:active:not(:disabled),
.po-button-2:focus:not(:disabled) {
    color: #de0d35;
    border: 1px solid #de0d35;
    text-decoration: none;
}
.btn-default:disabled,
.po-button-2:disabled,
.po-button-2.is-disabled {
    color: #e6b3bd;
    border: 1px solid #e6b3bd;
    cursor: not-allowed;
    pointer-events: none;
}

/* <--------------------------------------> */

.po-icon-wrap {
    display: flex;
    align-items: center;
}

.icon-button {
    color: #ff1441;
}

.icon-button:hover,
.icon-button:focus {
    color: rgba(255, 20, 65, 0.5);
}

.icon-button:active {
    color: #de0d35;
}

.icon-button:disabled,
.icon-button.is-disabled {
    color: #e6b3bd;
    cursor: not-allowed;
    pointer-events: none;
}

.po-icon-txt {
    font-family: "Raleway";
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 120%;
    font-feature-settings: "lnum";
    font-variant-numeric: tabular-nums;

    margin-left: 10px;
}

/* <--------------------------------------> */

.po-input {
    box-sizing: border-box;
    width: 100%;
    padding: 4px 12px;

    min-height: 35px;

    background: #fafafa;
    border: 1px solid rgba(31, 33, 49, 0.2);
    border-radius: 4px !important;

    font-family: "Raleway";
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 120%;
    font-feature-settings: "lnum";
    font-variant-numeric: tabular-nums;

    color: #1f2131;

    outline: none;
    transition: border 0.2s ease;
}

.po-input:hover {
    color: #1f2131;
    background-color: #fafafa;
    outline: 0;
    box-shadow: none;
    box-sizing: border-box;
    border: 1px solid rgba(31, 33, 49, 0.5);
    border-radius: 4px;
}

.po-input:disabled {
    color: #1f2131;
    background: #fafafa;
    border: 1px solid rgba(31, 33, 49, 0.2);
    border-radius: 4px;
}

/* Стили для placeholder с префиксами */
.po-input::placeholder {
    color: #1f213180 !important;
}
.po-input:-ms-input-placeholder {
    color: #1f213180 !important;
}
.po-input::-ms-input-placeholder {
    color: #1f213180 !important;
}
.po-input::-webkit-input-placeholder {
    color: #1f213180 !important;
}
.po-input::-moz-placeholder {
    color: #1f213180 !important;
}
.po-input:-moz-placeholder {
    color: #1f213180 !important;
}

.po-input-error {
    color: #ff1441 !important;
    border-color: #ff1441;
}

input.po-input-error {
    border-color: #ff1441 !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input.po-input.is-invalid {
    color: #ff1441 !important;
    border-color: #ff1441 !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input.po-input-error:-webkit-autofill {
    border-color: #ff1441 !important;
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    box-shadow: 0 0 0 1000px #fff inset !important;
    background-color: #fff !important;
    color: #ff1441 !important;
}

/* <--------------------------------------> */

.po-textarea {
    max-width: 500px;
    min-height: 72px;
    padding: 10px;
}

.po-textarea-2 {
    max-width: 900px;
    min-height: 72px;
    padding: 10px;
}

/* <--------------------------------------> */

/* Контейнер селекта */
.nice-select.po-customer-selector {
    min-height: 35px;
    box-sizing: border-box;

    -webkit-tap-highlight-color: transparent;
    clear: both;
    cursor: pointer;
    outline: none;
    position: relative;
    text-align: left !important;
    transition: all 0.2s ease-in-out;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

    width: auto;
    height: 36px;
    background: #fafafa;
    border: 1px solid rgba(31, 33, 49, 0.2);
    border-radius: 4px;
    padding: 10px;
    padding-right: 30px;

    font-family: "Raleway", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 120%;
    font-feature-settings: "lnum";
    font-variant-numeric: tabular-nums;

    color: #1f2131;
    display: flex;
    align-items: center;
}

.nice-select.po-customer-selector:focus,
.nice-select.po-customer-selector:hover {
    color: #1f2131;
    background-color: #fafafa;
    outline: 0;

    box-shadow: none;
    box-sizing: border-box;
    border: 1px solid rgba(31, 33, 49, 0.5);
    border-radius: 4px;
}

.nice-select.po-customer-selector.open .list {
    min-width: 100%;
    opacity: 1;
    pointer-events: auto;
    -webkit-transform: scale(1) translateY(0);
    transform: scale(1) translateY(0);
}

.nice-select.po-customer-selector .list {
    background-color: #fff;
    box-shadow: 0 0 0 1px rgba(68, 68, 68, 0.11);
    box-sizing: border-box;
    opacity: 0;
    overflow: hidden;
    padding: 0;
    pointer-events: none;
    position: absolute;
    top: 100%;
    left: 0;
    -webkit-transform-origin: 50% 0;
    transform-origin: 50% 0;
    -webkit-transform: scale(0.75) translateY(-21px);
    transform: scale(0.75) translateY(-21px);
    transition: all 0.2s cubic-bezier(0.5, 0, 0, 1.25), opacity 0.15s ease-out;
    z-index: 9;
}

/* Текущий выбранный элемент */
.nice-select.po-customer-selector .current {
    /* color: #1F2131; */
    font-size: 0.875rem;
}

/* Выпадающий список */
.nice-select.po-customer-selector .list {
    width: 216px;
    background: #ffffff;
    /* border: 1px solid rgba(31, 33, 49, 0.2); */
    /* border-radius: 4px; */
    top: calc(100% + 4px);
    /* немного отступить от основного блока */
    z-index: 99;
}

/* Отдельный пункт */
.nice-select.po-customer-selector .option {
    /* margin-bottom: 5px; */
    min-height: 35px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    font-family: "Raleway", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 0.75rem;
    line-height: 120%;
    font-feature-settings: "lnum";
    font-variant-numeric: tabular-nums;

    color: #1f2131;
    position: relative;
    cursor: pointer;
}

.nice-select.po-customer-selector .option:not(:last-child) {
    border-bottom: 1px solid rgba(31, 33, 49, 0.2);
}

/* Нижняя граница как в Figma */
.nice-select.po-customer-selector .option::after {
    content: "";
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(31, 33, 49, 0.2);
    border-radius: 4px;
}

/* Hover эффект */
.nice-select.po-customer-selector .option:hover {
    /* background: #f5f5f5; */
    color: #ff1441;
}

.nice-select.po-customer-selector .option.selected {
    background: #ff1441;
    color: #fff;
    border-bottom: unset;
}

.nice-select.po-customer-selector:after {
    background: url(/assets/img/new_po/icon/down.svg) center center no-repeat;
    box-sizing: border-box;
    height: 100%;
    width: 32px;
    content: "";
    display: block;
    pointer-events: none;
    position: absolute;
    right: 0px;
    top: 0px;
}

.nice-select.po-customer-selector .current.placeholder {
    color: #a0a0a0;
}

.nice-select.po-customer-selector.is-error {
    color: #ff1441;
    border: 1px solid #ff1441;
}

.nice-select.po-customer-selector .option.disabled {
    opacity: 0.5;
    color: #ff1441;
    background: #fff;
    /* background: rgba(31, 33, 49, 0.2) */
}

.nice-select.disabled {
    pointer-events: none;
    opacity: 0.5;
}

.nice-select.disabled::after {
    pointer-events: none;
    opacity: 0.5;
}

/* <--------------------------------------> */

.is-error {
    color: #ff1441 !important;
    border: 1px solid #ff1441 !important;
}

/* <--------------------------------------> */

.po-custom-number-input {
    position: relative;
}

.po-custom-number-input input {
    width: 100%;
    box-sizing: border-box;
}

.po-spinner-buttons {
    position: absolute;
    top: 2px;
    bottom: 2px;
    right: 2px;

    width: 27px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0px;
    pointer-events: none;

    background-color: #fafafa;
}

.po-spinner-buttons img {
    width: 12px;
    height: 12px;
    cursor: pointer;
    pointer-events: auto;
    user-select: none;
}

/* Убираем стандартные стрелки */
.po-custom-number-input input[type="number"]::-webkit-inner-spin-button,
.po-custom-number-input input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.po-custom-number-input input[type="number"] {
    -moz-appearance: textfield;
}

/* <--------------------------------------> */
