/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  }
  
  /* Modal Content/Box */
  .modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
  }
  
  /* The Close Button */
  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }

  /* Tab navigation styles for calculator elements */
  .vue-calculator-element:focus,
  [tabindex]:focus,
  input:focus,
  input[type="number"]:focus,
  .calculator-input:focus,
  select:focus,
  button:focus {
    outline: 2px solid #0073aa !important;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.3) !important;
    border-color: #0073aa !important;
  }

  /* Ensure interactive elements are focusable */
  .vue-calculator-element,
  .calculator-option,
  .calculator-input,
  .calculator-button,
  input[type="number"] {
    cursor: pointer;
  }

  input[type="number"],
  .calculator-input {
    cursor: text;
  }

  .vue-calculator-element:hover,
  .calculator-option:hover {
    background-color: rgba(0, 115, 170, 0.1);
    transition: background-color 0.2s ease;
  }

/* Align quantity input and add-to-cart button horizontally */
.single-product form.cart .quantity,
.single-product form.cart .single_add_to_cart_button {
  display: inline-block !important;
  vertical-align: middle !important;
}

.single-product form.cart .quantity {
  margin-right: 10px !important;
}

/* Override WooCommerce/OceanWP theme narrow number inputs - Match select styling */
#app input[type="number"],
.price-calculator input[type="number"],
.woocommerce #app input[type="number"] {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  padding: 10px 15px !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  font-size: 14px !important;
  color: #333 !important;
  background-color: #fff !important;
  box-sizing: border-box !important;
  margin-top: 5px !important;
  -moz-appearance: textfield !important;
}

/* WooCommerce quantity field - wider but keep original height */
.woocommerce-js .quantity .qty {
  width: 120px !important;
  min-width: 120px !important;
}

/* Remove spinner arrows for cleaner look */
#app input[type="number"]::-webkit-outer-spin-button,
#app input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

/* Ensure labels display above inputs */
#app label,
.price-calculator label {
  display: block !important;
  margin-bottom: 5px !important;
  font-weight: 500 !important;
  color: #333 !important;
}

/* ===== Price display styling ===== */

/* Main price (sin IVA) - Add "Precio:" label via CSS */
#app li.h3::before,
.price-calculator li.h3::before {
  content: "Precio: " !important;
  font-weight: 600 !important;
}

/* Main price - large and bold */
#app li.h3,
.price-calculator li.h3 {
  font-size: 28px !important;
  font-weight: 700 !important;
  color: #333 !important;
  margin-bottom: 8px !important;
}

/* Secondary prices (IVA incluido, Unitario) - smaller */
#app li.h5,
.price-calculator li.h5 {
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #666 !important;
  margin-bottom: 4px !important;
}
