body {
  margin: 0px 20px;
  font-family: 'Inter', sans-serif;
  background: #ffffff;
  color: #000000;
  display: flex;
  justify-content: center;
  align-items: stretch;
  min-height: 100vh;
}

.container {
  display: flex;
  gap: 5%;
  max-width: 1600px;
  width: 100%;
  position: relative;
  min-height: 100%;
}

.preview-panel-container {
  width: 40%;
}

.client-panel {
  width: 50%;
  margin: 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  background: #F8F8FA;
  padding: 30px;
  border-radius: 12px;
}

.client-panel h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  text-align: center;
}

.controls-panel {
  display: flex;
  flex-direction: column;
}

.selectors, .promo-block {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.dropdown-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 15px;
}

input[type="text"],
input[type="number"] {
  font-size: 16px;
  border: 1px solid #C1C1C1;
  border-radius: 8px;
  background-color: #fff;
  color: #000000;
  padding: 10px;
  width: 50%;
  box-sizing: border-box;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
  outline: none;
  border-color: #0F917E;
}

select {
  font-size: 16px;
  border: 1px solid #C1C1C1;
  border-radius: 8px;
  background-color: #fff;
  color: #000;
  cursor: pointer;
  padding: 10px;
  width: 50%;
  box-sizing: border-box;
  max-height: 400px;
}

select option {
  background-color: #F8F8FA;
  color: #828282;
  padding: 10px;
}

select option:checked {
  background-color: #F8F8FA;
  color: #008000;
}

select option:hover {
  background-color: #cccccc;
  color: #000000;
}

/* Стили для выпадающего списка */
select::-webkit-scrollbar {
  width: 8px;
}

select::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

select::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

select::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.preview-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 20px;
  background: #F8F8FA;
  padding: 30px;
  border-radius: 12px;
}

canvas {
  border: 1px solid #ccc;
  background-color: white;
  border-radius: 15px;
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  padding: 12px 24px;
  font-size: 14px;
  background-color: #C9D7E3;
  color: rgb(0, 0, 0);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s;
}

button:hover {
  background-color: #B5C4C2;
}

#downloadBtn {
  width: 141px;
  height: 42px;
  font-size: 16px;
  background-color: #063730;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

#downloadBtn img {
  height: 20px;
  width: auto;
}

.display-mode-selector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.display-mode-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.display-mode-button {
  padding: 0;
  border: none;
  border-radius: 8px;
  background-color:#F8F8FA;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.display-mode-button img {
  width: 42px;
  height: 42px;
}

.display-mode-button.selected .icon-rect {
  fill: #C2D715;
}

.preview-item {
  width: 400px; /* Match canvas width */
  height: 400px; /* Match canvas height */
  border: none;
  background-color: inherit;
  border-radius: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  box-sizing: border-box;
}

#galleryContainer {
  display: none; /* Hidden by default */
  justify-content: flex-start;
  align-content: flex-start;
  overflow-y: auto;
  padding-right: 5px; /* Add space between gallery content and scrollbar */
}

.gallery-item-wrapper {
  position: relative;
  cursor: pointer;
  padding: 12px;
  border: 1px solid #C1C1C1; 
  border-radius: 30px;
}

#galleryContainer img {
  width: 97px;
  height: 97px;
  border-radius: 20px;
  object-fit: cover;
  display: block;
}

.preview-item::-webkit-scrollbar {
  width: 8px;
}

.preview-item::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.preview-item::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.preview-item::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.display-mode-button .icon-rect {
  fill: #C9C9C9; 
}

.login-button-container {
  display: flex;
  justify-content: flex-end;
  margin: 10px 0px;
  width: 100%;
}

.gallery-item-wrapper .check-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  z-index: 2;
  display: none;
}

.gallery-item-wrapper.selected .check-icon {
  display: block;
}

.gallery-item-wrapper.selected::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(128, 128, 128, 0.3);
  z-index: 1;
  border-radius: 30px;
}

.select-all-btn {
  padding: 0;
  background-color: inherit;
}

.select-all-btn:hover{
  background-color: inherit;
}

.select-all-btn-container{
  width: 400px;
  height: 30px;
  align-items: start;
}

/* ── App error toast ── */
#app-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  min-width: 300px;
  max-width: 560px;
  width: max-content;
  background: #1e1e2e;
  color: #f8f8f2;
  border-left: 4px solid #e74c3c;
  border-radius: 10px;
  padding: 14px 44px 14px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 8px 32px rgba(0,0,0,0.28);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}
#app-toast.toast-show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
#app-toast.toast-ok { border-left-color: #2ecc71; }
#app-toast .toast-title {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 4px;
  color: #e74c3c;
}
#app-toast.toast-ok .toast-title { color: #2ecc71; }
#app-toast .toast-body { opacity: .85; word-break: break-word; }
#app-toast .toast-close {
  position: absolute;
  top: 10px; right: 12px;
  background: none; border: none;
  color: #aaa; font-size: 18px; cursor: pointer;
  line-height: 1;
}

/*# sourceMappingURL=app.bundle.css.map*/