body {
    user-select: none;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 30px 30px 30px 80px;
}



.wrapper {
    margin: 0 auto;
    width: 1490px;
}

h1 {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #066834;
}

.wraper {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.toolbox {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: -65px;
    top: 0;
    gap: 10px;
    /* Отступ между кнопками */
}

.controls {
    display: flex;
    position: absolute;
    top: -50px;
    gap: 10px;
    margin-bottom: 20px;
}

#canvas {
    border: 1px solid #000;
    cursor: crosshair;
    margin-bottom: 20px;
    width: 1111px;
    /* Ширина холста */
    height: 800px;
    /* Высота холста */
}



.output {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 300px;
    max-width: 400px;
    gap: 10px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.output p {
    margin: 5px 0;
    font-size: 13px;
}

.client-info {
    margin-top: 20px;
    width: 100%;
}

.client-info h3 {
    margin-bottom: 10px;
    font-size: 16px;
}

input,
select,
textarea {
    font-family: Arial, sans-serif;
    font-size: 16px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;

}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #888;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

label {
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: bold;
}

textarea {
    resize: vertical;
    min-height: 100px;
    max-height: 360px;
    width: 100%;
}

#submitRequest {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    margin-top: 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
    width: 100%;
    max-width: 400px;
}

#submitRequest:hover {
    background-color: #45a049;
}

.zoombtn {
    background-color: #eea10d;
    padding: 10px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 30px;
    color: #fff;
}

.tabs .active {
    color: #000;
}

.zoombtn:hover {
    background-color: #e0e0e0;
}

.panToggleBtn i {
    color: #333;
}

.modal {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background-color: white;
    padding: 20px;
    border: 1px solid black;
}

.modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.controls button {
    background-color: #eea10d;
    /* Темно-серый фон */
    color: #fff;
    /* Белый текст */
    border: none;
    /* Убираем границы */
    padding: 10px 20px;
    /* Отступы внутри кнопок */
    margin-right: 10px;
    /* Отступ между кнопками */
    font-size: 14px;
    /* Размер текста */
    cursor: pointer;
    /* Курсор в виде руки при наведении */
    border-radius: 5px;
    /* Скругленные углы */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    /* Плавный переход при изменении цвета */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    /* Легкая тень под кнопками */
}

.controls button:hover {
    background-color: #e0e0e0;
    /* Более светлый серый при наведении */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    /* Увеличенная тень при наведении */
}

.controls button:active {
    background-color: #222;
    /* Темный цвет при нажатии */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
    /* Тень немного уменьшается */
    transform: translateY(1px);
    /* Легкий эффект "нажатия" */
}

.d-none {
    opacity: 0;
}

.fieldset {
    border: none;
    margin-top: 15px;
    border-radius: 5px;
}


legend {
    font-size: 1.4rem;
    font-weight: bold;
    color: rgb(6, 104, 52);
    margin: 20px 0 15px 0;
}

.tsf-step-content {
    font-family: Arial, sans-serif;
}


.radio:hover {
    background-color: #f1f1f1;
    cursor: pointer;
}

.radio label {
    flex-grow: 1;
    margin-right: 10px;
}

.radio input[type="radio"] {
    margin-left: 10px;
}

.form-group {
    margin-bottom: 20px;
}

/* 
.form-group input[type="number"],
.form-group select {

    padding: 10px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
} */

.form-group input[type="number"]:focus,
.form-group select:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}

input[type="checkbox"] {
    margin-right: 10px;
}

input[type="checkbox"]+label {
    display: inline;
}

.ral {
    max-width: 120px;
    display: none;
    margin-top: 10px;
    margin-left: 20px;
}

/* Enhance button styles */
input[type="submit"],
button {
    padding: 10px 20px;
    background-color: #EEA10F;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover,
button:hover {
    background-color: #e0e0e0;
}


.wrap-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 600px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    margin-left: 30px;
}

.output {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.output p {
    font-size: 16px;
    color: rgb(1, 35, 17);
    margin-bottom: 10px;
}

.input-container {
    margin-top: 20px;
}

h3 {
    font-size: 18px;
    font-weight: bold;
    color: #444;
    margin-bottom: 10px;
    margin-top: 20px;
}

#gateOptions,
.tsf-step {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.radio {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border: 2px solid;
    border-image-source: linear-gradient(90deg, #CDF6DA 0%, #47AE77 100%);
    border-image-slice: 1;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin-bottom: 15px;
}

.radio:hover {
    background-color: #f1f1f1;
}

.radio input[type="radio"] {
    margin-left: 10px;
}

label {
    font-size: 14px;
    color: rgb(6, 104, 52);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.form-group input[type="number"],
.form-group select {
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);

    border: 2px solid;
    border-image-source: linear-gradient(90deg, #CDF6DA 0%, #47AE77 100%);
    border-image-slice: 1;
    border-radius: 5px;
}

.form-group input[type="number"]:focus,
.form-group select:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

button#submitRequest {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    margin-top: 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
    width: 100%;
    max-width: 200px;
}

button#submitRequest:hover {
    background-color: #45a049;
}

.image-selector {
    display: flex;
    gap: 20px;
}

.image-option {
    position: relative;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.3s ease;
    width: 50%;
    height: 150px;
}

.image-option img {
    display: block;
    width: 100%;
    /* Adjust the width as needed */
    height: 150px;
    /* Adjust the height as needed */
    object-fit: cover;
    border-radius: 5px;
}

.image-option .checkmark {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 30px;
    color: green;
    display: none;
}

.image-option.selected {
    border: 2px solid #4CAF50;
    /* Green border to indicate selection */
}

.image-option.selected .checkmark {
    display: block;
}



h4 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

label {
    font-size: 16px;
    margin-bottom: 5px;
    display: block;
    font-weight: bold;
}

input[type="number"] {
    font-family: Arial, sans-serif;
    font-size: 14px;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

input[type="checkbox"] {
    margin-right: 10px;
}

input[type="number"]:focus,
input[type="checkbox"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}



div[id^="doubleGateFields"] label {
    font-size: 13px;
}

div[id^="doubleGateFields"] input[type="number"] {
    max-width: 150px;
}

.gateOptions {
    width: 100%;
}

.wrapp-tor {
    margin-top: 15px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
}


















.tabs {
    display: flex;
    justify-content: space-around;
    background-color: #f1f1f1;
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0;
    top: -50px;
    gap: 10px;
    margin-bottom: 20px;
    background: none;
}

.tab {
    background-color: #eea10d;
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin-right: 10px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.tab-content {
    display: none;
    border-top: none;
}

.tab-content.active {
    display: block;
}

.required {
    width: 100%;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    width: 100%;
}

.buttons {
    margin: 20px 0;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.buttons button {
    padding: 10px 20px;
    margin: 0 5px;
}

.hidden {
    display: none;
}




#content3 label{
    margin: 20px 0 7px 0;
}










.step-content-custom {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.radio-custom {
    position: relative;
    display: inline-block;
    cursor: pointer;
    text-align: center;
}

.custom-radio-label {
    display: inline-block;
    position: relative;
    cursor: pointer;
    text-align: center;
}

.custom-radio-img {
    width: 100%;
    height: 150px;
    border: 3px solid transparent;
    border-radius: 10px;
    transition: border-color 0.3s;
}

.step-content-custom input[type="radio"] {
    display: none;
    /* Скрываем стандартную радиокнопку */
}

input[type="radio"]:checked+.custom-radio-label .custom-radio-img {
    border-color: #4CAF50;
    /* Зеленая рамка вокруг выбранной картинки */
}

.custom-radio-label .custom-checkmark {
    display: none;
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background-color: #4CAF50;
    color: #fff;
    border-radius: 50%;
    font-size: 20px;
    line-height: 30px;
    text-align: center;
}

input[type="radio"]:checked+.custom-radio-label .custom-checkmark {
    display: block;
}

/* Стили для блока выбора "с Sichtschutz или без" */

.image-selector {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-top: 20px;
}

.image-option {
    position: relative;
    cursor: pointer;
    text-align: center;
}

.selector-img {
    width: 100%;
    height: auto;
    border: 3px solid transparent;
    border-radius: 10px;
    transition: border-color 0.3s;
}

.image-option.selected .selector-img {
    border-color: #4CAF50;
    /* Зеленая рамка вокруг выбранной картинки */
}

.image-checkmark {
    display: none;
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background-color: #4CAF50;
    color: #fff;
    border-radius: 50%;
    font-size: 20px;
    line-height: 30px;
    text-align: center;
}

.image-option.selected .image-checkmark {
    display: block;
}



/* Подсказки снизу */
.controls button[data-title] {
    position: relative;
}

.controls button[data-title]:hover::after {
    content: attr(data-title);
    position: absolute;
    top: 100%;
    /* Подсказка снизу */
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    width: 200px;
    font-size: 12px;
    z-index: 999;
    opacity: 1;
    white-space: normal;
    /* Обычная ширина текста */
    transition: opacity 0s;
}

.controls button[data-title]:hover::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    /* Стрелка указывает вверх */
    z-index: 999;
    opacity: 1;
    transition: opacity 0s;
}

/* Подсказки справа */
.toolbox button[data-title] {
    position: relative;
}

.toolbox button[data-title]:hover::after {
    content: attr(data-title);
    position: absolute;
    top: 50%;
    /* Центрируем по вертикали */
    left: 100%;
    /* Подсказка справа */
    transform: translateY(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    width: 200px;
    font-size: 12px;
    z-index: 999;
    opacity: 1;
    white-space: normal;
    /* Обычная ширина текста */
    transition: opacity 0s;
}

.toolbox button[data-title]:hover::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: #333;
    /* Стрелка указывает влево */
    z-index: 999;
    opacity: 1;
    transition: opacity 0s;
}





.accordion-section {
    margin: 20px 0;
}

.accordion-header {
    background-color: #eea10d;
    color: #fff;
    padding: 10px;
    margin-top: 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.accordion-header:hover {
    background-color: #CDF6DA;
}

/* Стили для загрузчика файлов */
.file-upload-wrapper {
    position: relative;
    display: inline-block;
    margin-top: 15px;
}

.file-upload-label {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
    font-family: Arial, sans-serif;
    font-size: 14px;
    text-decoration: none;
}

.file-upload-label:hover {
    background: #CDF6DA;
}

.file-upload-icon {
    margin-right: 8px;
    font-size: 16px;
    vertical-align: middle;
}

#photoUpload {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}

/* Стили для превью загруженных файлов */
.preview-container {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
    gap: 10px;
    justify-content: space-between;
}

.preview-container>div {
    position: relative;
    width: 48%;
    height: 100px;

}

.preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px solid #ddd;
    border-radius: 5px;
}

/* Стили для кнопки удаления */
.remove-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    width: 20px;
    height: 20px;
    font-size: 16px;
    line-height: 20px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.remove-btn:hover {
    background: #CDF6DA;




}






.scale-controls {
    display: math;
    text-align: center;
    margin-top: 30px;
    background: #eea10d;
    border-radius: 5px;
}

.scale-controls .zoombtn {
    font-size: 25px;
    background: none;
}

.scale-controls .zoombtn :hover {
    background: none;
}

#scaleValue {
    padding: 8px 5px;
    position: relative;
    color: #fff;
}







.zaunkonfigurator-info {
  padding: 30px 20px;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  font-family: "Segoe UI", sans-serif;
  line-height: 1.7;
  color: rgb(1, 35, 17);
}

.zaunkonfigurator-info h2 {
  font-size: 1.8rem;
  margin-top: 1.5em;
  color: rgb(6, 104, 52);
}

.zaunkonfigurator-info ul {
  list-style: none;
  padding-left: 0;
  margin-top: 1em;
}

.zaunkonfigurator-info ul li {
  margin-bottom: 1rem;
  padding-left: 1.5em;
  position: relative;
}

.zaunkonfigurator-info ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0.1em;
  color: #28a745;
  font-weight: bold;
}

.zaunkonfigurator-info p {
  margin-top: 1em;
  font-size: 1.05rem;
}

.breadcrumb {
  font-size: 0.95rem;
  margin-bottom: 1em;
  color: #6c757d;
}

.breadcrumb a {
  color: #007bff;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Адаптивность */
@media screen and (max-width: 768px) {
  .zaunkonfigurator-info {
    padding: 20px 15px;
  }

  .zaunkonfigurator-info h2 {
    font-size: 1.5rem;
  }

  .zaunkonfigurator-info p,
  .zaunkonfigurator-info ul li {
    font-size: 1rem;
  }
}





.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #CDF6DA;
  color: #012311;
  font-family: "Karla", sans-serif;
  font-size: var(--fs-16);
  line-height: var(--lh-25);
  padding: 20px 30px;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  display: none;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.cookie-banner p {
  margin: 0;
  flex: 1 1 auto;
}

.cookie-banner a {
  color: #066834;
  text-decoration: underline;
  font-weight: 600;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
      margin: 0 50px 0 0;
}

.cookie-buttons button {
  background-color: #EEA10D;
  color: white;
  border: none;
  padding: 10px 20px;
  font-family: "Karla", sans-serif;
  font-size: var(--fs-16);
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.cookie-buttons button:hover {
  background-color: #47AE77;
  color: #fff;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
  }

  .cookie-buttons {
    justify-content: center;
    width: 100%;
  }
}

/* ===== UI refresh: cleaner layout, consistent controls ===== */
:root {
  --ui-bg: #f4f6f8;
  --ui-surface: #ffffff;
  --ui-border: #d7dde3;
  --ui-text: #1f2937;
  --ui-muted: #5f6b7a;
  --ui-primary: #066834;
  --ui-accent: #eea10d;
  --ui-radius: 10px;
  --ui-control-h: 44px;
}

body {
  background: var(--ui-bg);
  color: var(--ui-text);
  font-family: "Segoe UI", Arial, sans-serif;
  padding: 20px;
}

.wrapper {
  width: 100%;
  max-width: 1500px;
}

h1 {
  margin-bottom: 20px;
}

.wraper {
  align-items: flex-start;
  gap: 24px;
}

#canvas {
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  background: #fff;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
  max-width: 1111px;
  width: 100%;
  height: auto;
}

.tabs {
  left: 0;
  right: auto;
  gap: 8px;
}

.tab {
  background: var(--ui-surface);
  color: var(--ui-primary);
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  font-weight: 600;
  box-shadow: none;
}

.tab.active {
  background: var(--ui-primary);
  color: #fff;
  border-color: var(--ui-primary);
}

.controls {
  gap: 8px;
}

.controls button,
.zoombtn,
.buttons button,
.cookie-buttons button,
.accordion-header {
  border-radius: 8px;
}

.controls button,
.buttons button {
  min-height: var(--ui-control-h);
  padding: 10px 16px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.controls button:hover,
.buttons button:hover {
  background-color: #d1d5db;
}

.toolbox .zoombtn {
  width: 52px;
  height: 40px;
}

.wrap-body {
  width: 380px;
  max-width: 380px;
  background: transparent;
  box-shadow: none;
  margin-left: 0;
}

.output {
  width: 100%;
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.output p {
  margin: 6px 0;
  color: var(--ui-text);
  font-size: 15px;
}

.output label,
#content3 label,
legend {
  color: var(--ui-primary);
}

legend {
  font-size: 1.15rem;
  margin: 14px 0 10px;
}

.output input[type="text"],
.output input[type="email"],
.output input[type="tel"],
.output input[type="number"],
.output select,
.output textarea {
  width: 100%;
  min-height: var(--ui-control-h);
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  background: #fff;
  color: var(--ui-text);
  padding: 10px 12px;
  font-size: 15px;
}

.output textarea {
  min-height: 120px;
}

.output input:focus,
.output select:focus,
.output textarea:focus {
  border-color: var(--ui-primary);
  box-shadow: 0 0 0 3px rgba(6, 104, 52, 0.12);
}

.radio {
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  background: #fff;
  margin-bottom: 10px;
}

.step-content-custom {
  gap: 14px;
}

.custom-radio-img {
  height: 140px;
  object-fit: cover;
}

#content2 h3,
#content3 h3,
#content4 h3 {
  margin-top: 6px;
  margin-bottom: 8px;
}

#content2 input[type="number"] {
  height: var(--ui-control-h);
}

.buttons {
  margin-top: 14px;
  gap: 8px;
}

.buttons button {
  flex: 1;
}

.accordion-header {
  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.file-upload-label {
  border-radius: 8px;
  background: var(--ui-primary);
}

.file-upload-label:hover {
  background: #0a7f41;
  color: #fff;
}

.zaunkonfigurator-info {
  margin-top: 18px;
  background: #fff;
  border: 1px solid var(--ui-border);
}

@media (max-width: 1280px) {
  .wraper {
    flex-wrap: wrap;
  }

  .toolbox {
    position: static;
    flex-direction: row;
    margin-bottom: 10px;
  }

  .tabs,
  .controls {
    position: static;
    margin-bottom: 12px;
  }

  .wrap-body {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 768px) {
  body {
    padding: 12px;
  }

  .tabs {
    flex-wrap: wrap;
  }

  .tab {
    margin-right: 0;
    padding: 10px 12px;
  }

  .controls {
    flex-wrap: wrap;
  }

  .controls button {
    width: 100%;
    margin-right: 0;
  }

  .buttons {
    flex-direction: column;
  }
}

