
#content {
  width: 70vw;
  margin: auto;
  padding: 2em 0;
}

#product-content {
  padding-top: 2em;
  width: 100%;  
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

#submit-button {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#add-to-cart-message {
  font-size: 1.2rem;
  text-align: left;
  margin-top: 0.3em;
}

#quantity-ticker {
  display: flex;
  flex-direction: row;
}

#product-title {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-bottom: 0.5em;
}

#product-name {
  padding: 0;
  margin: 0;
}

#product-by {
  margin: 0;
  padding: 0 1em;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
}

#customisableArea {
  max-width: 27em;
}

#product-info {
  margin-left: 2em;
  width: 27em;
  display: flex;
  flex-direction: column;
}

#product-price {
  margin: 0;
  margin-left: 0.5em;
  padding: 0;
  font-size: 1.4rem;
}

#product-category {
  color: var(--main);
  font-style: italic;
  margin: 0;
  padding: 0.2em;
}

#select-options {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.select-option, .text-option {
  display: flex;
  flex-direction: column;
  padding: 1em 0;
  font-size: 1.3rem;
  width: 100%;
}

.toggle-option {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 1em 0;
  font-size: 1.3rem;
  width: 100%;
}

.select-label {
  display: inline-block;
  font-size: 1.1em;
  margin-bottom: 0.2em;
}

.select-option select, .text-option input {
  font-size: inherit;
  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.2em;
  height: 2em;
  width: 100%;
}

.select-option select {
  background-color: var(--white);
}



.validatable-input {
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
}


#add-to-cart {
  font-size: 1.2rem;
  width: 100%;
  margin: auto;
  margin-top: 1em;
  padding: 0.7em 1.4em;
}

#add-to-cart:hover {
  background-color: var(--action-hover);
  border: 1px solid black;
}

#add-to-cart-spinner {
  margin-top: 1em;
  width: 3.5em;
  height: 3.5em;
  object-fit: contain;
  display: none;
}

#product-description {
  font-size: 1.1rem;
  text-align: justify;
}

#description-byline {
  text-align: center;
  font-style: italic;
  font-weight: bold;
}

.backgroundMessage {
  margin: 0.2em 0;
  font-size: 1rem;
  font-weight: bold;
}


@media only screen and (max-width: 500px) {

  #content {
    width: 85vw;
  }

}

@media only screen and (max-width: 900px) {

  #product-content {
    flex-direction: column;
    padding-top: 2em;
    align-items: center;
  }

  #product-info {
    width: 30em;
    padding: 2em 0;
    margin: 0;
  }


}


@media only screen and (max-width: 700px) {

  #product-info {
    width: 100%;
  }

  #customisableArea {
    max-width: none;
  }

  .select-label {
    font-weight: bold;
  }


}