h1 {
  margin-top: 0px;
}

.hidden {
  display: none;
}

.btn,
a.btn {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn:hover,
a.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.btn:active,
a.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn.dxf-progress,
a.btn.dxf-progress {
  position: relative;
  overflow: hidden;
  --dxf-progress: 0%;
}

.btn.dxf-progress::before,
a.btn.dxf-progress::before {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--dxf-progress);
  background: linear-gradient(90deg, rgba(88, 196, 116, 0.35), rgba(91, 189, 230, 0.45));
  transition: width 0.2s ease;
  z-index: 0;
}

.btn.dxf-progress span,
a.btn.dxf-progress span {
  position: relative;
  z-index: 1;
}

.btn.dxf-progress.is-working,
a.btn.dxf-progress.is-working {
  border-color: #2f7dd1;
}

.logo:focus,
.logo:focus-visible {
  outline: none;
  box-shadow: none;
}

.logo img {
  display: block;
}

.version-label {
  margin-left: 16px;
  font-size: 0.85em;
  color: #666;
  white-space: nowrap;
}

.image-index-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

body.is-bundle-folder .image-index-row {
  display: none;
}

.image-index-row h3 {
  margin: 0;
}

.image-index-row .label {
  margin-right: 20px;
}


.export-options {
  margin-bottom: 16px;
}

.export-options h3 {
  margin: 0 0 10px;
  font-size: 1.1em;
}

.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}

.option-row label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.size-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.size-inputs input[type="number"] {
  width: 90px;
}

.unit-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.unit-toggle select {
  padding: 4px 8px;
}

.dpi-row input[type="number"] {
  width: 100px;
}

.preview-wrapper {
  position: sticky;
  top: 96px;
  width: 100%;
  padding: 24px 16px 16px 24px;
  border: 1px solid #ddd;
  background: #fafafa;
  z-index: 5;
}

.preview-wrapper .ruler-horizontal,
.preview-wrapper .ruler-vertical {
  position: absolute;
  background: repeating-linear-gradient(
    to right,
    #ccc 0,
    #ccc 1px,
    transparent 1px,
    transparent 10px
  );
}

.preview-wrapper .ruler-horizontal {
  top: 0;
  left: 24px;
  right: 0;
  height: 16px;
}

.preview-wrapper .ruler-vertical {
  top: 24px;
  left: 0;
  bottom: 0;
  width: 16px;
  background: repeating-linear-gradient(
    to bottom,
    #ccc 0,
    #ccc 1px,
    transparent 1px,
    transparent 10px
  );
}

.preview-canvas {
  position: relative;
}

.preview-canvas img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid #ddd;
  cursor: zoom-in;
}

.preview-canvas img.show-transparency {
  background-color: #ffffff;
  background-image:
    linear-gradient(45deg, #d5d9df 25%, transparent 25%),
    linear-gradient(-45deg, #d5d9df 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #d5d9df 75%),
    linear-gradient(-45deg, transparent 75%, #d5d9df 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.size-label {
  margin-top: 8px;
  font-size: 0.85em;
  color: #444;
  text-align: center;
}

.sw-update {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #1f2a44;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 16px;
}

.sw-update[hidden] {
  display: none !important;
}

.sw-update .btn {
  background: #fff;
  color: #1f2a44;
  border-color: #fff;
}

.sw-update .btn:hover,
.sw-update .btn:focus-visible {
  background: #e8f0ff;
  color: #1f2a44;
}

.dev-tools {
  display: flex;
  justify-content: center;
  padding: 12px 0 24px;
}

.pdf-options {
  margin-bottom: 16px;
}

.pdf-options h3 {
  margin: 0 0 10px;
  font-size: 1.1em;
}

.pdf-options-note {
  margin: 0 0 12px;
  font-size: 0.95em;
  color: #444;
}

.pdf-options .option-row {
  margin-bottom: 8px;
}

.pdf-options .option-row label {
  font-size: 0.9em;
}

.collapsible-section {
  margin-bottom: 16px;
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  overflow: visible;
}

.collapsible-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f1f4f8;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.collapsible-toggle:focus-visible {
  outline: 2px solid #0b5fff;
  outline-offset: -2px;
}

.collapsible-content {
  padding: 12px 16px 8px;
  background: #fff;
}

.collapsible-toggle[aria-expanded="false"] .collapsible-icon {
  transform: rotate(-90deg);
}

.collapsible-icon {
  transition: transform 0.2s ease;
}

.option-group {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.option-group:last-child {
  border-bottom: none;
}

.pdf-actions {
  justify-content: flex-end;
  margin-top: 8px;
}

.dpi-row[hidden] {
  display: none;
}

.pdf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px 12px;
}

.pdf-grid label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-icon {
  position: sticky;
  top: 80px;
  align-self: flex-start;
  width: 100%;
}

.palette-panel {
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  background: #f2f3f6;
  box-shadow: inset 0 0 0 1px rgba(31, 42, 68, 0.08);
  overflow: hidden;
}

.palette-panel .collapsible-section {
  margin-bottom: 0;
  border: 1px solid #d7deea;
  border-radius: 14px;
}

.palette-panel .collapsible-toggle {
  background: #e8edf5;
}

.palette-panel .collapsible-content {
  background: #f2f3f6;
}

.color-list {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.color-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 6px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
  max-width: 100%;
  box-sizing: border-box;
}

.color-dot {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.15);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}

.color-dot-preview {
  width: 100%;
  height: 100%;
  display: block;
}

.color-value {
  max-width: 90px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
  font-family: inherit;
  /* flex: 1 1 140px; */

}

.color-value:disabled {
  background: #f3f4f6;
  color: #6b7280;
}

.color-dot:focus-visible {
  outline: 3px solid #4f7cff;
  outline-offset: 2px;
}

.color-dot.is-active {
  box-shadow:
    0 0 0 3px rgba(79, 124, 255, 0.35),
    0 10px 20px rgba(79, 124, 255, 0.25);
}

.color-actions {
  margin-left: auto;
  display: inline-flex;
  gap: 6px;
  flex: 0 0 auto;
}

.color-action-button {
  border: 1px solid #c7cdd8;
  background: #f8fafc;
  color: #1f2937;
  border-radius: 8px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 0.85rem;
}

.color-action-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.palette-divider {
  margin: 16px 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
}

.background-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.background-row p {
  margin: 4px 0 0;
  color: #5a6473;
  font-size: 0.85rem;
}

.background-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toggle-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #333;
}

.palette-suggestions {
  display: grid;
  gap: 12px;
}

.palette-title {
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.palette-hint {
  font-weight: 400;
  font-size: 0.8rem;
  color: #667085;
}

.palette-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.palette-swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.palette-swatch-pair {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  background: #fff;
  border: 1px solid #d2d8e2;
  border-radius: 999px;
  padding: 6px 8px;
  cursor: pointer;
}

.palette-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 8px;
}

.download-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.helper-btn {
  white-space: nowrap;
}



.iro-picker-wrap {
  width: 100%;
  padding-top: 8px;
}

.iro-picker {
  max-width: 220px;
}

.info-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid #94a3b8;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #334155;
  margin-left: 6px;
  background: #f8fafc;
  cursor: help;
  position: relative;
  line-height: 1;
}

.info-tooltip {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  min-width: 220px;
  max-width: 280px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 400;
  z-index: 40;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.3);
}

.pdf-export-size {
  margin-top: 6px;
  font-size: 0.9em;
  color: #555;
  display: grid;
  gap: 4px;
}
.product-feature {
    grid-template-columns: 40% 1fr !important;
    gap: 1.5rem;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.84);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1100;
}

.lightbox-overlay[hidden] {
  display: none !important;
}

.lightbox-image {
  max-width: min(92vw, 1400px);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  font-size: 1.8rem;
  line-height: 1;
  color: #fff;
  background: rgba(15, 23, 42, 0.7);
  cursor: pointer;
}

.container {
	margin-left: clamp(0%, 10%, 20%)!important;
	
}

@media (max-width: 960px) {
  .preview-wrapper,
  .product-icon {
    position: relative;
    top: auto;
  }
}
