/* iTVP Domain Shop — Woodmart-compatible styling.
 * Uses `--itvp-ds-accent` (set via inline style on the container). Falls back
 * to Woodmart's `--primary-color` CSS variable, then to a neutral blue. */

.itvp-ds {
  --itvp-ds-accent: var(--primary-color, #2563eb);
  max-width: 720px;
  margin: 2rem auto;
  font-family: inherit;
}

.itvp-ds__form {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.itvp-ds__input {
  flex: 1;
  padding: 0.9rem 1.1rem;
  font-size: 1.05rem;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 999px;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
  background: #fff;
}
.itvp-ds__input:focus {
  border-color: var(--itvp-ds-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--itvp-ds-accent) 22%, transparent);
}

.itvp-ds__submit {
  padding: 0 1.6rem;
  font-weight: 600;
  border: 0;
  border-radius: 999px;
  background: var(--itvp-ds-accent);
  color: #fff;
  cursor: pointer;
  transition: transform 80ms ease, opacity 120ms ease;
}
.itvp-ds__submit:hover { opacity: 0.9; }
.itvp-ds__submit:active { transform: translateY(1px); }

.itvp-ds__status {
  min-height: 1.4em;
  margin: 0.6rem 0.25rem 0;
  font-size: 0.9rem;
  color: #666;
}

.itvp-ds__results {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.itvp-ds__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  background: #fff;
  transition: border-color 120ms ease, transform 120ms ease;
}
.itvp-ds__card:hover { border-color: var(--itvp-ds-accent); }
.itvp-ds__card.is-taken { opacity: 0.6; }

.itvp-ds__left  { min-width: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.itvp-ds__right { display: flex; align-items: center; gap: 0.9rem; }

.itvp-ds__name {
  font-weight: 600;
  font-size: 1.05rem;
  word-break: break-all;
}

.itvp-ds__badge {
  align-self: flex-start;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e5e7eb;
  color: #374151;
}
.is-available .itvp-ds__badge {
  background: color-mix(in srgb, var(--itvp-ds-accent) 14%, transparent);
  color: var(--itvp-ds-accent);
}

.itvp-ds__note {
  font-size: 0.75rem;
  color: #b45309;
}

.itvp-ds__price {
  text-align: right;
  line-height: 1.1;
}
.itvp-ds__price strong { font-size: 1.1rem; }
.itvp-ds__price small  { display: block; font-size: 0.7rem; color: #666; }

.itvp-ds__renew {
  font-size: 0.7rem;
  color: #666;
  text-align: right;
}

.itvp-ds__buy {
  padding: 0.55rem 1.1rem;
  font-weight: 600;
  border: 0;
  border-radius: 999px;
  background: var(--itvp-ds-accent);
  color: #fff;
  cursor: pointer;
  transition: opacity 120ms ease, transform 80ms ease;
}
.itvp-ds__buy:hover  { opacity: 0.9; }
.itvp-ds__buy:active { transform: translateY(1px); }

@media (max-width: 640px) {
  .itvp-ds__card  { flex-direction: column; align-items: stretch; }
  .itvp-ds__right { justify-content: space-between; }
}
