#petTypeButton {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem; /* gap-2 */
    padding: 0.4rem 0.8rem 0.4rem 1.2rem;
    color: black !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: 3.6rem;
    background-color: #FFF4F7 !important;
}

#petTypeButton:focus {
    outline: none;
}

#petTypeDropdown {
    z-index: 50;
    margin: 0.25rem 0 0.25rem 0 !important;
    color: black !important;
    border-radius: 1rem;
    border: 1px solid #FFF4F7 !important;
    background-color: #ffffff !important;
}

#petTypeDropdown > :first-child {
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

#petTypeDropdown > :last-child {
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
}

#petTypeDropdown li.selected {
    background-color: #FFF4F7 !important;
}

#petTypeDropdown li:hover {
    background-color: #FFCEDA !important;
}

#categoryContainer {
    overflow-x: auto;
    white-space: nowrap;
    padding-top: 0.5rem; /* py-2 */
    padding-bottom: 0.5rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE, Edge */
}

.category-item {
    display: block;
    text-align: center;
}

.category-label {
    display: block;
    cursor: pointer;
    user-select: none;
    width: 3.5rem;
    line-height: 1.3rem;
    text-align: center;
    padding: 0.25rem; /* p-1 */
    border-radius: 0.375rem; /* rounded-md */
    color: inherit;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.peer-input {
    display: none;
}

/* 선택된 경우 배경 및 텍스트 색상 변경 */
.peer-input:checked + .category-label {
    background-color: #B487CD; /* blue-400 */
    color: white;
    font-weight: bold;
}

.tag-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    width: auto;
}

.tag-item .tag-text {
    margin-top: 0.25rem;
    color: #333333;
    text-decoration: none;
}

.tag-item .tag-text,
.tag-item .tag-extra-text {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 500;
}

.tag-item .tag-extra-text {
    color: #A3A3A3;
}

.swiper-slide {
    display: flex;
    justify-content: center;
}

.swiper-container {
    position: relative;
    width: 800px;
    overflow: hidden;
}

.swiper-button-prev,
.swiper-button-next {
    opacity: 0.6;
    height: 50px;
    width: 50px;
}

.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
}

@media (max-width: 1024px) {
    .swiper-container {
        width: 800px;
    }
}

@media (max-width: 5000px) {
    .tag-item img {
        width: 96px;
        height: 96px;
    }
}

@media (max-width: 1024px) {
    .tag-item img {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 700px) {
    .swiper-button-prev,
    .swiper-button-next {
        display: none !important;
    }
}

@media (max-width: 490px) {
    .tag-item img {
        width: 72px;
        height: 72px;
    }
}

@media (max-width: 340px) {
    .tag-item img {
        width: 64px;
        height: 64px;
    }
}


@media (min-width: 1024px) {
    .tag-item .tag-text,
    .tag-item .tag-extra-text {
        font-size: 0.875rem; /* 14px */
    }
}

@media (max-width: 768px) {
    .swiper-container {
        width: 640px;
    }
}

@media (min-width: 640px) {
    .mobile {
        display: none;
    }
}

@media (max-width: 639px) {
    .swiper-container {
        width: 100%;
    }

    .desktop {
        display: none;
    }
}