/* Layout and Spacing */
.custom-pet-print-wrapper { max-width: 800px; margin: 0 auto; font-family: inherit; }
.pet-print-section { margin-bottom: 30px; padding: 20px; background: #f9f9f9; border-radius: 10px; }
.pet-print-heading { margin-top: 0; margin-bottom: 15px; font-size: 1.2rem; }

/* CSS Grid Template Gallery (Replaces Swiper) */
.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
    max-height: 500px; /* Forces a scrollbar if there are 40 images */
    overflow-y: auto;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.template-item {
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 8px;
    padding: 4px;
    transition: all 0.2s ease;
    opacity: 0.6; /* Dim unselected */
}

.template-item:hover { opacity: 0.9; }

.template-item.selected {
    opacity: 1;
    border-color: #000;
    background-color: #f0f0f0;
    transform: scale(1.02);
}

.template-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.template-label {
    margin-top: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
}

/* Custom Radio Buttons */
.options-container { display: flex; flex-direction: column; gap: 10px; }
.pet-radio-label { cursor: pointer; }
.pet-radio-label input[type="radio"] { display: none; }

.radio-custom-button {
    display: block;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #fff;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 1.1rem;
}

.pet-radio-label input[type="radio"]:checked + .radio-custom-button {
    border-color: #000;
    background: #000;
    color: #fff;
}

/* Price and Button */
.pet-price-display { font-size: 1.8rem; font-weight: bold; margin-bottom: 15px; }
.pet-add-to-cart { width: 100%; padding: 15px; font-size: 1.2rem; cursor: pointer; }
.pet-cart-message { margin-top: 15px; font-weight: bold; text-align: center; }
