.basket-item-comment-popup {
    --comment-popup-arrow-left: 24px;

    position: fixed;
    z-index: 1000;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    width: 420px;
    max-width: calc(100vw - 24px);
    margin: 0;
    padding: 16px;
    background: #fff;
    border: 1px solid #d5dce0;
    border-radius: 4px;
    -webkit-box-shadow: 0 5px 18px rgba(28, 37, 41, 0.16);
            box-shadow: 0 5px 18px rgba(28, 37, 41, 0.16);
}

.basket-item-comment-popup[hidden] {
    display: none;
}

.basket-item-comment-popup::before {
    position: absolute;
    top: -6px;
    left: var(--comment-popup-arrow-left);
    width: 10px;
    height: 10px;
    background: #fff;
    border-top: 1px solid #d5dce0;
    border-left: 1px solid #d5dce0;
    content: '';
    -webkit-transform: translateX(-50%) rotate(45deg);
        -ms-transform: translateX(-50%) rotate(45deg);
            transform: translateX(-50%) rotate(45deg);
}

.basket-item-comment-popup--above::before {
    top: auto;
    bottom: -6px;
    border: 0;
    border-right: 1px solid #d5dce0;
    border-bottom: 1px solid #d5dce0;
}

.basket-item-comment-popup__title {
    display: block;
    margin: 0 0 8px;
    color: #253137;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.basket-item-comment-popup__field {
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    display: block;
    width: 100%;
    min-height: 72px;
    margin: 0;
    padding: 10px 12px;
    resize: vertical;
    color: #253137;
    background: #fff;
    border: 1px solid #cbd4d9;
    border-radius: 4px;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.4;
}

.basket-item-comment-popup__field:focus {
    border-color: #079436;
    outline: 0;
    -webkit-box-shadow: 0 0 0 1px #079436;
            box-shadow: 0 0 0 1px #079436;
}

.basket-item-comment-popup__field:disabled {
    color: #89979e;
    background: #f1f3f4;
}

.basket-item-comment-popup__note {
    margin: 9px 0 12px;
    color: #7a878d;
    font-size: 12px;
    line-height: 1.4;
}

.basket-item-comment-popup__actions {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 10px;
}

.basket-item-comment-popup__save,
.basket-item-comment-popup__cancel {
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    min-width: 100px;
    min-height: 38px;
    margin: 0;
    padding: 8px 16px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
}

.basket-item-comment-popup__save {
    color: #fff;
    background: #079436;
    border: 1px solid #079436;
}

.basket-item-comment-popup__save:hover {
    background: #067d2e;
    border-color: #067d2e;
}

.basket-item-comment-popup__cancel {
    color: #53646c;
    background: #fff;
    border: 1px solid #cbd4d9;
}

.basket-item-comment-popup__cancel:hover {
    color: #253137;
    background: #f3f5f6;
    border-color: #b8c3c8;
}

.basket-item-comment-popup__save:disabled,
.basket-item-comment-popup__cancel:disabled {
    opacity: 0.55;
    cursor: default;
}
[data-basket-comment-editor-container] {
    width: 100%;
}

.basket-comment-editor {
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    background: #f7f9fa;
    border: 1px solid #e0e6eb;
    border-radius: 4px;
}

.basket-comment-editor[hidden] {
    display: none;
}

/*
 * Поле комментария
 */
.basket-comment-editor__textarea {
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    display: block;
    width: 100%;
    min-height: 100px;
    margin: 0;
    padding: 10px 12px;
    resize: vertical;
    color: #30383d;
    background: #fff;
    border: 1px solid #d5dce0;
    border-radius: 4px;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.45;
    -webkit-transition:
            border-color 0.15s ease,
            -webkit-box-shadow 0.15s ease;
    transition:
            border-color 0.15s ease,
            -webkit-box-shadow 0.15s ease;
    -o-transition:
            border-color 0.15s ease,
            box-shadow 0.15s ease;
    transition:
            border-color 0.15s ease,
            box-shadow 0.15s ease;
    transition:
            border-color 0.15s ease,
            box-shadow 0.15s ease,
            -webkit-box-shadow 0.15s ease;
}

.basket-comment-editor__textarea:focus {
    border-color: #079436;
    outline: 0;
    -webkit-box-shadow: 0 0 0 1px #079436;
            box-shadow: 0 0 0 1px #079436;
}

.basket-comment-editor__textarea:disabled {
    color: #89979e;
    background: #f1f3f4;
    cursor: default;
}

/*
 * Кнопки
 */
.basket-comment-editor__actions {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin-top: 10px;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 8px;
}

.basket-comment-editor__save,
.basket-comment-editor__cancel {
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    min-height: 36px;
    margin: 0;
    padding: 7px 14px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    line-height: 20px;
    cursor: pointer;
    -webkit-transition:
            background-color 0.15s ease,
            border-color 0.15s ease,
            color 0.15s ease,
            opacity 0.15s ease;
    -o-transition:
            background-color 0.15s ease,
            border-color 0.15s ease,
            color 0.15s ease,
            opacity 0.15s ease;
    transition:
            background-color 0.15s ease,
            border-color 0.15s ease,
            color 0.15s ease,
            opacity 0.15s ease;
}

/*
 * Сохранить
 */
.basket-comment-editor__save {
    color: #fff;
    background: #079436;
    border: 1px solid #079436;
}

.basket-comment-editor__save:hover {
    background: #067d2e;
    border-color: #067d2e;
}

/*
 * Отмена
 */
.basket-comment-editor__cancel {
    color: #53646c;
    background: #fff;
    border: 1px solid #cbd4d9;
}

.basket-comment-editor__cancel:hover {
    color: #253137;
    background: #f3f5f6;
    border-color: #b8c3c8;
}

/*
 * Disabled
 */
.basket-comment-editor__save:disabled,
.basket-comment-editor__cancel:disabled {
    opacity: 0.55;
    cursor: default;
}

/*
 * Mobile
 */
@media (max-width: 767px) {
    .basket-comment-editor {
        margin-top: 8px;
        padding: 10px;
    }

    .basket-comment-editor__textarea {
        min-height: 90px;
        font-size: 16px;
    }

    .basket-comment-editor__actions {
        -webkit-box-pack: end;
            -ms-flex-pack: end;
                justify-content: flex-end;
    }
}