#smart-deal-finder {
  margin: 28px auto;
  max-width: 1400px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}
#smart-deal-finder .smart-deal-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
#smart-deal-finder h2 {
  margin: 4px 0 6px;
  font-size: clamp(22px, 2.8vw, 30px);
  color: #0f172a;
}
#smart-deal-finder .smart-deal-subtitle {
  margin: 0;
  color: #475569;
  font-size: 0.92rem;
}
#smart-deal-finder .smart-deal-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#smart-deal-finder .smart-deal-chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
#smart-deal-finder .smart-deal-chip:hover {
  border-color: #0f766e;
  background: #f0fdfa;
  color: #0f766e;
}
#smart-deal-finder .smart-deal-chip.is-active {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
}
#smart-deal-finder .smart-deal-form {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin: 0 0 12px;
}
#smart-deal-finder label {
  display: grid;
  gap: 6px;
  flex: 1 1 210px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
}
#smart-deal-finder input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font: inherit;
  background: #ffffff;
  color: #0f172a;
}
#smart-deal-finder .smart-deal-form-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
#smart-deal-finder .smart-deal-submit-btn {
  padding: 10px 20px;
  border: 1px solid #0f766e;
  border-radius: 8px;
  background: #0f766e;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
#smart-deal-finder .smart-deal-submit-btn:hover:not(:disabled) {
  background: #115e59;
}
#smart-deal-finder .smart-deal-clear-btn {
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
#smart-deal-finder button:disabled {
  opacity: 0.5;
  cursor: default;
}
#smart-deal-finder :focus-visible {
  outline: 3px solid #2874f0;
  outline-offset: 2px;
}
#smart-deal-finder .smart-deal-meta-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  align-items: center;
  margin-bottom: 12px;
}
#smart-deal-finder .smart-deal-footnote {
  margin: 0;
  font-size: 0.78rem;
  color: #64748b;
}
#smart-deal-status {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: #0f766e;
}
#smart-deal-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  margin: 14px 0;
}
#smart-deal-results:empty {
  display: none;
}
.smart-deal-empty {
  grid-column: 1 / -1;
  padding: 20px;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  color: #475569;
  text-align: center;
  margin: 0;
}
.smart-deal-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.smart-deal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}
.smart-deal-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}
.smart-deal-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.smart-deal-discount-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #cc0c39;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}
.smart-deal-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 5px;
}
.smart-deal-category-pill {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0f766e;
  background: #f0fdfa;
  border: 1px solid #ccfbf1;
  padding: 2px 7px;
  border-radius: 999px;
}
.smart-deal-card-title {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.35;
}
.smart-deal-title-link {
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.smart-deal-title-link:hover {
  color: #0f766e;
  text-decoration: underline;
}
.smart-deal-seller {
  margin: 0;
  font-size: 0.76rem;
  color: #475569;
}
.smart-deal-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 2px;
}
.smart-deal-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}
.smart-deal-mrp {
  font-size: 0.76rem;
  color: #64748b;
}
.smart-deal-savings {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #15803d;
}
.smart-deal-coupon {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.4;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 4px 8px;
}
.smart-deal-card-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}
.smart-deal-details-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}
.smart-deal-add-btn {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #fcd200;
  background: #ffd814;
  color: #0f1111;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.smart-deal-add-btn:hover:not(:disabled) {
  background: #f7ca00;
}
.smart-deal-add-btn.is-added {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}
#smart-deal-finder .smart-deal-pages {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
#smart-deal-finder .smart-deal-pages button {
  padding: 8px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}
#smart-deal-finder .smart-deal-page-indicator {
  font-size: 0.84rem;
  font-weight: 600;
  color: #475569;
}
