#floor-quote {
  padding: 2rem;
  margin: 20px 0;
  display: flex;
  position: relative;
  border-radius: 16px;
  border: 1px solid #ffffff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  font-family: 'Archivo R', Helvetica, Arial, Lucida, sans-serif;
}
#floor-quote select, #floor-quote input, .quote-element {
  border-radius: 16px;
  background: transparent;
  color: white;
  border: 1px solid white;
  margin-bottom: 10px;
  width: 100%;
}

#floor-quote select {
  padding: 10px 30px 10px 10px; /* space for the ::after arrow */
}

#floor-quote input {
  padding: 10px 10px 10px 10px;
}

#wfq-form {
  flex: 1;
}

#wfq-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 170px; /* thumbnail width + padding/margin */
  margin-left: 20px;
  gap: 12px;
}
#wfq-thumbnail {
    width: 150px;
    height: 150px;
    border-radius: 16px;
    overflow: hidden;
    background: #15325d;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#wfq-thumbnail img {
  border-radius: 12px;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Labels inside the form (selects and inputs) */
#wfq-form label {
  color: white;
  display: block;
  margin-top: 10px;
  font-weight: bold;
}

/* Adhesive radio options: keep question label block, show radios inline */
#wfq-adhesive {
  margin-top: 8px;
}
#wfq-adhesive > label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
}
#wfq-adhesive .wfq-adh-options {
  display: flex;
  gap: 12px;
  align-items: center;
}
#wfq-adhesive .wfq-adh-options label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-weight: normal;
}

/* Breakdown box */
.wfq-breakdown {
  background: rgba(255,255,255,0.03);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  color: #ffffff;
}
.wfq-breakdown div {
  margin-bottom: 6px;
}
.wfq-toggle-breakdown {
  cursor: pointer;
}

/* Make the first label in the form larger (product label) */
#wfq-form > label:first-of-type {
  font-size: 18px;
}

/* common input/select styles applied above; duplicate instance removed */

#wfq-product {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Estilizar la lista desplegable del select */
#wfq-product option {
    background-color: #15325d;
    color: white;
    padding: 8px;
}

#wfq-product option:hover {
    background-color: #0a1f3d;
}

#wfq-product option:checked {
    background-color: #15325d;
    color: white;
}

.wfq-native-select, .wfq-native-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: transparent;
  color: white;
  padding: 10px 40px 10px 12px;
  border-radius: 12px;
  border: 1px solid white;
  width: 100%;
  /* arrow is shown on wrapper ::after */
}

.wfq-select-wrap {
  position: relative;
}

.wfq-select-wrap::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 39%;
  transform: translateY(-50%);
  width: 14px;
  height: 10px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'><path fill='%23ffffff' d='M7 10L0 0h14z'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

.wfq-select-wrap select {
  padding-right: 40px; /* space for arrow */
}

.wfq-native-select:focus,
.wfq-select-wrap select:focus {
  outline: none;
  box-shadow: none;
  border: 2px solid white !important;
  color: white !important;
  font-weight: 700 !important;
}

.wfq-native-select option {
  background-color: #15325d;
  color: white;
}

.wfq-native-select option:checked {
  background-color: #15325d;
  color: white;
}

/* Variant selects container styling */
#wfq-variations select {
  margin-bottom: 8px;
}

#floor-quote button {
    font-family: 'Archivo R', Helvetica, Arial, Lucida, sans-serif;
    font-weight: bold;
    font-size: 16px;
    margin-top: 10px;
    padding: 14px 16px;
    background: white;
    color: #214984;
    border: none;
    cursor: pointer;
    border-radius: 16px;
}
#floor-quote button:hover {
  background: #005f8d;
}
#floor-quote button:disabled {
  background: #ccc;
  cursor: not-allowed;
}
#wfq-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  z-index: 10;
}

/* Loading GIF and text */
.wfq-loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.wfq-loading-inner img {
  width: 50px;
  height: 50px;
  display: block;
}
.wfq-loading-text {
  color: white;
  font-size: 16px;
}

/* Resultado del cálculo */
#wfq-result {
  color: white;
  font-size: 18px;
  line-height: 1.2;
  margin-top: 8px;
}

#wfq-result .wfq-result-qty {
  margin-bottom: 6px;
}

#wfq-result .wfq-result-qty strong {
  font-weight: 700;
}

#wfq-result .wfq-result-total {
  font-size: 16px;
}

#wfq-result .wfq-result-total strong {
  font-weight: 700;
}

/* Mensaje de error - combinación inválida */
.wfq-invalid {
  background: rgba(255, 0, 0, 0.7);
  color: white;
  padding: 8px 10px;
  border-radius: 8px;
}

/* Responsive: stack form and side column on small screens */
@media (max-width: 767px) {
  #floor-quote {
    flex-direction: column;
  }
  #wfq-side {
    width: 100%;
    margin-left: 0;
    margin-top: 12px;
    align-items: center;
  }
  #wfq-thumbnail {
    margin: 0 auto;
  }
  #wfq-side button {
    width: 100%;
  }
}
