.pds-calculator {
  border: 1px solid #d9e0d8;
  border-radius: 18px;
  padding: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faf7 100%);
  box-shadow: 0 12px 36px rgba(22, 44, 24, 0.08);
  max-width: 720px;
}

.pds-calculator.is-compact {
  max-width: none;
}

.pds-calculator__brand {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #173f2a;
  color: #fff;
  font-weight: 700;
  letter-spacing: .03em;
}

.pds-calculator__title {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.2;
  color: #173f2a;
}

.pds-calculator__subtitle {
  margin: 0 0 18px;
  color: #4b5b4d;
}

.pds-calculator__controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pds-calculator__input {
  flex: 1 1 220px;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid #b8c8b7;
  padding: 0 14px;
  font-size: 16px;
}

.pds-calculator__button,
.pds-modal-trigger {
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  padding: 0 20px;
  background: #173f2a;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.pds-modal-trigger {
  margin-top: 16px;
}

.pds-calculator__button:hover,
.pds-modal-trigger:hover {
  opacity: .94;
}

.pds-calculator__message {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f1f5f1;
  color: #173f2a;
  min-height: 24px;
}

.pds-calculator__message.is-error {
  background: #fff0f0;
  color: #8c1f1f;
}

.pds-calculator__message.is-success {
  background: #edf8ef;
  color: #174d21;
}

.pds-calculator__table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.pds-calculator__table > div {
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e3ebe2;
}

.pds-calculator__table span,
.pds-rate-meta small {
  color: #586958;
}

.pds-calculator__table strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  color: #173f2a;
}

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

.pds-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.pds-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 16, 10, 0.6);
}

.pds-modal__dialog {
  position: relative;
  z-index: 2;
  width: min(92vw, 780px);
  max-height: 90vh;
  overflow: auto;
  margin: 5vh auto;
}

.pds-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0;
  background: #173f2a;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
}

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