/* kadence-child/css/wishlist.css */

/* Wishlist Button Styling */
.kadence-child-wishlist-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.kadence-child-wishlist-button .wishlist-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Add to Wishlist state */
.wishlist-button-add {
    background-color: #4CAF50; /* Green */
    color: white;
}
.wishlist-button-add:hover {
    background-color: #45a049;
}
.wishlist-button-add .wishlist-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"/></svg>'); /* Plus icon */
}

/* Remove from Wishlist state */
.wishlist-button-remove {
    background-color: #f44336; /* Red */
    color: white;
}
.wishlist-button-remove:hover {
    background-color: #da190b;
}
.wishlist-button-remove .wishlist-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z"/></svg>'); /* Minus icon */
}

/* Loading state */
.kadence-child-wishlist-button.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Wishlist Page Display */
.kadence-child-wishlist-container {
    margin-top: 20px;
    padding: 20px;
    background-color: #f44336;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.kadence-child-wishlist-container h2 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.kadence-child-wishlist-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.kadence-child-wishlist-item {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 5px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    text-decoration: none; /* For links */
    color: inherit;
}

.kadence-child-wishlist-item:hover {
    box-shadow: 0 3px 15px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.kadence-child-wishlist-item-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.kadence-child-wishlist-item-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.kadence-child-wishlist-item-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2em;
    color: #333;
}

.kadence-child-wishlist-item-content p {
    font-size: 0.9em;
    color: #666;
    line-height: 1.5;
    flex-grow: 1;
}

.kadence-child-wishlist-item-actions {
    margin-top: 15px;
    text-align: right;
}

/* Request Form Styling */
.kadence-child-request-form-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-top: 30px;
    /* Added max-width and margin for better layout */
    max-width: 800px; /* Limit width */
    margin-left: auto;
    margin-right: auto;
}

.kadence-child-request-form-container h3 {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
}

.kadence-child-request-form-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.kadence-child-request-form-container input[type="text"],
.kadence-child-request-form-container input[type="email"],
.kadence-child-request-form-container textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box; /* Include padding in width */
    font-size: 16px;
}

.kadence-child-request-form-container textarea {
    min-height: 120px;
    resize: vertical;
}

.kadence-child-request-form-container input[type="submit"] {
    background-color: #0D132E; 
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    display: block;
    width: 100%;
    transition: background-color 0.3s ease;
}

.kadence-child-request-form-container input[type="submit"]:hover {
    background-color: #0D132E; 
}

.wishlist-message {
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: bold;
}

.wishlist-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wishlist-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .kadence-child-wishlist-items {
        grid-template-columns: 1fr; /* Stack items on small screens */
    }
    .kadence-child-request-form-container {
        padding: 15px; /* Reduce padding on small screens */
    }
}

/* Added for overall page content width */
#primary {
    max-width: 1200px; /* Max width for the main content area */
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px; /* Add some horizontal padding */
}
@media (max-width: 1200px) {
    #primary {
        padding: 0 15px; /* Adjust padding for slightly smaller screens */
    }
}
@media (max-width: 768px) {
    #primary {
        padding: 0 10px; /* More padding adjustment for mobile */
    }
}