/* Глобальные стили для панели редактирования Bitrix */
.ui-btn-container {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    z-index: 1000;
}

/* Стили для кнопки удаления */
.ui-btn--delete {
    background: #F4D2D5 !important;
    border-color: #F4D2D5 !important;
    color: #B72E39 !important;
    min-width: 120px;
    height: 32px;
    line-height: 30px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    justify-content: center;
}

/* Размер SVG в кнопке удаления */
.ui-btn--delete svg {
    width: 24px;
    height: 24px;
}

/* Стили для кнопки редактирования */
.ui-btn--edit {
    background: #60bae3 !important;
    border-color: #60bae3 !important;
    color: #ffffff !important;
    min-width: 120px;
    height: 32px;
    line-height: 30px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    justify-content: center;
}

/* Стили для кнопки добавления */
.ui-btn--add {
    background: #60bae3 !important;
    border-color: #60bae3 !important;
    color: #ffffff !important;
    min-width: 120px;
    height: 32px;
    line-height: 30px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    justify-content: center;
}

/* Стили для кнопки сохранения */
.ui-btn--save {
    all: revert;
    display: inline-block;
    background: #60bae3 !important;
    border-color: #60bae3 !important;
    color: #ffffff !important;
    min-width: 200px;
    height: 32px;
    line-height: 1;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    justify-content: center;
    cursor: pointer;
    border-radius: 3px;
    padding: 6px 14px;
    margin-top: 12px;
}

/* Стили для инпутов админ-панели */
.ui-input {
    display: block;
    width: 100%;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid rgba(22, 19, 51, 0.2);
    border-radius: 6px;
    background: #ffffff;
    box-shadow: none;
    letter-spacing: -0.3px;
    line-height: 20px;
    font-weight: 400;
    font-size: 15px;
    color: rgba(22, 19, 51, 1);
    outline: none;
    transition: border-color 200ms linear, box-shadow 200ms linear;
}

.ui-input:focus {
    border-color: #60bae3;
    box-shadow: 0 0 0 3px rgba(96, 186, 227, 0.1);
}

.ui-input::placeholder {
    font: inherit;
    color: rgba(22, 19, 51, 0.4);
}

/* Стили для textarea админ-панели */
.ui-textarea {
    display: block;
    width: 100%;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid rgba(22, 19, 51, 0.2);
    border-radius: 6px;
    background: #ffffff;
    box-shadow: none;
    letter-spacing: -0.3px;
    line-height: 20px;
    font-weight: 400;
    font-size: 15px;
    color: rgba(22, 19, 51, 1);
    outline: none;
    resize: vertical;
    min-height: 100px;
    transition: border-color 200ms linear, box-shadow 200ms linear;
    font-family: inherit;
}

.ui-textarea:focus {
    border-color: #60bae3;
    box-shadow: 0 0 0 3px rgba(96, 186, 227, 0.1);
}

.ui-textarea::placeholder {
    font: inherit;
    color: rgba(22, 19, 51, 0.4);
}

/* Стили для чекбоксов админ-панели */
.ui-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    letter-spacing: -0.3px;
    line-height: 20px;
    font-weight: 400;
    font-size: 15px;
    color: rgba(22, 19, 51, 1);
    user-select: none;
}

.ui-checkbox {
    position: relative;
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(22, 19, 51, 0.2);
    border-radius: 4px;
    background: #ffffff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    transition: border-color 200ms linear, background-color 200ms linear, box-shadow 200ms linear;
    flex-shrink: 0;
}

.ui-checkbox:checked {
    background: #60bae3;
    border-color: #60bae3;
}

.ui-checkbox:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2 6l3 3 5-6'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.ui-checkbox:focus {
    box-shadow: 0 0 0 3px rgba(96, 186, 227, 0.1);
}

.ui-checkbox:hover {
    border-color: #60bae3;
}

