:root {
  --IDD-background-color: radial-gradient(
    circle,
    rgba(245, 217, 255, 1) 0%,
    rgba(208, 229, 255, 1) 100%
  );
}
#IDDContainer {
  padding: 0.5em;
  width: 100%;
  height: fit-content;
  border-radius: 0.5em;
  background: #f4f3ee;
  display: flex;
  flex-direction: column;
  row-gap: 0.5em;
  font-size: 1em;
  font-family: Roboto, sans-serif;
  margin: 1em 0;
  overflow: clip;
}
#IDDContainer input {
  border-radius: inherit;
  height: 2em;
  padding: 0.5em;
  border: none;
  font-size: inherit;
  font-family: inherit;
}
#IDDContainer input:focus {
  outline: none;
  box-shadow: inset rgba(0, 0, 0, 0.05) 0px 0px 0.5em 0px,
    inset rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
}
#IDDSpanContainer {
  height: 200px;
  width: 100%;
  min-width: 200px;
  max-width: 400px;
  border-radius: inherit;
  overflow: clip;
  background: #fff;
  position: sticky;
  inset: 0;
  margin: 0 auto;
}

/*canvas*/
#IDDCanvas {
  width: 100%;
  position: absolute;
  inset: 0;
  margin: auto;
  padding: 0 2.75em;
}

#svgSpanContainer {
  width: fit-content;
  height: fit-content;
  position: absolute;
  margin: auto;
  inset: 0;
  display: inline-flex;
  user-select: none;
  pointer-events: none;
  align-items: center;
}
#IDDSpan {
  max-width: 232px;
  padding: 0 0.1em;
  font-family: inherit;
  font-size: 2em;
  text-wrap: nowrap;
  color: #000;
  opacity: 0.9;
  filter: brightness(0.95) drop-shadow(0 0 1px rgba(0, 0, 0, 0.5));
}
#ESOptions {
  background: #fff;
  border-radius: inherit;
  padding: 0.5em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
  justify-content: space-between;
}
#ESContainer,
#ESFonts,
#ESColors {
  align-items: center;
  gap: 0.5em;
  background: #fff;
  border-radius: inherit;
  padding: 0.5em;
  display: inline-flex;
  overflow-x: auto;
  text-wrap: nowrap;
}
.ESInlineFlex {
  display: inline-flex;
  align-items: center;
  border-radius: inherit;
  column-gap: 0.5em;
}
#IDDSpanContainer > img {
  object-fit: cover;
  position: absolute;
  inset: 0;
  margin: auto;
}
.ESImgContainer {
  width: 2.5em;
  height: 2.5em;
  padding: 0.5em;
  overflow: clip;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.ESImgContainer > svg {
  width: 400px;
  aspect-ratio: 1/1;
}
.ESFontContainer {
  height: 2.5em;
  aspect-ratio: 3/1;
  padding: 0 0.5em;
  overflow: clip;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ESFontContainer img {
  pointer-events: none;
  object-position: center;
  object-fit: cover;
  height: auto;
  width: 100%;
}
.EScolorOption {
  height: 2.5em;
  aspect-ratio: 1/1;
  border-radius: inherit;
  transition: 0.25s ease;
  cursor: pointer;
}
#ESOptions .ESInlineFlex div {
  height: 2.5em;
  width: 2.5em;
  /* border: 1px solid #000; */
  cursor: pointer;
  overflow: clip;
  display: flex;
  align-items: center;
  justify-content: center;
}
#ESOptions .ESInlineFlex div svg {
  height: 1.5em;
  width: 1.5em;
}
.ESChecked {
  box-shadow: inset rgba(0, 0, 0, 0.05) 0px 0px 0.5em 0px,
    inset rgba(0, 0, 0, 0.3) 0px 0px 0px 2px;
  border-radius: inherit;
  background: #f4f3ee;
  transition: 0.25s ease;
}
.displaySvg {
  height: 3.3em;
  width: 3.3em;
}
.insetShadow {
  box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0.5em 0px,
    rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
  transition: 0.25s ease;
  border-radius: inherit;
}
#IDDInstDiv {
  background: rgba(255, 255, 255, 0.8);
  border-radius: inherit;
  position: absolute;
  inset: 0;
  margin: 0.5em 0.5em auto auto;
  display: grid;
  cursor: pointer;
  grid-template-rows: 0fr 0fr;
  height: 2em;
  width: 2em;
  padding: 0.5em;
  transition: all 0.25s ease;
  font-family: inherit;
}
#IDDInstDiv.expand {
  grid-template-rows: 0fr 1fr;
  row-gap: 0.5em;
  height: calc(100% - 1em);
  width: calc(100% - 1em);
}
#IDDInstDiv svg {
  justify-self: center;
  height: 1em;
  width: 1em;
}
.IDDhr {
  margin: 0 max(0.25em);
  height: 1em;
  border: solid 1px lightgray;
}
#IDDinstSpan {
  overflow: hidden;
  font-size: 0.75em;
  text-align: left;
}

@keyframes requiredSewingInput {
  0% {
    background-color: transparent;
  }
  25% {
    background-color: rgba(255, 90, 90, 0.5);
  }
  100% {
    background-color: transparent;
  }
}

/* cart demo img */
.sewingCartDemoImg {
  width: 100% !important;
  max-width: 200px !important;
  --radius: 0.25em;
  background-image: radial-gradient(var(--radius), transparent 98%, #f1f1f1),
    linear-gradient(#f1f1f1 0 0);
  background-repeat: round, no-repeat;
  background-position: calc(var(--radius) * -1.5) calc(var(--radius) * -1.5),
    50%;
  background-size: calc(var(--radius) * 3) calc(var(--radius) * 3),
    calc(100% - var(--radius) * 3) calc(100% - var(--radius) * 3);
}
