#ih-apparel .ih-apparel-workspace {
  grid-template-columns: minmax(0, 1fr);
}

#ih-apparel.ih-studio-expanded:popover-open {
  border: 0;
}

#ih-apparel .ih-apparel-order-panel:not([open]),
#ih-apparel .ih-style-finder :is(form,ul,nav)[hidden],
#ih-apparel .ih-garment-color-dock select[hidden],
#ih-apparel .ih-apparel-order-panel [data-next][data-direct="true"] {
  display: none !important;
}

#ih-apparel .ih-apparel-order-panel[open] {
  box-sizing: border-box;
  width: min(760px, calc(100% - 24px));
  display: grid;
  gap: 14px;
  padding: clamp(12px, 3vw, 24px);
  max-height: calc(100dvh - 24px);
  border-radius: 16px;
  overflow: auto;
  overscroll-behavior-y: contain;
}

#ih-apparel .ih-sizing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid #dce3e9;
}

#ih-apparel .ih-sizing-header h2 {
  margin: 0;
  padding: 0;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
}

#ih-apparel .ih-sizing-details summary { cursor: pointer; }

.et_builder_inner_content > .et_pb_section:has(.ih-designer-footer) {
  padding-block-end: 0 !important;
}

.et_builder_inner_content > .et_pb_section:has(.ih-designer-footer) ~ .et_pb_section {
  display: none !important;
}

#ih-apparel .ih-apparel-order-panel select[data-apparel-style][hidden] {
  display: none !important;
}

#ih-apparel .ih-hat-line-product {
  display: grid;
  grid-template-columns: minmax(76px, 112px) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 8px;
  border: 1px solid #dce3e9;
  border-radius: 8px;
  background: #fff;
}

#ih-apparel .ih-hat-line-media {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  text-align: center;
  background: #f2f6f8;
  border-radius: 6px;
  overflow: hidden;
}

#ih-apparel .ih-hat-line-media img:not([hidden]) {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#ih-apparel .ih-hat-line-media span { font-size: .75rem; }

#ih-apparel .ih-hat-line-details {
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 3px;
}

#ih-apparel .ih-hat-line-details button { margin-top: 4px; }

#ih-apparel .ih-style-finder .ih-hat-filters {
  flex-basis: 100%;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 132px), 1fr));
  gap: 8px;
}

#ih-apparel .ih-hat-filters label {
  display: grid;
  gap: 4px;
  min-width: 0;
  font-weight: 600;
}

#ih-apparel .ih-hat-filters select { width: 100%; min-width: 0; }

#ih-apparel .ih-design-summary {
  margin: 0;
  color: #234a61;
  font-size: .85rem;
  overflow-wrap: anywhere;
}

#ih-apparel .ih-live-order-details ul {
  display: grid;
  gap: 4px;
  padding: 0;
  margin: 0;
  list-style: none;
}

#ih-apparel .ih-live-order-details li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

#ih-apparel .ih-artwork-review {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

#ih-apparel .ih-artwork-review legend {
  margin-bottom: 4px;
  font-weight: 700;
}

#ih-apparel .ih-artwork-review label:has(input:is([type="radio"],[type="checkbox"])) {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

#ih-apparel .ih-artwork-review input:is([type="radio"],[type="checkbox"]) {
  width: auto;
  margin: 0;
}

#ih-apparel .ih-artwork-review [data-review-files]:not([hidden]) {
  display: grid;
  gap: 6px;
  padding-inline-start: 18px;
}

#ih-apparel .ih-artwork-review [data-saved-review-files][hidden] {
  display: none;
}

#ih-apparel .ih-sizing-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid #dce3e9;
  padding-top: 12px;
}

#ih-apparel .ih-workspace-actions [data-open-pricing] {
  margin-inline-start: auto;
  border-color: #154969;
  background: #154969;
  color: #fff;
}

#ih-apparel .ih-workspace-actions [data-expand-workspace] { margin-inline-start: 0; }

#ih-apparel .ih-garment-color-dock > select {
  width: 100%;
  margin-bottom: 6px;
}

#ih-apparel .ih-garment-color-dock .ih-shirt-swatches { display: grid; }

#ih-apparel [slot="sleeve-placement"]:not([hidden]) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

#ih-apparel [slot="sleeve-placement"] select {
  min-height: 30px;
  width: auto;
  margin: 0;
  padding: 3px 8px;
}

#ih-apparel .ih-style-color-step {
  display: grid;
  gap: 8px;
}

#ih-apparel .ih-style-color-step h3,
#ih-apparel .ih-style-color-step p { margin: 0; }

#ih-apparel .ih-style-color-step button { justify-self: start; }

#ih-apparel .ih-style-color-step .ih-shirt-color-options {
  justify-content: start;
}

#ih-apparel .ih-apparel-order-panel .ih-shirt-quantities {
  display: flex;
  flex-wrap: nowrap;
  gap: 3px;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 3px;
}

#ih-apparel .ih-apparel-order-panel .ih-shirt-quantities label {
  display: grid;
  flex: 1 0 24px;
  min-width: 24px;
  max-width: 34px;
  margin: 0;
  gap: 1px;
  font-size: .68rem;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
}

#ih-apparel .ih-apparel-order-panel .ih-shirt-quantities input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 28px;
  min-height: 28px;
  padding: 2px 1px;
  font-size: .75rem;
  text-align: center;
  appearance: textfield;
}

#ih-apparel .ih-apparel-order-panel .ih-shirt-quantities input::-webkit-inner-spin-button,
#ih-apparel .ih-apparel-order-panel .ih-shirt-quantities input::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

#ih-apparel .ih-apparel-order-panel .ih-print-count-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

#ih-apparel .ih-apparel-order-panel .ih-print-count-fields label {
  min-width: 0;
  font-size: .68rem;
  line-height: 1.25;
}

#ih-apparel .ih-apparel-order-panel .ih-print-count-fields input {
  box-sizing: border-box;
  min-height: 28px;
  height: 28px;
  min-width: 0;
  width: 100%;
  padding: 2px 3px;
  font-size: .75rem;
}

#ih-apparel .ih-apparel-order-panel [data-order-options] {
  min-height: 40px;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 700;
}

#ih-apparel [data-art-tools] {
  display: block;
  min-width: 0;
  margin-top: 8px;
  padding: 7px;
  border: 1px solid #dce3e9;
  border-radius: 6px;
}

#ih-apparel [data-art-tools] > summary {
  font-weight: 700;
  cursor: pointer;
}

#ih-apparel [data-art-tools] :is(label, select, input, button) {
  max-width: 100%;
  min-width: 0;
}

#ih-apparel .ih-style-finder-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block-end: 8px;
  background: #fff;
}

#ih-apparel .ih-style-finder-header h2 {
  margin: 0;
  padding: 0;
}

#ih-apparel .ih-style-finder-header .ih-style-finder-close {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 1.55rem;
  line-height: 1;
}

#ih-apparel .ih-style-finder-category {
  display: grid;
  gap: 4px;
  min-width: 0;
  font-weight: 700;
}

#ih-apparel .ih-style-finder-category select {
  max-width: 100%;
}

#ih-apparel .ih-style-finder .ih-style-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 144px), 1fr));
  align-items: stretch;
  gap: 9px;
  padding: 0;
  list-style: none;
}

#ih-apparel .ih-style-results .ih-style-card {
  display: grid;
  align-content: start;
  justify-items: center;
  width: 100%;
  height: 100%;
  padding: 8px;
  gap: 4px;
  text-align: center;
  white-space: normal;
}

#ih-apparel .ih-style-card-photo {
  display: grid;
  place-items: center;
  width: 100%;
  height: 104px;
  border-radius: 4px;
  background: #f6f8fa;
}

#ih-apparel .ih-style-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#ih-apparel .ih-print-size:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 6px;
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

#ih-apparel .ih-print-size legend {
  margin-bottom: 2px;
  font-weight: 700;
}

#ih-apparel .ih-print-size label {
  display: grid;
  gap: 2px;
  min-width: 0;
  font-size: .73rem;
}

#ih-apparel .ih-print-size input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 30px;
  padding: 3px 5px;
}

#ih-apparel .ih-print-size small {
  grid-column: 1 / -1;
}

#ih-apparel .ih-print-size small:empty {
  display: none;
}

@media (max-width: 740px) {
  #ih-apparel .ih-workspace-actions [data-open-pricing] {
    flex-basis: 100%;
    order: -1;
  }
}
