/* 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: #fdfdfd; border: 1px solid #eaeaea; border-radius: 0; }
.pet-print-heading { margin-top: 0; margin-bottom: 15px; font-size: 1.2rem; color: #333; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid #eee; padding-bottom: 8px;}

/* Horizontal Flex Template Gallery */
.template-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 15px;
    padding: 15px 5px;
    background: transparent;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.template-grid::-webkit-scrollbar { height: 6px; }
.template-grid::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 0; }
.template-grid::-webkit-scrollbar-thumb { background: #ccc; border-radius: 0; }
.template-grid::-webkit-scrollbar-thumb:hover { background: #444444; }

.template-item {
    flex: 0 0 140px; 
    cursor: pointer;
    border: 3px solid transparent; /* Keeps layout stable */
    border-radius: 0;
    padding: 2px;
    transition: all 0.2s ease-in-out;
    opacity: 0.7;
}

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

.template-item.selected {
    opacity: 1;
    border-color: #444444; /* Sharp #444444 border */
    background-color: transparent;
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(68, 68, 68, 0.15); /* Subtle shadow matching the color */
}

.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;
    color: #555;
}
.template-item.selected .template-label {
    color: #444444; /* Match text to active color */
}

/* 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 ease-in-out;
    font-weight: 500;
    font-size: 1.1rem;
    color: #555;
}

.radio-custom-button:hover {
    border-color: #aaa;
}

.pet-radio-label input[type="radio"]:checked + .radio-custom-button {
    border-color: #444444; 
    background: #444444;   
    color: #fff;
    box-shadow: inset 0 0 0 1px #444444; /* Extra crispness */
}

/* File Input Restyling */
.pet-file-input {
    display: block;
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 0;
    cursor: pointer;
    color: #555;
}
.pet-file-input:focus {
    outline: none;
    border-color: #444444;
}

/* Price and Add to Cart Button */
.pet-price-display { font-size: 1.8rem; font-weight: bold; margin-bottom: 15px; color: #333; }

/* Force exact #444444 on the Add to Cart button, overriding Elementor defaults */
.pet-add-to-cart { 
    width: 100%; 
    padding: 18px !important; 
    font-size: 1.2rem !important; 
    font-weight: 600 !important;
    cursor: pointer; 
    border-radius: 0 !important; 
    background-color: #444444 !important; 
    border: none !important;
    color: #fff !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.2s ease-in-out !important;
}

.pet-add-to-cart:hover {
    background-color: #2b2b2b !important; /* Slightly darker on hover for feedback */
}

.pet-cart-message { margin-top: 15px; font-weight: bold; text-align: center; }
