.awv-pet-card,
.awv-modal,
.awv-modal input,
.awv-modal select,
.awv-edit-pet {
    font-family: inherit;
}

/* ===============================
   PETS GRID
================================ */
.awv-pets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

/* ===============================
   PET CARD
================================ */
.awv-pet-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;  /* Rounded edges */
    padding: 24px 20px 18px;
    text-align: center;
    transition: box-shadow .2s ease, transform .2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;  /* Align content vertically */
    height: 350px; /* Set a fixed height for consistency */
}

.awv-pet-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);  /* More prominent shadow */
    transform: translateY(-2px);
}

/* ===============================
   ORDER BADGE (1st / 2nd)
================================ */
.awv-pet-card::before {
    content: attr(data-order);
    position: absolute;
    top: 16px;
    left: 16px;
    width: 38px;
    height: 38px;
    background: #eaf3ff;
    color: #2a6edc;
    font-size: 14px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #2a6edc;
}

/* ===============================
   DELETE ICON
================================ */
.awv-delete {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 18px;
    color: #c2c2c2;
    text-decoration: none;
}

.awv-delete:hover {
    color: #ff4d4d;
}

/* ===============================
   PET IMAGE
================================ */
.awv-pet-avatar {
    width: 110px !important;  /* Fixed width */
    height: 110px !important;  /* Fixed height */
    object-fit: cover !important;  /* Ensures the image fits within the circle */
    margin: 4px auto 14px !important;
    display: block !important;
    border-radius: 50% !important;  /* Circular shape */
    border: 3px solid #f5f7fa !important;
    background: #fff !important;
}


/* ===============================
   PET NAME
================================ */
.awv-pet-card h4 {
    margin: 8px 0 14px;
    font-size: 18px;  /* Larger font size */
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

/* ===============================
   PET DETAILS
================================ */
.awv-pet-details {
    margin-bottom: 14px;
    text-align: left;
}

.awv-pet-details div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
    color: #333;
}

.awv-pet-details span {
    font-size: 12px;
    font-weight: 600;
    color: #8a8a8a;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* ===============================
   EDIT BUTTON
================================ */
.awv-edit-pet {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: #eaf3ff;
    color: #2a6edc;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.awv-edit-pet:hover {
    background: #d0e1f9;
    color: #1a5bb8;
}

/* ===============================
   EMPTY STATE
================================ */
.awv-empty-state {
    text-align: center;
    padding: 50px 32px;
    border: 1px dashed #d8d8d8;
    border-radius: 14px;
    background: #fafafa;
}

.awv-empty-state p {
    margin-bottom: 18px;
    color: #666;
}


/* ===============================
   MODAL BACKDROP
================================ */
.awv-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 9999;
}

/* ===============================
   MODAL BOX
================================ */
.awv-modal-content {
    background: #fff;
    max-width: 440px;
    margin: 6% auto;
    padding: 26px;
    border-radius: 14px;
}

/* ===============================
   MODAL FORM
================================ */
.awv-modal input,
.awv-modal select {
    width: 100%;
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 14px;
}

/* ===============================
   MODAL CLOSE
================================ */
.awv-close {
    float: right;
    cursor: pointer;
    font-size: 22px;
    color: #888;
}

.awv-close:hover {
    color: #000;
}

/* ===============================
   SELECT2 – MATCH MODAL INPUTS
================================ */

/* container */
.awv-modal .select2-container {
    width: 100% !important;
    margin-bottom: 14px;
}

/* main selection box */
.awv-modal .select2-container--default .select2-selection--single {
    height: 42px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

/* selected text */
.awv-modal .select2-container--default .select2-selection--single
.select2-selection__rendered {
    color: #555;
    line-height: normal;
    padding-left: 0;
}

/* arrow */
.awv-modal .select2-container--default .select2-selection__arrow {
    height: 100%;
    right: 8px;
}

/* dropdown */
.select2-dropdown {
    border-radius: 8px;
    border: 1px solid #ddd;
    overflow: hidden;
}

/* search box */
.select2-search--dropdown .select2-search__field {
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 14px;
}

/* options */
.select2-results__option {
    padding: 8px 12px;
    font-size: 14px;
}

/* hover */
.select2-results__option--highlighted {
    background: #f3f6fb !important;
    color: #000;
}

/* selected option */
.select2-results__option--selected {
    background: #eaf3ff !important;
    color: #2a6edc;
}

/* focus state */
.awv-modal .select2-container--focus
.select2-selection--single {
    border-color: #2a6edc;
    box-shadow: 0 0 0 2px rgba(42,110,220,.15);
}


/* ===============================
   FORM LABELS (MODAL)
================================ */
.awv-modal .awv-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    letter-spacing: 0.2px;
}

/* reduce extra gap caused by labels + inputs */
.awv-modal .awv-label + input,
.awv-modal .awv-label + select,
.awv-modal .awv-label + .select2-container {
    margin-top: 0;
}

/* spacing between field groups */
.awv-modal input,
.awv-modal select,
.awv-modal .select2-container {
    margin-bottom: 16px;
}

/* date input calendar icon alignment */
.awv-modal input[type="date"] {
    padding-right: 36px;
}
