.wh-finance-cta {
  display: flex;
  align-items: stretch;
  margin-top: 8px;
  background: #f6f6f6;
}

.wh-payment,
.wh-subtext {
  padding: 5px 10px;
}

.wh-payment {
  padding-top: 10px;
  padding-bottom: 0;
}

.wh-finance-left {
  flex: 1;
  min-width: 0;
}
.wh-finance-right {
  display: flex;
  align-items: center;
}
.wh-payment {
  font-size: 16px;
  line-height: 1.2;
}

.wh-payment strong {
    padding: 0;
    font-size: 20px;
}

.wh-payment .wh-payment-info {
  margin-left: 6px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: #9aa;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  position: relative;
  left: -7px;
  top: -5px;
}
.wh-subtext {
  font-size: 12px;
  color: #777;
}
.wh-user-terms {
  margin-left: 8px;
  font-size: 11px;
  color: #0a7;
  white-space: nowrap;
}
.wh-more-finance { margin-top: 6px; }
.wh-finance-link { font-size: 12px; text-decoration: underline; color: #333; }
.wh-popover {
  position: absolute;
  z-index: 9999;
}
.wh-popover[hidden] {
  display: none;
}
.wh-popover.wh-center {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.wh-popover .wh-popover-inner {
  max-width: 360px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 8px;
  border-radius: 8px;
  font-size: 14px;
  position: relative;
}
.wh-terms-form .row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  margin-top: 10px;
}
.wh-terms-form .row:before,
.wh-terms-form .row:after {
  display: none;
}
.wh-terms-form label {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  color: #333;
}
.wh-terms-form input {
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.wh-terms-actions { 
    margin: 12px 0 0; 
    display: flex; 
    justify-content: center;
    font-size: 12px;
    gap: 8px;
}

.wh-terms-actions .wh-save-terms,
.wh-terms-actions .wh-reset-terms {
  width: 100%
}

/* Modal backdrop and close */
.wh-modal-backdrop { position: fixed; left: 0; top: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 9998; }
.wh-modal-backdrop[hidden] { display: none; }
.wh-popover .wh-close { position: absolute; right: 8px; top: 6px; border: 0; background: transparent; color: #888; font-size: 18px; line-height: 1; cursor: pointer; }
