#left_td {
  width: 50%;
  padding: 20px 20px 20px 0;
}

#right_td {
  width: 50%;
  padding: 20px;
  border-left: 1px solid #ddd;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
      transform: rotate(360deg);
  }
}

/* CSS */
.info-container {
  position: relative;
  display: inline-block;
  margin-bottom:15px;
}

.popup-menu {
  display: none;
  position: absolute;
  width: 580px;
  transform: translate(0px,10px);
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 100;
}

.info-container:hover .popup-menu {
  display: block;
}

#beschichtung4s, #beschichtung5s{
  width: 49%;
}


#priceContainer {
  float: right;
  background-color: #e30613;
  color: white;
  border-radius: 6px;
  padding: 5px;
  width: 60%;
  min-width: 165px;
}

#priceStatt,
#priceNur {
  text-align: right;
  font-size: 20px;
  text-decoration: line-through;
}

#specialpriceResult {
  text-align: right;
  font-size: 23px;
}

#stattDisclaimer {
  float: right;
  font-size: 0.8em;
  color: #333;
  margin: 10px 0;
  width: 60%
}

#jetztPreisDiv {
  padding: 1px 5px;
  color: black;
  background-color: #ffec38;
  border-radius: 6px;
}

.bx-viewport {
  max-height: 400px !important;
}

.imgborder {
  border: 4px solid white;
  display: none;
}

.showImageClass {
  display: block !important;
}

select {
  background-clip: padding-box !important;
  border: 1px solid #cccccc !important;
  border-radius: 3px !important;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  font-size: 14px !important;
  height: auto !important;
  line-height: 1.42857143 !important;
  padding: 0 25px 0 2px !important;
  vertical-align: baseline !important;
  width: auto !important;
  box-sizing: border-box !important;
  text-indent: unset;
}

.gallerylist {
  list-style: none;
  padding-left: 0;
}

.galleryimage {
  max-width: 200px;
  max-height: 200px;
  float: left;
  border: 3px solid #f6f6f6;
  margin: 0 10px 20px 0;
  overflow: hidden;
}

.galleryitem {
  display: block;
  object-fit: contain;
  width: 200px;
  height: 200px;
}

.galleryimage:hover {
  border: 3px solid #d5d5d5;
}

.galleryimage:hover .galleryitem {
  transform: scale(1.07);
}

.galleryimage .galleryitem {
  transition: transform 0.2s ease;
}

.bx-wrapper img {
  max-width: 100%;
  width: 100%;
  display: block;
  object-fit: cover !important;
}

.select2-container .select2-selection--single {
  height: min-content !important;
}

.select2-custom-img,
.select2-custom-color {
  margin-bottom: 5px;
  margin-right: 5px;
  position: relative;
  float: left;
  display: block;
}

.select2-results__option {
  min-height: 90px;
}

#select2-ausfuhrung-container {
  background: #e2e2e4 url("../images/title-bg.gif") repeat-x left top;
  padding-top: 5px;
}

.name-span {
  font-size: 1.5rem;
}

.description-span {
  font-size: 12px;
  color: #666;
}

span.select2:nth-child(10) {
  margin-top: 10px;
  margin-bottom: 7px;
}

.select2-container--default .select2-results>.select2-results__options {
  max-height: 400px !important;
}

#select2-farbe-container {
  padding-top: 5px;
  background: #e2e2e4 url("../images/title-bg.gif") repeat-x left top;
}

.select2-selection__arrow {
  height: 100% !important;
  border-left: 1px solid #aaa;
}

.product-description .price-box.price-final_price .price-label {
  font-size: 16px;
  color: #e30613;
  font-weight: bold;
}

.price-box2 .minimal-price .price-container .price {
  font-size: 24px !important;
}

.accent {
  accent-color: #e30613;
}

.maintable {
  padding: 0;
}

.swatch-wrapper, .swatch-wrapper2 {
  position: relative;
  display: inline-block;
  cursor: pointer;
  padding: 2px;
  border: 2px solid transparent;
  border-radius: 6px;
  box-sizing: border-box;
  margin: 0;
}

.swatch-wrapper:hover, .swatch-wrapper2:hover {
  border: 2px solid darkgray;
}

.tooltip {
  visibility: hidden;
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  text-align: center;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 10;
}

.swatch-wrapper:hover .tooltip, .swatch-wrapper2:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

.custom-row-container {
  display: flex;
  align-items: center;
  /* gap: 20px; */
}

.custom-parent-div {
  border: 2px solid #818689;
  border-radius: 8px;
  padding: 10px;
  background-color: #f0f0f0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gold-parent-div {
  border: 2px solid gold;
  border-radius: 8px;
  padding: 10px;
  background-color: #fff8e1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Modal container */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 40%;
  width: 100%;
  height: 100%;
  overflow: auto;
}

/* Modal content box */
.modal-content {
  background-color: #fff;
  margin: 10% auto;       /* 10% from top, centered horizontally */
  padding: 20px;
  border: 1px solid #888;
  width: 90%;             /* 90% of viewport width */
  max-width: 400px;       /* Maximum width */
  box-sizing: border-box;
  border-radius: 8px;
  position: relative;
}

/* Close button */
.close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 36px; /* Increase size as needed */
  color: #aaa;
  cursor: pointer;
  z-index: 100;
}
.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
}

/* Price rows in modal */
.modal-price-row {
  margin: 10px 0;
}
.modal-price-statt {
  font-size: 16px;
  color: #555;
}
.modal-price-nur {
  font-size: 16px;
  color: #555;
}
.modal-price-jetzt {
  font-size: 20px;
  font-weight: bold;
  color: #e30613;
  background-color: #ffec38;
}

/* Separator (horizontal line) */
hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 10px 0;
}

/* Disclaimer styling */
.modal-disclaimer {
  font-size: 12px;
  color: #777;
  margin-top: 10px;
}


/* ===== Mobile Styles ===== */
@media screen and (max-width: 875px) {
  .maintable {
    display: block;
    width: 100%;
  }

  /* .maintable tr {
    display: block;
    width: 100%;
  } */

  .maintable td {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 10px;
    border: none;
  }

  #left_td {
    width: 100%;
    padding: 20px 20px 20px 0;
  }

  #right_td {
    width: 100%;
    padding: 20px;
    border: none;
  }

  #priceResult,
  #specialpriceResult {
    font-size: 1.2em;
  }

  .product-description .price-box.price-final_price .price-label {
    font-size: 14px;
  }

  #fenceForm {
    width: 100%;
    margin-top: 20px;
  }

  #priceContainer {
   min-width: 200px;
  }

  #trueOption,
  #falseOption {
    width: 100%;
    margin-bottom: 10px;
  }

  #trueOption img,
  #falseOption img {
    width: 60%;
  }

  .swatch-wrapper, .swatch-wrapper2 {
    width: auto;
    margin: 5px;
  }

  #right_td table tr td {
    display: inline-block;
    vertical-align: middle;
    width: auto;
  }
  

  #right_td table tr td:first-child {
    width: 45%;
    text-align: left;
  }

  #right_td table tr td:last-child {
    width: 45%;
    text-align: right;
  }

  .callus {
    display: none !important;
  }

  
}

/** Für Safari dass kein autozoom ist **/
@media screen and (-webkit-min-device-pixel-ratio: 0) {

  select:focus,
  textarea:focus,
  input:focus {
    font-size: 16px !important;
  }
}

  @media screen and (max-width:560px) {
  /* Stack table cells so icons are above and price is below */
  #right_td table,
  #right_td table tr,
  #right_td table tr td {
    display: block;
    width: 100%;
    text-align: center;
  }
  
  /* Hide the two strikethrough prices */
  #priceStatt,
  #priceNur {
    display: none !important;
  }

  #right_td {
    position: relative;
    min-height: 350px; /* Adjust based on your design */
  }
  #right_td #jetztPreisTd {
    width: 100% !important;
  }
  
  /* Position the price container absolutely with a top offset of 15px */
  #priceContainer {
    position: absolute;
    top: 150px;
    right: 0px; /* adjust if needed */
    background-color: transparent ;
  }
#fenceForm{
  margin-top: 100px;
}

#left_td{
  margin-bottom: 0px;
  padding-bottom: 0px;
  padding-right: 0px;
}
#right_td{
  margin-top: 0px;
  padding: 0px;
}

  #jetztPreisDiv {
    display: inline-block !important;
    padding: 3px 8px;
    background-color: #ffec38;
    color: black;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: bold;
  }


  #stattPreis,
  #nurPreis,
  #stattDisclaimer,
  .callus
  {
    display: none !important;
  }

  #beschichtung4s, #beschichtung5s{
    width: 100%;
  }

  #popup-menu{
    width: 275px;
  }
}

  
  