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

/* Button base styles */
.pet-modal-close,
.btn-secondary {
    font-weight: bold;
    border-radius: 8px;
    background: rgba(0,0,0,0);
    border: 1px solid #2e2e2e;
    cursor: pointer;
    padding: 5px 10px;
}
.save-pet-content,
.btn {
    border-radius: 8px;
    background: #2b2b2b;
    color: #fff;
    cursor: pointer;
    border: none;
    padding: 5px 10px;
    font-size: 1em;
}

.pet-modal-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

/* Product personalization bar styles */
.my_pet-product-personalization-bar {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 5px 15px;
    background: #f8f8f8;
    border-radius: 8px;
}
.my_pet-product-personalization-bar.active {
    display: flex;
}

.my_pet-product-personalization-bar h2 {
    margin: 0;
    font-size: 1.2em;
}

.my_pet-product-personalization-bar button {
    font-family: 'serifa', serif;
    letter-spacing: 0.1rem;
}


.personalization_bar-content.empty,
.personalization_bar-content.no-user {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
    height: 100%;
    background: #f8f8f8;
    border-radius: 8px;
    padding: 10px;
    container-type: inline-size;
}
.personalization_bar-content.empty p,
.personalization_bar-content.no-user p {
    margin: 0;
    font-size: 5cqw;
    color: #333;
    font-weight: bold;
}
.personalization_bar-content.empty a,
.personalization_bar-content.no-user a {
    width: max-content;
    white-space: nowrap;
    text-decoration: none;
    line-height: unset;
}

/* Pet_product_modal styles */
modal.pet_product_modal {
    justify-content: center;
    align-items: center;
    display: none;
    position: fixed;
    z-index: 50;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    background-color: rgba(0, 0, 0, 0.4);
}

modal.pet_product_modal.active {
    display: flex;
}

.pet-modal-container {
    container-name: pet-modal-container;
    container-type: inline-size;
    background-color: #fefefe;
    margin: 5vh auto 0;
    padding: 20px;
    border: 1px solid #888;
    width: calc(100% - 40px);
    max-width: 800px;
    max-height: 80%;
    overflow-y: scroll;
    border-radius: 8px;
}
.pet-modal-container::-webkit-scrollbar {
    width: 12px; /* Width of the scrollbar */
    padding: 2px;
}
.pet-modal-container::-webkit-scrollbar-track {
    background: #f1f1f1; /* Background of the scrollbar track */
    border-radius: 10px;
    padding: 2px;
}
.pet-modal-container::-webkit-scrollbar-thumb {
    background: #888; /* Color of the scrollbar thumb */
    border-radius: 10px;
    height: 10px; /* Shorter height of the scrollbar thumb */
}
.pet-modal-container::-webkit-scrollbar-thumb:hover {
    background: #555; /* Color of the scrollbar thumb on hover */
}

.pet-modal-container a {
    text-decoration: none;
}

.pet-modal-container img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

#pet_product_modal button.save-pet-content.saved {
    display: none;
}

.pet-modal-content {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.pet-modal-content-explanation {
    order: 2;
    grid-column: span 12;
    padding: 10px;
}
.pet-modal-content-explanation ul {
    margin: 20px 0;
    padding: 0 0 0 20px;
}
.pet-modal-content-explanation h2 {
    margin: 0;
    font-size: 1.6em;
    font-weight: bold;
}

.pet-modal-product-card {
    order: 1;
    grid-column: span 12;
    padding: 10px;
}

.pet-modal-product-card h2 {
    margin: 8px 0;
    font-size: 1.6em;
    font-weight: bold;
}

.pet-modal-product-card-content {
    background: #f8f8f8;
    padding: 0 10px 10px;
    border-radius: 8px;
}

/* ### price styles */
.pet-modal-product-card-content .price-container {
    font-size: 3rem;
    font-weight: bold;
    margin: 0;
    display: flex;
    flex-direction: column;
}
.pet-modal-product-card-content .price-container .inner {
    display: none;
    align-items: center;
    gap: 3px;
}
.pet-modal-product-card-content .price-container .inner.active {
    display: flex;
}
.pet-modal-product-card-content .price-container .inner .compare-price {
    font-size: 0.5em;
    text-decoration: line-through;
    color: #888;
    margin: 0;
    line-height: 1;
}
.pet-modal-product-card-content .price-container .live-price {
    line-height: 1;
    margin: 5px 0;
}

/* ### Variant select styles */
.pet-modal-product-card-content .varient-container {
    margin: 10px 0;
}

.pet-modal-product-card-content .varient-container select {
    width: 100%;
    padding: 5px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ### Add to cart button styles */
.pet-modal-product-card-content button {
    padding: 12px 18px;
    font-size: 1em;
    width: 100%;
    margin-top: 10px;
}


/* Personalized cart styles */
.pet-modal-personalized-cart {
    order: 3;
    grid-column: span 12;
}

.pet-modal-personalized-cart-items {
    display: grid; 
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    gap: 20px;
    align-items: stretch;
    border-radius: 8px;
    padding: 10px;
}

@container pet-modal-container (min-width: 750px) {
    .pet-modal-personalized-cart-items {
        grid-template-columns: repeat(4, 1fr);
    }
}

.pet-modal-personalized-cart-items .actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    order:4;
}

.pet-modal-personalized-cart-items .actions span {
    font-size: 2rem;
    line-height: 1;
    text-align: center;
}
.pet-modal-personalized-cart-items .actions span[data-total-price] {
    font-size: 1.5em;
    font-weight: bold;
    line-height: 1;
    text-align: center;
}

.pet-modal-personalized-cart-items .actions button {
    padding: 12px 18px;
    font-size: 0.75em;
    margin-top: 10px;
}

.pet-modal-content-cart-item {
    position: relative;
    padding: 8px;
    background: #f8f8f8;
    border-radius: 8px;
}
.pet-modal-content-cart-item input[type="checkbox"] {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border-radius: 8px;
}

.pet-modal-content-cart-item h3 {
    margin: 0;
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}
.pet-modal-content-cart-item h3 a {
    color: #333;
    text-decoration: none;
}

.pet-modal-content-cart-item img {
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 8px;
    max-width: 100%;
    width: 100%;
}


.pet-modal-content-cart-item select {
    width: 100%;
    padding: 5px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@container pet-modal-container (min-width: 600px) {
    .pet-modal-content-explanation {
        grid-column: span 6;
        order: 1;
    }
    .pet-modal-product-card {
        grid-column: span 6;
        order: 2;
    }
}