.rate-widget {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  font-family: system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, #f0fdf4, #ffffff);
  border: 2px solid #bbf7d0;
  border-radius: min(12px, 3vw);
  box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.widget-header {
  padding: clamp(1rem, 4vw, 1.5rem);
  border-bottom: 1px solid #dcfce7;
  text-align: center;
}

.widget-title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 800;
  color: #166534;
  margin: 0;
  line-height: 1.2;
}

.rates-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(1rem, 3vw, 1.5rem);
  padding: clamp(1rem, 3vw, 1.5rem);
}

.rate-card {
  background: white;
  padding: clamp(1rem, 3vw, 1.5rem);
  border-radius: 8px;
  border: 1px solid #dcfce7;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
}

.rate-label {
  font-size: clamp(0.875rem, 2vw, 1rem);
  color: #16a34a;
  font-weight: 600;
}

.rate-value {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  color: #166534;
  margin: 0.5rem 0;
}

.apr-label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

.cta-container {
  padding: clamp(1rem, 3vw, 1.5rem);
  text-align: center;
}

.cta-button {
  display: inline-block;
  width: min(100%, 400px);
  background: #15803d;
  color: white;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 600;
  padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2rem);
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid transparent;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

@media (hover: hover) {
  .cta-button:hover {
    background: #166534;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 101, 52, 0.2);
  }
}

.disclaimer {
  background: #f8fafc;
  padding: clamp(0.75rem, 2vw, 1rem) clamp(1rem, 3vw, 1.5rem);
  border-top: 1px solid #dcfce7;
  font-size: clamp(0.7rem, 1.5vw, 0.75rem);
  color: #64748b;
  line-height: 1.5;
  text-align: center;
}

@supports (-webkit-touch-callout: none) {
  .rate-widget {
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 360px) {
  .rate-value {
    font-size: 1.5rem;
  }
}

@media (min-width: 2000px) {
  .rate-widget {
    max-width: 1000px;
  }
}