﻿/* STEP-03 design workspace only: Design -> Preview -> Color & Texture. */
.step03-workspace #step-3 .customizer-layout {
  grid-template-columns: 72% 28%;
}

.step03-workspace #step-3.custom-combination-open .customizer-layout {
  grid-template-columns: 50% 28% 22%;
}

.step03-workspace #step-3 .customizer-pattern-column {
  order: 1;
}

.step03-workspace #step-3 .customizer-preview-column {
  position: relative;
  z-index: 20;
  order: 2;
  padding: 36px 24px 24px;
  border-right: 3px solid var(--border-2);
}

/* Prevent the legacy HTML position from flashing on slow FTP connections. */
.step03-workspace #step-3 .customizer-preview-column > .design-detail-preview {
  display: none !important;
}

.step03-workspace #step-3 .customizer-control-column {
  display: none;
  order: 3;
  padding: 36px 34px 24px 24px;
  border-right: 0;
}

.step03-workspace #step-3.custom-combination-open .customizer-control-column {
  display: flex;
}

/* Workspace-only pattern card sizing. */
.step03-workspace #step-3 .pattern-grid {
  grid-template-columns: repeat(auto-fill, 110px);
  gap: 9px;
}

.step03-workspace #step-3 .pattern-card {
  width: 110px;
}

.step03-workspace #step-3 .pattern-thumb {
  width: 110px;
  height: 110px;
  aspect-ratio: auto;
}

.step03-workspace #step-3 .pattern-name {
  width: 100%;
  font-size: 12px !important;
}

.step03-workspace #step-3 .pattern-panel > .panel-title {
  margin-bottom: 10px;
}

/* Workspace-only ready-made combination and live-preview composition. */
.step03-workspace #step-3 .customizer-preview-column {
  overflow-y: auto;
  scrollbar-width: thin;
}

.step03-workspace #step-3 .preview-panel-title {
  margin-bottom: 10px;
}

.step03-workspace #step-3 .workspace-preview-combo {
  width: 100%;
  margin: 0;
}

.step03-workspace #step-3 .workspace-preview-combo-row {
  position: relative;
  z-index: 12;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 75px;
  gap: 7px;
  align-items: stretch;
  width: 100%;
}

.step03-workspace #step-3 .workspace-preview-combo-nav {
  display: grid;
  grid-template-columns: repeat(2, 36px);
  gap: 3px;
}

.step03-workspace #step-3 .workspace-preview-combo-nav button {
  display: grid;
  place-items: center;
  min-width: 0;
  height: 36px;
  padding: 0;
  border: 1px solid #d8d8d8;
  border-radius: 0;
  background: #fff;
  color: #232323;
  font-family: 'Source Sans Pro', 'Source Sans 3', Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.step03-workspace #step-3 .workspace-preview-combo-nav button:hover,
.step03-workspace #step-3 .workspace-preview-combo-nav button:focus-visible {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  outline: none;
}

.step03-workspace #step-3 .workspace-preview-combo-prev::before,
.step03-workspace #step-3 .workspace-preview-combo-next::before {
  content: '';
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}

.step03-workspace #step-3 .workspace-preview-combo-prev::before {
  -webkit-mask-image: url('../assets/icons/arrow-left.svg');
  mask-image: url('../assets/icons/arrow-left.svg');
}

.step03-workspace #step-3 .workspace-preview-combo-next::before {
  -webkit-mask-image: url('../assets/icons/arrow-right.svg');
  mask-image: url('../assets/icons/arrow-right.svg');
}

.step03-workspace #step-3 .preview-container .workspace-preview-combo-zoom {
  position: absolute;
  right: 11px;
  bottom: 11px;
  left: auto;
  z-index: 8;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  padding: 0;
  border: 1px solid #d8d8d8;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.9);
  color: #232323;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.step03-workspace #step-3 .workspace-preview-combo-zoom span {
  display: block;
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url('../assets/icons/zoom.svg') center / contain no-repeat;
  mask: url('../assets/icons/zoom.svg') center / contain no-repeat;
}

.step03-workspace #step-3 .preview-container .workspace-preview-combo-zoom:hover,
.step03-workspace #step-3 .preview-container .workspace-preview-combo-zoom:focus-visible {
  border-color: rgba(35, 35, 35, 0.9);
  background: rgba(35, 35, 35, 0.9);
  color: #fff;
  opacity: 1;
}

.step03-workspace #step-3 .workspace-preview-combo .copy-combo-select-trigger {
  min-height: 36px;
  height: 36px;
}

.step03-workspace #step-3 .customizer-control-column > .color-panel > .copy-combo-select-block {
  display: none;
}

.step03-workspace #step-3 .workspace-preview-combo .copy-combo-select-label {
  display: none;
}

.step03-workspace #step-3 .workspace-live-preview-row {
  position: relative;
  z-index: 200;
  display: block;
  width: 100%;
  min-height: 40px;
  margin-top: 11px;
}

.step03-workspace #step-3 .workspace-preview-important-info {
  position: relative;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 100%;
  height: 36px;
  padding: 0;
  border: 1.5px solid #ff0000;
  border-radius: 0;
  background: #fff;
  color: #ff0000;
  cursor: help;
}

.step03-workspace #step-3 .workspace-live-preview-row .workspace-preview-important-info {
  width: 40px;
  height: 40px;
  border: 1.5px solid #232323;
  background: #232323;
  color: #fff;
}

.step03-workspace #step-3 .workspace-live-preview-row .workspace-preview-important-info:hover,
.step03-workspace #step-3 .workspace-live-preview-row .workspace-preview-important-info:focus-visible {
  border-color: #232323;
  background: #232323;
  color: #fff;
  outline: none;
}

.step03-workspace #step-3 .workspace-live-preview-row .workspace-preview-important-tooltip {
  right: auto;
  left: 0;
}

.step03-workspace #step-3 .workspace-preview-important-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-family: 'Source Code Pro', 'Google Sans Code', monospace;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.step03-workspace #step-3 .workspace-preview-important-tooltip {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  left: auto;
  z-index: 9999;
  width: min(360px, calc(28vw - 82px));
  box-sizing: border-box;
  padding: 12px;
  background: rgba(255, 0, 0, 0.94);
  color: #fff;
  font-family: 'Source Code Pro', 'Google Sans Code', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.5px;
  line-height: 1.45;
  text-align: left;
  text-transform: uppercase;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.step03-workspace #step-3 .workspace-preview-important-tooltip strong {
  font-weight: 800;
}

.step03-workspace #step-3 .workspace-preview-important-info:hover .workspace-preview-important-tooltip,
.step03-workspace #step-3 .workspace-preview-important-info:focus-visible .workspace-preview-important-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.step03-workspace #step-3 .workspace-preview-important-info:focus-visible {
  outline: 2px solid #232323;
  outline-offset: 2px;
}

.step03-workspace #step-3 .workspace-preview-combo-row + .preview-container {
  margin-top: 11px;
}

.step03-workspace #step-3 .workspace-live-preview-row + .preview-footer {
  padding-top: 0;
  margin-top: 11px;
}

.step03-workspace #step-3 .preview-footer + .preview-wallpaper-btn,
.step03-workspace #step-3 .workspace-preview-next {
  margin-top: 17px;
}

.step03-workspace #step-3 .workspace-preview-custom-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex: 0 0 auto;
  width: 100%;
  min-height: 40px;
  height: 40px;
  margin: 0 !important;
  padding: 7px 8px;
  border: 1.5px solid var(--accent);
  background: #fff;
  color: var(--accent);
  font-family: 'Source Sans Pro', 'Source Sans 3', Arial, sans-serif;
  font-size: 14px !important;
  font-weight: 700;
  letter-spacing: 0.1em !important;
  line-height: normal;
  white-space: nowrap;
  text-align: left;
  text-transform: uppercase;
}

.step03-workspace #step-3 .workspace-preview-custom-toggle::after {
  content: '';
  display: inline-block;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-left: 11px;
  background: currentColor;
  -webkit-mask: url('../assets/icons/custom-combination.svg') center / contain no-repeat;
  mask: url('../assets/icons/custom-combination.svg') center / contain no-repeat;
}

.step03-workspace #step-3 .workspace-preview-custom-toggle:hover,
.step03-workspace #step-3 .workspace-preview-custom-toggle:focus-visible {
  border: 1.5px solid var(--accent);
  background: var(--accent);
  color: #fff;
  outline: none;
}

.step03-workspace #step-3.custom-combination-open .workspace-live-preview-row {
  display: none;
}

.step03-workspace #step-3.custom-combination-open .workspace-preview-custom-toggle {
  display: none !important;
}

.step03-workspace #step-3 .workspace-control-next {
  display: flex !important;
  flex: 0 0 auto;
  width: 100%;
  margin: 21px 0 0 !important;
  justify-content: center;
}

.step03-workspace #step-3 .step03-custom-combo-close {
  order: 2;
  display: none;
  flex: 0 0 auto;
  min-height: 24px;
  margin-left: auto;
  padding: 3px 0 3px 10px;
  border: 0;
  border-left: 1px solid #232323;
  border-radius: 0;
  background: transparent;
  color: #232323;
  font-family: 'Source Code Pro', 'Google Sans Code', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
}

.step03-workspace #step-3.custom-combination-open .step03-custom-combo-close {
  display: block;
}

.step03-workspace #step-3 .step03-custom-combo-close:hover,
.step03-workspace #step-3 .step03-custom-combo-close:focus-visible {
  color: var(--accent);
  outline: none;
}

.step03-workspace #step-3.custom-combination-open .color-panel > .panel-title {
  align-items: center;
  gap: 7px;
  padding-right: 0;
}

.step03-workspace #step-3.custom-combination-open .color-panel > .panel-title::after {
  order: 1;
}

.step03-workspace #step-3 .workspace-custom-detail-preview {
  flex: none;
  width: 100%;
  height: 225px;
  min-height: 225px;
  margin: 18px 0 0;
  box-sizing: border-box;
}

.step03-workspace #step-3 .workspace-custom-detail-preview .design-detail-label {
  font-size: 11px;
  letter-spacing: 1px;
}

.step03-workspace #step-3 .workspace-detail-zoom {
  position: absolute;
  right: 11px;
  bottom: 11px;
  left: auto;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid #d8d8d8;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.9);
  color: #232323;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.step03-workspace #step-3 .workspace-detail-zoom span {
  display: block;
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url('../assets/icons/zoom.svg') center / contain no-repeat;
  mask: url('../assets/icons/zoom.svg') center / contain no-repeat;
}

.step03-workspace #step-3 .workspace-detail-zoom:hover,
.step03-workspace #step-3 .workspace-detail-zoom:focus-visible {
  border-color: rgba(35, 35, 35, 0.9);
  background: rgba(35, 35, 35, 0.9);
  color: #fff;
  outline: none;
}

.workspace-preview-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(0, 0, 0, 0.7);
}

.workspace-preview-lightbox.is-open {
  display: flex;
}

.workspace-lightbox-dialog {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  box-sizing: border-box;
  width: min(88vw, calc(100vh - 96px));
  max-height: calc(100vh - 64px);
  padding: 18px;
  background: #fff;
}

.workspace-lightbox-heading {
  padding-right: 48px;
  color: #232323;
  font-family: 'Source Sans Pro', 'Source Sans 3', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  line-height: 1.2;
  text-transform: uppercase;
}

.workspace-lightbox-close {
  position: absolute;
  top: 10px;
  right: 18px;
  z-index: 10;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #232323;
  border-radius: 0;
  background: #fff;
  cursor: pointer;
}

.workspace-lightbox-close::before,
.workspace-lightbox-close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 1px;
  background: #232323;
}

.workspace-lightbox-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.workspace-lightbox-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.workspace-lightbox-stage {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  aspect-ratio: 1;
  overflow: visible;
  border: 1.5px solid #232323;
  background: #fff;
}

.workspace-lightbox-svg,
.workspace-lightbox-texture {
  position: absolute;
  inset: 5px;
  pointer-events: none;
}

.workspace-lightbox-watermark {
  position: absolute;
  inset: 5px;
  z-index: 3;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.workspace-lightbox-important-info {
  position: absolute;
  right: 11px;
  bottom: 11px;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 0;
  background: #ff0000;
  color: #fff;
  cursor: help;
}

.workspace-lightbox-important-info:hover,
.workspace-lightbox-important-info:focus-visible {
  border-color: #ff0000;
  background: #ff0000;
  color: #fff;
  outline: none;
}

.workspace-lightbox-important-info .workspace-preview-important-tooltip {
  position: absolute;
  top: auto;
  right: 0;
  bottom: calc(100% + 7px);
  left: auto;
  z-index: 20;
  width: min(330px, calc(100vw - 96px));
  max-width: 330px;
  padding: 14px 16px;
  background: rgba(255, 0, 0, 0.96);
  color: #fff;
  font-family: 'Source Code Pro', 'Google Sans Code', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.5px;
  line-height: 1.45;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.workspace-lightbox-important-info:hover .workspace-preview-important-tooltip,
.workspace-lightbox-important-info:focus-visible .workspace-preview-important-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.workspace-lightbox-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #232323;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Match STEP-04 important-note typography. */
.step03-workspace #step-3 .color-important-note {
  font-family: 'Source Code Pro', 'Google Sans Code', monospace !important;
  font-size: 0.56rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.05em !important;
  line-height: 1.35 !important;
  text-align: center;
  text-transform: uppercase;
}

.step03-workspace #step-3 .color-important-note strong {
  font-weight: 800 !important;
}

@media (max-width: 1920px) {
  .step03-workspace #step-3 #preview-next {
    font-size: 0.6rem;
  }
}

