/* 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: 0; }
.pet-print-heading { margin-top: 0; margin-bottom: 15px; font-size: 1.2rem; }

/* Horizontal Flex Template Gallery */
.template-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 15px;
    padding: 15px 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.template-grid::-webkit-scrollbar { height: 8px; }
.template-grid::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 0; }
.template-grid::-webkit-scrollbar-thumb { background: #bbb; border-radius: 0; }
.template-grid::-webkit-scrollbar-thumb:hover { background: #888; }

.template-item {
    flex: 0 0 140px; 
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 0;
    padding: 4px;
    transition: all 0.2s ease;
    opacity: 0.6;
}

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

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

.template-item img {
    width: 100%;
    height: auto;
    border-radius: 0;
    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: 0;
    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: #444444; 
    background: #444444;   
    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; border-radius: 0 !important; }
.pet-cart-message { margin-top: 15px; font-weight: bold; text-align: center; }
