html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "Martel Sans", sans-serif;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#topRow {
  position: fixed;
  top: var(--wp-admin--admin-bar--height, 32px);
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto auto;
  height: 118px;
  box-sizing: border-box;
  background: #fff;
  z-index: 100;
}

#topRow h1 {
  padding: 0.8em 0 0 0.67em;
  margin: 0;
  align-self: start;
}

#topRow img {
  padding: 1.2em;
  position: absolute;
  right: 0;
}

#centerRow {
  position: fixed;
  top: calc(var(--wp-admin--admin-bar--height, 32px) + 118px);
  left: 0;
  right: 0;
  bottom: 80px;
  padding: 0.67em;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 12px;
  box-sizing: border-box;
}

#bottomRow {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: #fff;
  z-index: 100;
}

#firstCol {
  display: flex;
  flex-direction: column;
  width: 15%;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background-color: #f9f9f9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}

#blechProfileHeaderContainer {
  padding: 12px 16px 8px;
  flex-shrink: 0;
  border-bottom: 1px solid #e0e0e0;
}

#blechProfileHeaderContainer h3 {
  margin: 0;
  color: #444;
}

#centerRow #blechProfileContainer {
  overflow-y: scroll;
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#secondCol {
  display: flex;
  flex-direction: column;
  width: 15%;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background-color: #f9f9f9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}

#centerRow #materialEigenschaftenContainer {
  overflow-y: scroll;
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#materialEigenschaftenHeaderContainer {
  padding: 12px 16px 8px;
  flex-shrink: 0;
  border-bottom: 1px solid #e0e0e0;
}

#materialEigenschaftenHeaderContainer h3 {
  margin: 0;
  color: #444;
}

#materialEigenschaftenContainer select {
  width: 100%;
  padding: 6px 8px;
  font-size: 0.9rem;
  box-sizing: border-box;
}

#thirdCol {
  display: flex;
  flex-direction: column;
  width: 15%;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background-color: #f9f9f9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}

#eingabeMaßeHeaderContainer {
  padding: 12px 16px 8px;
  flex-shrink: 0;
  border-bottom: 1px solid #e0e0e0;
}

#eingabeMaßeHeaderContainer h3 {
  margin: 0;
  color: #444;
}

#centerRow #eingabeMaßeContainer {
  overflow-y: scroll;
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.eingabemass-label {
  display: flex;
  flex-direction: column;
}

.eingabemass-label-max {
  color: #1565c0;
  font-size: 0.78rem;
}

#eingabeMaßeContainer input {
  width: 100%;
  padding: 6px 8px;
  font-size: 0.9rem;
  box-sizing: border-box;
}

#eingabeMaßeContainer input.eingabe-invalid {
  border-color: #e53935;
  outline-color: #e53935;
}

.eingabe-alert {
  color: #e53935;
  font-size: 0.78rem;
}

#fourthCol {
  display: flex;
  flex-direction: column;
  flex: 1;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background-color: #f9f9f9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}

#dreiDModellHeaderContainer {
  padding: 12px 16px 8px;
  flex-shrink: 0;
  border-bottom: 1px solid #e0e0e0;
}

#dreiDModellHeaderContainer h3 {
  margin: 0;
  color: #444;
}

#centerRow #dreiDModellContainer {
  flex: 1;
  padding: 12px;
  overflow: hidden;
}

#canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.blechProfilCard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background-color: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
}

.blechProfilCard:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border-color: #b0b0b0;
}

.blechProfilCard h4 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #222;
  text-align: center;
}

.blechProfilCard img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.blechProfilCard[data-selected="true"] {
  border-color: red;
  border-width: medium;
}

#bottomRow {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 0.5em 2em 0 0;
}

#addToCartButtonContainer {
  display: flex;
  align-items: center;
  gap: 12px;
}

#addToCartButtonContainer .button {
  box-sizing: border-box;
  height: 2.5em;
  display: flex;
  align-items: center;
}

