.leo-banner-calculator,
.leo-booklet-calculator,
.leo-label-calculator,
.leo-flyer-calculator,
.leo-wirebound-calculator,
.leo-wire-bound-calculator,
.leo-business-card-calculator,
.leo-ncr-pads-calculator,
.leo-ncr-books-calculator,
.leo-ncr-sets-calculator {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 20px;
}

.leo-calc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.leo-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.leo-field label {
  font-size: 14px;
  font-weight: 600;
}

.leo-field input,
.leo-field select {
  display: block;
  width: 100%;
  height: 2.8rem;
  min-height: 3rem;
  margin: 0;
  padding: 0 0.75rem;
  font-size: 1.5rem;
  line-height: 1.2;
  color: #222;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  vertical-align: middle;
}

.leo-field input::placeholder {
  color: #999;
  opacity: 1;
}

.leo-field select {
  padding-right: 2.4rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 16px) calc(50% - 2px),
    calc(100% - 11px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.leo-field select option {
  color: #222;
}

.leo-field-half {
  width: 100%;
  max-width: calc(50% - 8px);
}

.leo-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  grid-column: span 2;
}

.leo-field-full {
  grid-column: 1 / -1;
}

.leo-price-box {
  background: #f7f7f7;
  border-radius: 12px;
  padding: 14px 18px;
}

.leo-price-label {
  margin-bottom: 4px;
  font-size: 13px;
  letter-spacing: 0.04em;
  opacity: 0.7;
  text-transform: uppercase;
}

.leo-price-main {
  margin-bottom: 6px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
}

.leo-price-note,
.leo-price-each,
.leo-price-tier {
  font-size: 14px;
  color: #555;
}

.leo-error {
  margin-top: 4px;
  font-size: 13px;
  color: #c62828;
}

.leo-note {
  margin-top: 4px;
  font-size: 12px;
  color: #666;
}

.leo-label-calculator.is-loading .leo-price-box {
  opacity: 0.7;
}

form.cart .single_add_to_cart_button.leo-disabled,
form.cart button[name="add-to-cart"].leo-disabled,
form.cart .single_add_to_cart_button:disabled,
form.cart button[name="add-to-cart"]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 767px) {
  .leo-calc-grid,
  .leo-field-row {
    grid-template-columns: 1fr;
  }

  .leo-field-row {
    grid-column: span 1;
  }

  .leo-field-half {
    max-width: 100%;
  }
}

.leo-required-notice {
  grid-column: 1 / -1;
  margin: -4px 0 16px;
  padding: 12px 14px;
  color: #8a1f11;
  background: #fdecea;
  border: 1px solid #f5c2c0;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.4;
}

.leo-required-notice strong {
  display: block;
  margin-bottom: 2px;
  color: #7a1510;
}

.leo-field.leo-field-missing label {
  color: #b42318;
}

.leo-field.leo-field-missing input,
.leo-field.leo-field-missing select {
  border-color: #d93025;
  background-color: #fff8f7;
  box-shadow: 0 0 0 2px rgba(217, 48, 37, 0.08);
}
