.custom-number-input input::-webkit-outer-spin-button,
.custom-number-input input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.custom-number-input::before,
.custom-number-input::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30px;
  background: #f5f5f5;
  border: 1px solid #ccc;
  pointer-events: none;
}

.custom-number-input::before {
  left: 0;
  border-right: none;
  border-radius: 4px 0 0 4px;
}

.custom-number-input::after {
  right: 0;
  border-left: none;
  border-radius: 0 4px 4px 0;
}

.custom-number-input button {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  z-index: 1;
}

.custom-text-input input {
	width: 100%;
	padding: 8px 15px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 16px;
	-moz-appearance: textfield;
}

.custom-text-input input:focus {
	border-color: #ccc;
	box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
	outline: none;
}

.custom-number-input .decrement-btn {
  left: 0;
}

.custom-number-input .increment-btn {
  right: 0;
}

.custom-number-input button:hover {
  background: rgba(0,0,0,0.05);
}

.custom-number-input button:active {
  background: rgba(0,0,0,0.1);
}

.custom-number-input input:focus {
  border-color: #ccc;
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
  outline: none;
}

.custom-number-control {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 15px 0;
  text-align:left;
}

.input-label {
  margin-left:20px;
  font-family: Arial, sans-serif;
  font-size: 18px;
  color: #333;
  min-width: 56%;
}

.input-label-form {
  margin-left:20px;
  font-family: Arial, sans-serif;
  font-size: 18px;
  color: #333;
  min-width: 25%;
}

.custom-number-input {
  position: relative;
  display: inline-block;
  width: 120px;
}

.custom-number-input input {
  width: 58px;
  padding: 8px 30px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  text-align: center;
  -moz-appearance: textfield;
}

.custom-checkbox {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 20px 10px 20px;
}

.custom-checkbox label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.checkbox-wrapper {
  position: relative;
  display: inline-block;
}

.custom-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 24px;
  height: 24px;
  z-index: 2; /* Важно: input поверх checkmark */
  cursor: pointer;
}

.checkmark {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: white;
  transition: all 0.3s;
}

/* Галочка (скрыта) */
.checkmark::after {
  content: "✓";
  position: absolute;
  left: 6px;
  top: 0;
  font-size: 18px;
  color: white;
  opacity: 0;
  transition: all 0.3s;
}

/* Состояние checked */
.custom-checkbox input:checked ~ .checkmark {
  background: #4a90e2;
  border-color: #4a90e2;
}

.custom-checkbox input:checked ~ .checkmark::after {
  opacity: 1;
}

/* Hover эффект */
.custom-checkbox:hover input ~ .checkmark {
  border-color: #999;
}

/* Focus эффект */
.custom-checkbox input:focus ~ .checkmark {
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
  border-color: #4a90e2;
}

/* Disabled состояние */
.custom-checkbox input:disabled ~ .checkmark {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Убираем выделение текста при кликах */
.custom-checkbox label {
  user-select: none;
  -webkit-user-select: none;
  font-size:18px;
  min-width:30%;
}

/* Анимация переключения */
.checkmark {
  position: relative;
  transition: all 0.2s ease;
}

/* Состояние нажатия */
.custom-checkbox input:active ~ .checkmark {
  transform: scale(0.95);
}

.imagesBlockItem {
  position: relative;
  border: 1px solid #5b9bd5;
  margin-left:40px;
  margin-right:40px;
  margin-top:15px;
}

.form-footer {
  display: flex;
  justify-content: center; /* Центрирование по горизонтали */
  align-items: center; /* Центрирование по вертикали */
  width: 100%;
  margin-top: 20px;
  margin-bottom:20px;
}

.custom-submit-btn {
  position: relative;
  display: inline-block;
  margin-top: 15px;
  margin-left:10px;
  margin-right:10px;
}

.custom-submit-btn-form {
	position: relative;
    margin-top: 15px;
    margin-bottom: 15px;
    margin-left: 10px;
    margin-right: 10px;
}

.custom-submit-btn button,
.custom-submit-btn-form button {
  width: 100%;
  padding: 10px 30px;
  border: 1px solid #4a90e2;
  border-radius: 4px;
  background-color: #4a90e2;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Состояния кнопки */
.custom-submit-btn button:hover,
.custom-submit-btn-form button:hover {
  background-color: #3a7bc8;
  border-color: #3a7bc8;
}

.custom-submit-btn button:active,
.custom-submit-btn-form button:active {
  background-color: #2a6bb7;
  transform: translateY(1px);
}

.custom-submit-btn button:focus,
.custom-submit-btn-form button:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.3);
}

/* Disabled состояние */
.custom-submit-btn button:disabled,
.custom-submit-btn-form button:disabled {
  background-color: #cccccc;
  border-color: #cccccc;
  cursor: not-allowed;
  transform: none;
}

.custom-submit-btn-form.with-icon button,
.custom-submit-btn.with-icon button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Стили для отключенной кнопки */
.custom-submit-btn button:disabled,
.custom-submit-btn-form button:disabled {
  background-color: #cccccc !important;
  border-color: #cccccc !important;
  color: #888888 !important;
  cursor: not-allowed !important;
  transform: none !important;
  opacity: 0.7;
}

.specification p {
	text-align: left;
}

.specification h1 {
	text-align: left;
}

.specification h3 {
	text-align: left;
	margin-top: 0.25em;
    margin-bottom: 0.25em;
}

.device-list {
	text-align: left;
}

.controller_img {
	width:100px;
}

.card h4 {
	margin-top: 0.25em;
    margin-bottom: 0.25em;
}

.card table {
	border-collapse: separate;   /* Разделяем границы */
    border-spacing: 10px;       /* Отступы между ячейками (слева-справа и сверху-снизу) */
}

.device-list h4 {
	margin-top: 0.25em;
    margin-bottom: 0.25em;
}

.checkbox {
    position: absolute;
    z-index: -1;
    opacity: 0;
    margin: 10px 0 0 20px;
}

@media screen and (max-width: 1600px) {

}

@media screen and (max-width: 1200px) {
	.custom-number-control
	 {
		display: flex;
		align-items: center;
		gap: 10px;
		margin: 15px 0;
		text-align: left;
		height: 50px;
	}

}

@media all and (max-width: 1024px) {

}

@media all and (max-width: 650px) {

}

@media all and (max-width: 425px) {

}

@media all and (max-width: 320px) {

}