.owfin-widget,
.owfin-widget * {
  box-sizing: border-box;
}

.owfin-widget {
  display: inline-block;
  font-family: Montserrat, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.owfin-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: #c4e357;
  color: #111827;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.owfin-open:hover,
.owfin-open:focus {
  filter: brightness(0.98);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.16);
  outline: none;
}

.owfin-open:focus-visible,
.owfin-close:focus-visible,
.owfin-input:focus-visible,
.owfin-select:focus-visible {
  outline: 3px solid rgba(196, 227, 87, 0.45);
  outline-offset: 2px;
}

.owfin-modal[hidden] {
  display: none !important;
}

.owfin-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.owfin-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.58);
}

.owfin-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 22px;
  background: #ffffff;
  color: #111827;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

.owfin-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.owfin-head {
  padding-right: 42px;
  margin-bottom: 16px;
}

.owfin-kicker {
  margin: 0 0 6px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.owfin-title {
  margin: 0;
  color: #111827;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.15;
}

.owfin-subtitle {
  margin: 8px 0 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.45;
}

.owfin-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.owfin-row {
  min-width: 0;
}

.owfin-label {
  display: block;
  margin: 0 0 6px;
  color: #374151;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.owfin-input,
.owfin-select {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #ffffff;
  color: #111827;
  font: inherit;
  font-size: 16px;
  line-height: 1.2;
  appearance: auto;
}

.owfin-input:focus,
.owfin-select:focus {
  border-color: #a8c743;
  outline: none;
}

.owfin-message {
  min-height: 20px;
  margin: 0 0 10px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.4;
}

.owfin-message.is-error {
  color: #b91c1c;
  font-weight: 700;
}

.owfin-results {
  display: grid;
  gap: 12px;
}

.owfin-highlight {
  padding: 18px;
  border-radius: 18px;
  background: #111827;
  color: #ffffff;
}

.owfin-highlight .owfin-result-label {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 700;
}

.owfin-cuota {
  display: block;
  margin-top: 6px;
  color: #c4e357;
  font-size: clamp(34px, 8vw, 52px);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.04em;
}

.owfin-grid-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.owfin-result {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #f9fafb;
}

.owfin-result-label {
  display: block;
  margin-bottom: 5px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.3;
}

.owfin-result-value {
  display: block;
  color: #111827;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.owfin-note {
  margin: 12px 0 0;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.45;
}

body.owfin-modal-open {
  overflow: hidden;
}

@media (max-width: 560px) {
  .owfin-modal {
    align-items: flex-start;
    padding: 12px;
  }

  .owfin-dialog {
    width: 100%;
    max-height: calc(100vh - 24px);
    padding: 18px;
    border-radius: 18px;
  }

  .owfin-form,
  .owfin-grid-results {
    grid-template-columns: 1fr;
  }

  .owfin-title {
    font-size: 21px;
  }
}
