@font-face {
  font-family: "zakaz";
  src: url("../fonts/findcheaper.eot");
  src: url("../fonts/findcheaper.eot#iefix") format("embedded-opentype"), url("../fonts/findcheaper.woff") format("woff"), url("../fonts/findcheaper.ttf") format("truetype"), url("../fonts/findcheaper.svg") format("svg");
}

.zakaz * {
  box-sizing: border-box;
  outline: none;
}
.zakaz svg:not(:root) {
  overflow: hidden;
  max-width: 100%;
  max-height: 100%;
  box-sizing: border-box;
}
.zakaz [class*="icon--"] {
  display: inline-block;
  fill: currentColor;
  width: 1em;
  height: 1em;
}
/* 
    Style
----------------------------*/
.zakaz {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  position: fixed;
  z-index: 99999;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  visibility: hidden;
  opacity: 0;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}
.zakaz__content {
  position: relative;
  width: 100%;
  max-width: 600px;
  background: #ffffff;
  padding: 15px;
  border-radius: 3px;
}
.zakaz input[type="text"] {
	width: 100%;
	    padding: 8px;
    -webkit-box-shadow: inset 0 1px 0 0 #ccc, inset 0 0 0 1px #dedede, inset 0 1px 2px 1px #e6e6e6;
    box-shadow: inset 0 1px 0 0 #ccc, inset 0 0 0 1px #dedede, inset 0 1px 2px 1px #e6e6e6;
    background: #f0f0f0;
    border-radius: 3px;
    border: 0;
	margin-bottom: 10px;
		  color: #222;
}
.zakaz textarea {
  width: 100%;
  height: 150px;
  resize: vertical;
   -webkit-box-shadow: inset 0 1px 0 0 #ccc, inset 0 0 0 1px #dedede, inset 0 1px 2px 1px #e6e6e6;
    box-shadow: inset 0 1px 0 0 #ccc, inset 0 0 0 1px #dedede, inset 0 1px 2px 1px #e6e6e6;
    background: #f0f0f0;
    border-radius: 3px;
	margin-bottom: 10px;
	  color: #222;
}
.zakaz__error,
.zakaz__thanks {
  display: none;
}
.zakaz__error {
  text-align: right;
  color: #e93f11;
  margin-bottom: 10px;
}
.zakaz__thanks {
  color: #78bf57;
  font-size: 20px;
  line-height: 25px;
  text-align: center;
  padding: 20px;
}
.zakaz__thanks .icon {
  display: block !important;
  width: 100%;
  font-size: 100px;
  margin: 0 auto 15px auto;
}
.zakaz__send,
.zakaz__button {
  display: inline-block;
  vertical-align: top;
  text-align: center;
  font-size: 14px;
  padding: 7px 20px;
  cursor: pointer;
}
.zakaz__send:active,
.zakaz__button:active {
  -webkit-transform: translateY(3px);
      -ms-transform: translateY(3px);
          transform: translateY(3px);
}
.zakaz__button {
  margin-top: 10px;
}
.zakaz__send {
 display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  color: inherit;
  height: 40px;
  border: 1px solid;
  padding: 0 30px;
  font-size: 16px;
  background: #ffffff;
  border-radius: 0;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  text-align: center;
  white-space: nowrap;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  -webkit-transition: color 0.12s, background 0.12s, border-color 0.12s;
  transition: color 0.12s, background 0.12s, border-color 0.12s;
  float: right;
}

.zakaz__content {
    opacity: 0;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
}
.zakaz--open {
    visibility: visible;
    opacity: 1;
}
.zakaz--open .zakaz__content {
    opacity: 1;
}

.zakaz__title {
	width: 100%;
	font-size: 22px;
	font-weight: bold;
	text-align: center;
}

.zakaz__title--sub {
	width: 100%;
	font-size: 16px;
	text-align: center;
	margin: 10px 0 20px 0;
}
.zakaz__close {
  cursor: pointer;
}
.zakaz__close:before {
  content: "\e900";
  font-family: "zakaz";
  display: inline-block;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-transform: translatez(0);
      -ms-transform: translatez(0);
          transform: translatez(0);
  color: #ffffff;
  margin-right: -30px;
  margin-top: -40px;
  cursor: pointer;
  float: right;
  font-size: 14px;
}
.zakaz__close:hover {
  opacity: .8;
}
.zakaz__close:active {
  -webkit-transform: translatey(3px);
      -ms-transform: translatey(3px);
          transform: translatey(3px);
}
/* 
	Fix z-index in .product-details-image
------------------------------------------*/
.j-z-index {
  z-index: 0 !important;
}
/* 
	Responsive
----------------------------*/
@media (max-width: 480px) {
  .zakaz__content {
    max-width: 95%;
    padding: 10px;
    margin: 10px;
  }
  
  .zakaz textarea {
    width: 100%;
    height: 80px;
    resize: vertical;
  }
  
  .zakaz--open .zakaz__content {
    opacity: 1;
    margin-top: 20px !important;
  }
  
  #zakaz > div > div.zakaz__wrapper > div.c-form__block {
    font-size: 12px;
    display: flex;
    align-items: center;
  }
}
.zakaz__content {
  opacity: 0;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}
.zakaz--open {
  visibility: visible;
  opacity: 1;
}
.zakaz--open .zakaz__content {
  opacity: 1;
}

.zakaz textarea::-webkit-input-placeholder { padding:5px; }
.zakaz textarea { padding:5px; }

.zakaz__send:hover {
  color: #ffffff;
  background: #000000;
}

/* Добавьте в конец файла default.css после существующих стилей */

/* Горизонтальная структура */
.zakaz-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 20px;
}

.zakaz-3d-column {
    flex: 1;
    min-width: 350px;
}

.zakaz-form-column {
    flex: 1;
    min-width: 300px;
}

/* 3D Конструктор */
.zakaz-3d-section {
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.zakaz-3d-title {
    text-align: center;
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.zakaz-3d-preview {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    perspective: 1000px;
}

.box-3d {
    position: relative;
    width: 200px;
    height: 150px;
    transform-style: preserve-3d;
    transform: rotateX(-20deg) rotateY(-30deg);
    transition: transform 0.5s ease;
}

.box-face {
    position: absolute;
    background: #3498db;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    opacity: 0.9;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.rotation-controls {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
}

.rotate-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.rotate-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Слайдеры размеров */
.size-controls {
    margin-bottom: 20px;
}

.size-control {
    margin-bottom: 15px;
}

.size-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-weight: bold;
}

.size-value {
    color: #3498db;
    font-weight: bold;
}

.size-slider {
    width: 100%;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.size-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #3498db;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.size-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #3498db;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Информация о коробке */
.box-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.info-item {
    background: white;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    border: 1px solid #e5e5e5;
}

.info-value {
    font-size: 20px;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 5px;
}

.info-label {
    font-size: 12px;
    color: #666;
}

/* Форма */
.zakaz-form-column input[type="text"],
.zakaz-form-column select,
.zakaz-form-column textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.zakaz-form-column textarea {
    height: 120px;
    resize: vertical;
}

.zakaz-form-column select {
    height: 40px;
}

.c-form__block {
    margin-bottom: 20px;
    font-size: 14px;
}

.c-form__block input[type="checkbox"] {
    margin-right: 8px;
}

/* Адаптивность - мобильная версия */
@media (max-width: 768px) {
    .zakaz-columns {
        flex-direction: column;
        gap: 20px;
    }
    
    .zakaz-3d-preview {
        height: 350px;
    }
    
    .box-info {
        grid-template-columns: 1fr;
    }
    
    .zakaz__content {
        max-width: 95%;
        margin: 10px;
    }
}

/* МОБИЛЬНАЯ ВЕРСИЯ - УПРОЩЕННАЯ */
@media (max-width: 480px) {
    /* Уменьшаем высоту окна */
    .zakaz-3d-preview {
        height: 260px !important;
        margin-bottom: 45px;
    }
    
    .zakaz-3d-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .size-label {
        font-size: 13px;
    }
    
    .info-value {
        font-size: 16px;
    }
    
    .zakaz__title {
        font-size: 18px;
        margin-top: 20px;
        margin-bottom: 5px;
    }
    
    .zakaz__title--sub {
        font-size: 14px;
        margin: 0 0 10px 0;
        line-height: 1.3;
    }
    
    /* Уменьшаем отступы для экономии места */
    .zakaz-3d-section {
        padding: 15px 10px;
        margin-bottom: 15px;
    }
    
    .zakaz-form-column {
        padding: 0;
    }
    
    .zakaz-form-column textarea {
        height: 60px !important;
        min-height: 60px !important;
        margin-bottom: 10px;
    }
    
    .zakaz-form-column input[type="text"],
    .zakaz-form-column select {
        margin-bottom: 10px;
        padding: 8px;
    }
    
    /* Уменьшаем кнопки управления */
    .rotation-controls {
        bottom: 5px;
        right: 5px;
    }
    
    .rotate-btn {
        width: 25px;
        height: 25px;
        font-size: 14px;
    }
    
    /* Уменьшаем слайдеры */
    .size-control {
        margin-bottom: 10px;
    }
    
    .size-slider {
        height: 4px;
    }
    
    .size-slider::-webkit-slider-thumb {
        width: 16px;
        height: 16px;
    }
    
    /* Уменьшаем блок информации */
    .box-info {
        margin-top: 10px;
        gap: 8px;
    }
    
    .info-item {
        padding: 10px;
    }
    
    /* Уменьшаем чекбокс */
    .c-form__block {
        margin-bottom: 15px;
        font-size: 12px;
    }
    
    /* Уменьшаем кнопку отправки */
    .zakaz__send {
        padding: 10px;
        font-size: 14px;
        margin-top: 5px;
    }
    
    /* Уменьшаем иконку закрытия */
        .zakaz__close:before {
        font-size: 12px;
        margin-right: 20px;
        margin-top: 10px;
        color: #222;
    }
}

/* Добавьте в конец файла default.css после существующих стилей */

/* Увеличиваем ширину модального окна для горизонтального расположения */
.zakaz--open .zakaz__content {
    max-width: 900px !important;
    width: 90% !important;
}

/* Горизонтальная структура */
.zakaz__wrapper {
    width: 100%;
}

.zakaz-columns {
    display: flex;
    flex-direction: row;
    gap: 30px;
    margin: 0;
    padding: 0;
    width: 100%;
}

.zakaz-3d-column {
    flex: 1;
    min-width: 0;
    width: 50%;
}

.zakaz-form-column {
    flex: 1;
    min-width: 0;
    width: 50%;
}

/* 3D Конструктор */
.zakaz-3d-section {
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    height: 100%;
    box-sizing: border-box;
}

.zakaz-3d-title {
    text-align: center;
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
}

.zakaz-3d-preview {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    perspective: 1000px;
}

.box-3d {
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-20deg) rotateY(-30deg);
    transition: transform 0.5s ease;
}

.box-face {
    position: absolute;
    background: #3498db;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 12px;
    opacity: 0.9;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.rotation-controls {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    z-index: 10;
}

.rotate-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.rotate-btn:hover {
    background: rgba(255, 255, 255, 0.2);
	 color: #764ba2;
	 border: 2px solid  #764ba2;
    transform: scale(1.1);
}

/* Слайдеры размеров */
.size-controls {
    margin-bottom: 20px;
}

.size-control {
    margin-bottom: 15px;
}

.size-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.size-label span:first-child {
    font-weight: bold;
    color: #333;
}

.size-value {
    color: #3498db;
    font-weight: bold;
    font-size: 14px;
}

.size-slider {
    width: 100%;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.size-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #3498db;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.size-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #3498db;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Информация о коробке */
.box-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.info-item {
    background: white;
    padding: 12px;
    border-radius: 5px;
    text-align: center;
    border: 1px solid #e5e5e5;
}

.info-value {
    font-size: 18px;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 5px;
}

.info-label {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
}

/* Форма */
.zakaz-form-column input[type="text"],
.zakaz-form-column select,
.zakaz-form-column textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
}

.zakaz-form-column input[type="text"]:focus,
.zakaz-form-column select:focus,
.zakaz-form-column textarea:focus {
    border-color: #3498db;
    outline: none;
}

.zakaz-form-column textarea {
    height: 100px;
    resize: vertical;
    min-height: 100px;
}

.zakaz-form-column select {
    height: 40px;
    cursor: pointer;
}

.c-form__block {
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.c-form__block input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.c-form__block label {
    cursor: pointer;
    color: #666;
}

.zakaz__error {
    color: #e74c3c;
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
    display: none;
}

.zakaz__send {
    width: 100%;
    padding: 12px;
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    transition: background 0.3s;
    margin-top: 10px;
}

.zakaz__send:hover {
    background: #444;
}

/* Адаптивность */
@media (max-width: 900px) {
        .zakaz--open .zakaz__content {
        max-width: 95% !important;
        width: 95% !important;
        margin-top: 10px;
        height: 95%;
        overflow-y: auto;
		overflow-x: hidden;
        margin-bottom: 10px;
    }
    
    .zakaz-columns {
        flex-direction: column;
        gap: 15px;
    }
    
    .zakaz-3d-column,
    .zakaz-form-column {
        width: 100%;
    }
    
    .zakaz-3d-preview {
        height: 200px;
    }
    
    .zakaz-form-column textarea {
        height: 80px;
        min-height: 80px;
    }
}

/* Специальные стили для очень маленьких экранов */
@media (max-width: 360px) {
    .zakaz-3d-preview {
        height: 120px !important;
    }
    
    .zakaz-3d-title {
        font-size: 14px;
    }
    
    .zakaz__title {
        font-size: 16px;
    }
    
    .zakaz__title--sub {
        font-size: 12px;
    }
    
    .zakaz-form-column textarea {
        height: 50px !important;
        min-height: 50px !important;
    }
}