/* ── Header ──────────────────────────────────────────────────────────────── */

.ccd-pets-header {
  margin-bottom: 1.5em;
}

.ccd-pets-add-btn {
  font-weight: 600;
}

.ccd-pets-empty {
  color: #888;
  font-style: italic;
}

/* ── Grid ────────────────────────────────────────────────────────────────── */

.ccd-pets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25em;
}

/* ── Card ────────────────────────────────────────────────────────────────── */

.ccd-pet-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.25em;
  display: flex;
  flex-direction: column;
  gap: 0.75em;
  background: #fff;
}

.ccd-pet-card__icon {
  font-size: 2.5em;
  line-height: 1;
}

.ccd-pet-card__name {
  margin: 0 0 0.4em;
  font-size: 1.1em;
}

.ccd-pet-card__info {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9em;
  color: #555;
  display: flex;
  flex-direction: column;
  gap: 0.2em;
}

.ccd-pet-card__info span {
  font-weight: 600;
  color: #333;
  margin-right: 0.3em;
}

.ccd-pet-card__actions {
  margin-top: auto;
  display: flex;
  gap: 0.5em;
  flex-wrap: wrap;
}

.ccd-pet-card__actions .button {
  flex: 1;
  text-align: center;
  font-size: 0.85em;
  padding: 0.5em 0.75em;
}

.ccd-pet-card__actions form {
  flex: 1;
  margin: 0;
}

.ccd-pet-card__actions form .button {
  width: 100%;
}

.ccd-pet-card__delete {
  background: transparent !important;
  border-color: #c00 !important;
  color: #c00 !important;
}

.ccd-pet-card__delete:hover {
  background: #c00 !important;
  color: #fff !important;
}

/* ── Form ────────────────────────────────────────────────────────────────── */

.ccd-pet-form {
  width: 100%;
  max-width: 640px;
}

.ccd-pet-form .form-row input,
.ccd-pet-form .form-row select {
  width: 100%;
  background-color: #eaeaea;
  border-radius: 30px;
  margin: 0;
}

.ccd-input-suffix-wrap {
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #eaeaea;
  border-radius: 30px;
}

.ccd-input-suffix-wrap input[type="number"] {
  border: none !important;
  outline: none;
  box-shadow: none !important;
  flex: 1;
  min-width: 0;
}

.ccd-input-suffix {
  padding: 0 0.6em;
  background: #f5f5f5;
  border-left: 1px solid #ccc;
  color: #666;
  font-size: 0.9em;
  white-space: nowrap;
  line-height: 1;
  display: flex;
  align-items: center;
  align-self: stretch;
}

.ccd-pet-form .form-row-first,
.ccd-pet-form .form-row-last {
  width: 48%;
  display: inline-block;
}

.ccd-pet-form .form-row-last {
  float: right;
}

.ccd-pet-form .form-row:last-child {
  display: flex;
  gap: 0.75em;
  margin-top: 0.5em;
  clear: both;
}

@media (max-width: 600px) {
  .ccd-pet-form {
    padding: 0 15px;
  }

  .ccd-pet-form .form-row-first,
  .ccd-pet-form .form-row-last {
    width: 100%;
    display: block;
    float: none;
  }
}
