/* body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  margin: 0;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
} */

.klarna-original-price {
  font-size: 1em;
  /* font-weight: bold; */
  text-decoration: line-through;
  margin-right: 10px;
}

.klarna-discounted-price {
  font-size: 1.3em;
  /* font-weight: bold; */
  color: #000;
}
.klarna-price-info {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
}
.product-form {
  margin: -10px;
}

.form-container {
  max-width: 600px;
  margin: 25px auto;
  padding: 10px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 15px;
}

label {
  font-weight: 500;
  margin-bottom: 5px;
  display: block;
}

.color-option {
  display: inline-block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 10px;
  cursor: pointer;
  border: 2px solid transparent;
}

.color-option:hover,
.color-option:focus {
  border-color: #007bff;
}

input[type="radio"]:checked + label {
  border-color: #007bff;
}

.graphite {
  background-color: #3f3e41;
}

.quartz {
  background-color: #f9f9f9;
  border: 1px solid #ccc;
}

.graphite-and-quartz {
  background: linear-gradient(90deg, #3f3e41 50%, #f9f9f9 50%);
  border: 1px solid #ccc;
}

.quartz-and-graphite {
  background: linear-gradient(90deg, #f9f9f9 50%, #3f3e41 50%);
  border: 1px solid #ccc;
}

/* Two Color */
.graphite2 {
  background-color: #3f3e41;
}

.quartz2 {
  background-color: #f9f9f9;
  border: 1px solid #ccc;
}

.graphite-and-quartz2 {
  background: linear-gradient(90deg, #3f3e41 50%, #f9f9f9 50%);
  border: 1px solid #ccc;
}

.quartz-and-graphite2 {
  background: linear-gradient(90deg, #f9f9f9 50%, #3f3e41 50%);
  border: 1px solid #ccc;
}

input[type="radio"] {
  display: none;
}

.input-group {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 15px;
}

input[type="number"],
select {
  width: 100px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  transition: border-color 0.3s ease-in-out;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #f9f9f9;
  border-left: none;
}

input[type="number"]:focus,
select:focus {
  border-color: #007bff;
}

input:invalid {
  border-color: red;
}

.price-info {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
}

.original-price {
  font-size: 1.4em;
  font-weight: bold;
  text-decoration: line-through;
  margin-right: 10px;
}

.discounted-price {
  font-size: 1.7em;
  font-weight: bold;
  color: #000;
}

.savings {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background-color: #000;
  padding: 2px 10px 2px 10px;
  border-radius: 5px;
  margin-left: 10px;
  font-weight: bold;
}

.original-price2 {
  font-size: 1.4em;
  font-weight: bold;
  text-decoration: line-through;
  margin-right: 10px;
}

.discounted-price2 {
  font-size: 1.7em;
  font-weight: bold;
  color: #000;
}

.savings2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background-color: #000;
  padding: 2px 10px 2px 10px;
  border-radius: 5px;
  margin-left: 10px;
  font-weight: bold;
}

.tooltip {
  font-size: 0.8em;
  color: red;
  margin-top: 5px;
  display: none;
}

.form-group div {
  gap: 10px;
}

.form-group div + .tooltip {
  margin-top: 0;
  margin-left: 10px;
}

.form-group .info {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.form-group .info .tooltip-text {
  visibility: hidden;
  width: 200px;
  background-color: #333;
  color: #fff;
  text-align: left;
  border-radius: 5px;
  padding: 10px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 0.3s;
}

.form-group .info:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.info {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.info .tooltip-text {
  visibility: hidden;
  width: 250px;
  background-color: #333;
  color: #fff;
  text-align: left;
  border-radius: 5px;
  padding: 10px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -125px;
  opacity: 0;
  transition: opacity 0.3s;
}

.info:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.dimensions-wrapper {
  max-width: 800px;
}

.dimensions-row {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 4px;
  min-height: 60px; /* Ensure consistent row height */
}

.dimension-label {
  font-size: 18px;
  font-weight: bold;
  color: #2d3748;
  margin-bottom: 8px;
}

.info-icon {
  color: #2d3748;
  cursor: help;
  font-size: 16px;
}

.dimension-input-wrapper {
  display: flex;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  width: 260px;
  height: 50px;
  margin-bottom: 0;
}

.grid-container {
  display: flex;
  justify-content: space-between;
}

.dimension-input-wrapper:hover {
  border-color: #bbb;
}

.dimension-input-wrapper input {
  flex: 1;
  border: none;
  outline: none;
  padding: 8px 12px;
  font-size: 16px;
  color: #2d3748;
  height: 100%;
  min-width: 0;
}

.dimension-input-wrapper select {
  width: 60px;
  padding: 8px;
  border: none;
  border-left: 1px solid #e2e8f0;
  outline: none;
  font-size: 16px;
  color: #2d3748;
  background-color: transparent;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232d3748'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
}

.open-input-wrapper {
  display: flex;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  width: 175px;
  height: 50px;
  margin-bottom: 0;
}

.open-input-wrapper select {
  width: 100%;
  padding: 8px;
  border: none;
  border-left: 1px solid #e2e8f0;
  outline: none;
  font-size: 16px;
  color: #2d3748;
  background-color: transparent;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232d3748'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px;
}

@media (max-width: 768px) {
  .dimensions-wrapper {
    display: block;
  }

  .dimension-input-wrapper {
    width: 100%;
  }

  .dimension-input-wrapper select {
    width: 80px;
  }

  .open-input-wrapper {
    width: 150px;
  }
}

.add-to-cart {
  text-align: center;
  margin-top: 24px;
}

.add-to-cart button {
  background-color: #000;
  color: #fff;
  padding: 15px;
  font-size: 24px;
  font-family: harmonia sans;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

.atc-btn-subtext {
  font-size: 17px;
}

.add-to-cart2 {
  text-align: center;
  margin-top: 24px;
}

.add-to-cart2 button {
  background-color: #000;
  color: #fff;
  padding: 15px;
  font-size: 24px;
  font-family: harmonia sans;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

#addMoreButton {
  /* margin-top: 20px; */
  padding: 15px 26px;
  background-color: #000;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  font-size: 15px;
  margin-right: 10px;
}

@media (max-width: 768px) {
  .add-to-cart2 button {
    font-size: 21px; /* Adjusted size for mobile */
  }

  .add-to-cart button {
    font-size: 21px; /* Adjusted size for mobile */
  }

  .atc-btn-subtext {
    font-size: 16px;
  }
}

.path {
  stroke: white;
}
.error-messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.error-message {
  color: #e53e3e;
  font-size: 12px;
  height: 16px;
  display: block;
  visibility: hidden;
  margin-top: 4px;
}

.error-message.show {
  visibility: visible;
}

.tooltip {
  position: relative;
  display: inline-block;
  color: #2d3748; /* Black color for text */
  font-size: 16px; /* Same size as other text */
}

.tooltip .tooltiptext {
  background-color: #333;
  color: #fff;
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  visibility: hidden;
  width: 300px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  width: 95%;
  max-width: 600px;
  max-height: 90%;
  overflow-y: auto;
}
.close-button {
  background: #f44336;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
}
.close-button:hover {
  background: #d32f2f;
}

#hidden_none {
  display: none;
}

.hidden {
  display: none;
}

@media screen and (min-width: 750px) {
  .form-container {
    padding: 30px;
  }
}
