/* Sits opposite the heading text, on the physical left of the page. */
.catalog-heading { position: relative; }

.upload-design-cta {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

@media (max-width: 1000px) {
  .upload-design-cta {
    position: static;
    display: flex;
    justify-content: center;
    margin-top: 14px;
    transform: none;
  }
}

.upload-design-button {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 26px;
  border: 1px solid var(--store-primary, #1677ff);
  border-radius: 12px;
  color: #fff;
  background: var(--store-primary, #1677ff);
  box-shadow: 0 6px 16px rgb(22 119 255 / 22%);
  font: 700 1rem Cairo, sans-serif;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.upload-design-button i { font-size: 1.3rem; }

.upload-design-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgb(22 119 255 / 30%);
}

.upload-design-dialog {
  width: min(480px, calc(100vw - 32px));
  padding: 20px;
  border: 0;
  border-radius: 18px;
  color: var(--store-navy, #0f2544);
  background: #fff;
  box-shadow: 0 24px 60px rgb(15 37 68 / 28%);
  text-align: start;
  font-family: Cairo, sans-serif;
}

.upload-design-dialog::backdrop { background: rgb(15 37 68 / 45%); }

.upload-design-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.upload-design-dialog__head h2 { margin: 0; font-size: 1.15rem; font-weight: 800; }

.upload-design-dialog__close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: inherit;
  background: #eef3fa;
  cursor: pointer;
}

.upload-design-drop {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 16px;
  overflow: hidden;
  border: 2px dashed var(--store-border, #cbd9e8);
  border-radius: 14px;
  background: #f7faff;
  text-align: center;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease;
}

.upload-design-drop:hover,
.upload-design-drop.is-drag-active {
  border-color: var(--store-primary, #1677ff);
  background: #eef5ff;
}

.upload-design-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-design-drop:focus-within { outline: 2px solid var(--store-primary, #1677ff); outline-offset: 2px; }

.upload-design-drop img {
  max-width: 100%;
  max-height: 260px;
  object-fit: contain;
}

.upload-design-drop__empty { display: grid; gap: 6px; color: #5a6b82; }
.upload-design-drop__empty i { color: #8aa4c4; font-size: 2.6rem; line-height: 1; }
.upload-design-drop__empty strong { color: var(--store-navy, #0f2544); }
.upload-design-drop__empty small { font-size: .8rem; }

.upload-design-dialog .upload-design-status { min-height: 1.4em; margin: 10px 0 0; font-size: .88rem; line-height: 1.6; color: #5a6b82; }
.upload-design-dialog .upload-design-status.is-error { color: #c0392b; }
.upload-design-dialog .upload-design-status.is-success { color: #1e8e4e; }

.upload-design-dialog__foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }

.upload-design-primary,
.upload-design-secondary {
  padding: 8px 20px;
  border-radius: 10px;
  font: 700 .92rem Cairo, sans-serif;
  cursor: pointer;
}

.upload-design-primary { border: 1px solid var(--store-primary, #1677ff); color: #fff; background: var(--store-primary, #1677ff); }
.upload-design-secondary { border: 1px solid var(--store-border, #cbd9e8); color: var(--store-navy, #0f2544); background: #fff; }

@media (prefers-reduced-motion: reduce) {
  .upload-design-button,
  .upload-design-drop { transition: none; }
}

/* On the store hero the button sits under the text instead of floating to the side. */
.hero-copy .upload-design-cta {
  position: static;
  display: flex;
  justify-content: center;
  margin-top: 20px;
  transform: none;
}
