/* Main design grid styling */
.wpls-design-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;               /* Space between grid items */
    justify-content: flex-start;
    padding: 10px;
}

.wpls-design-item {
    border: 2px solid transparent; /* Default border */
    padding: 10px;
    width: 200px;                 /* Width of each item */
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

/* Image styling */
.wpls-design-item img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    transition: transform 0.3s ease;
    cursor:pointer;
}

/* Hover effect: Zoom and slight rotation */
.wpls-design-item:hover img {
    transform: scale(1.05) rotate(2deg);
}

/* Hover effect for the container (border animation) */
.wpls-design-item:hover {
    border-color: #0073aa; /* WordPress blue border on hover */
    transform: scale(1.05); /* Slightly enlarge on hover */
}

/* Selected design styling */
.wpls-design-item input[type="radio"]:checked + img {
    border: 2px solid #0073aa; /* Selected design border color */
    padding: 2px;
    border-radius: 5px;
}

/* Hide the radio input */
.wpls-design-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Selected design styling (show border when selected) */
.wpls-design-item input[type="radio"]:checked + img {
    border: 3px solid #0073aa; /* Selected border color */
    padding: 3px;
    border-radius: 5px;
    animation: pulse 0.5s ease-in-out infinite alternate;
}


/* Animation for the selected state */
.wpls-design-item input[type="radio"]:checked + img {
    animation: pulse 0.5s ease-in-out infinite alternate;
}

.wpls-inline-field {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.wpls-label {
    width: 150px; /* Adjust this width based on your layout */
    font-weight: bold;
}

.wpls-input {
    flex-grow: 1; /* Make the input grow to fill the remaining space */
}

.wpls-input-color {
    width: 100px; /* Set a fixed width for color inputs */
}


@keyframes pulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

/* Make it responsive */
@media (max-width: 768px) {
    .wpls-design-item {
        width: 150px; /* Adjust width for smaller screens */
    }
}
