.hubpet-pet-single {
    max-width: 620px;
    margin: 0 auto;
    position: relative;
    isolation: isolate;
}

.hubpet-pet-single-toast {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translate(-50%, -12px);
    width: calc(100% - 44px);
    max-width: 470px;
    min-height: 54px;
    background: #71c96d;
    color: #fff;
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 12px 28px rgba(32, 94, 34, 0.24);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.38s ease, transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.38s ease;
    z-index: 30;
}

.hubpet-pet-single-toast[hidden] {
    display: none;
}

.hubpet-pet-single-toast.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.hubpet-pet-single-toast-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    line-height: 1;
}

.hubpet-pet-single-toast-check i,
.hubpet-pet-single-toast-check svg,
.hubpet-pet-single-toast-close i,
.hubpet-pet-single-toast-close svg {
    width: 22px;
    height: 22px;
    font-size: 22px;
}

.hubpet-pet-single-toast-text {
    display: block;
    flex: 1 1 auto;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.hubpet-pet-single-toast-close {
    border: 0;
    background: transparent;
    color: inherit;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hubpet-pet-single-card {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 34px;
    box-shadow: 0 16px 34px rgba(22, 56, 56, 0.08);
    overflow: visible;
}

.hubpet-pet-single-header {
    padding: 16px 22px 30px;
    text-align: center;
    border-bottom: 1px solid #F4F1EC;
    position: relative;
}

.hubpet-pet-single-avatar {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    border: 6px solid #fff;
    object-fit: cover;
    margin: -58px auto 6px;
    display: block;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    
}

.hubpet-pet-single-favorite {
    position: absolute;
    right: 20px;
    top: 20px;
    border: 0;
    background: transparent;
    color: #ea831d;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hubpet-pet-single-favorite i,
.hubpet-pet-single-favorite svg {
    width: 22px;
    height: 22px;
    font-size: 22px;
}

.hubpet-pet-single-fav-icon-active {
    display: none;
}

.hubpet-pet-single-favorite.is-favorited .hubpet-pet-single-fav-icon-default {
    display: none;
}

.hubpet-pet-single-favorite.is-favorited .hubpet-pet-single-fav-icon-active {
    display: inline-flex;
}

.hubpet-pet-single-name {
    margin: 0;
    color: #1f4b4a;
    font-size: 42px;
    line-height: 1.1;
    font-weight: 700;
}

.hubpet-pet-single-breed {
    margin: 6px 0 0;
    color: #7f7f7f;
    font-size: 24px;
}

.hubpet-pet-single-tags {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.hubpet-pet-single-tag {
    background: #f4efe7;
    color: #c6a376;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 14px;
    font-weight: 700;
}

.hubpet-pet-single-section {
    padding: 30px 22px;
    border-bottom: 1px solid #F4F1EC;
}

.hubpet-pet-single-section-title {
    margin: 0 0 10px;
    color: #2e2e2e;
    font-size: 18px;
    font-weight: 700;
}

.hubpet-pet-single-gallery {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.hubpet-pet-single-gallery::-webkit-scrollbar {
    display: none;
}

.hubpet-pet-single-gallery img {
    width: 74px;
    height: 74px;
    border-radius: 12px;
    object-fit: cover;
    flex: 0 0 auto;
    cursor: pointer;
}

.hubpet-pet-single-notes {
    color: #787878;
    font-size: 15px;
    line-height: 1.45;
}

.hubpet-pet-single-notes p {
    margin: 0 0 10px;
}

.hubpet-pet-single-announcer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hubpet-pet-single-announcer-name {
    margin: 0;
    color: #7f7f7f;
    font-size: 15px;
}

.hubpet-pet-single-announcer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.hubpet-pet-single-footer {
    padding: 30px 22px 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hubpet-pet-single-adopt {
    width: 100%;
    max-width: 290px;
    min-height: 44px;
    border-radius: 10px;
    background: #ea831d;
    border: 0;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

.hubpet-pet-single-adopt-icon i,
.hubpet-pet-single-adopt-icon svg {
    width: 14px;
    height: 14px;
    font-size: 14px;
}

.hubpet-pet-single-share {
    border: 0;
    background: transparent;
    color: #ea831d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.hubpet-pet-single-share-icon i,
.hubpet-pet-single-share-icon svg {
    width: 12px;
    height: 12px;
    font-size: 12px;
}

.hubpet-pet-single-empty {
    color: #777;
    text-align: center;
}

.hubpet-pet-single-gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(81, 113, 113, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
}

.hubpet-pet-single-gallery-modal[hidden] {
    display: none;
}

.hubpet-pet-single-gallery-modal-content {
    width: 100%;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.hubpet-pet-single-gallery-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 8px;
}

.hubpet-pet-single-gallery-modal-image {
    width: 100%;
    max-width: 760px;
    max-height: 70vh;
    object-fit: contain;
}

.hubpet-pet-single-gallery-modal-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hubpet-pet-single-gallery-modal-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.75);
    cursor: pointer;
}

.hubpet-pet-single-gallery-modal-dot.is-active {
    width: 34px;
    background: #8fce99;
}

body.hubpet-modal-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .hubpet-pet-single-toast {
        top: 12px;
        width: calc(100% - 24px);
        min-height: 48px;
        padding: 12px 14px;
    }

    .hubpet-pet-single-toast-text {
        font-size: 14px;
    }

    .hubpet-pet-single-toast-close {
        line-height: 1;
    }

    .hubpet-pet-single-toast-check i,
    .hubpet-pet-single-toast-check svg,
    .hubpet-pet-single-toast-close i,
    .hubpet-pet-single-toast-close svg {
        width: 18px;
        height: 18px;
        font-size: 18px;
    }

    .hubpet-pet-single-card {
        border-radius: 26px;
    }

    .hubpet-pet-single-header {
        padding: 14px 16px 16px;
    }

    .hubpet-pet-single-avatar {
        width: 108px;
        height: 108px;
        margin-top: -88px;
        
    }

    .hubpet-pet-single-name {
        font-size: 20px;
    }

    .hubpet-pet-single-breed {
        font-size: 14px;
    }

    .hubpet-pet-single-tag {
        font-size: 12px;
        padding: 3px 10px;
    }

    .hubpet-pet-single-section {
        padding: 14px 16px;
    }

    .hubpet-pet-single-section-title {
        font-size: 18px;
    }

    .hubpet-pet-single-notes {
        font-size: 13px;
    }

    .hubpet-pet-single-footer {
        padding: 14px 16px 16px;
    }

    .hubpet-pet-single-adopt {
        max-width: 100%;
    }

    .hubpet-pet-single-gallery-modal {
        padding: 20px 12px;
    }

    .hubpet-pet-single-gallery-modal-close {
        top: 12px;
        right: 12px;
        font-size: 26px;
    }

    .hubpet-pet-single-gallery-modal-image {
        max-height: 62vh;
    }
}
