/* WooCommerce Plant Attributes Styles */
.wpa-plant-attributes {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
    padding: 0;
}

.wpa-attribute {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
    min-width: 120px;
}

.wpa-attribute:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.wpa-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.wpa-icon-image {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

.wpa-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.wpa-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wpa-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1;
}

.wpa-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    line-height: 1.2;
}

/* Pet friendly specific styling */
.wpa-attribute.pet-safe {
    border-color: #28a745;
    background: #d4edda;
}

.wpa-attribute.pet-safe .wpa-value {
    color: #155724;
}

.wpa-attribute.pet-unsafe {
    border-color: #dc3545;
    background: #f8d7da;
}

.wpa-attribute.pet-unsafe .wpa-value {
    color: #721c24;
}

/* Responsive design */
@media (max-width: 768px) {
    .wpa-plant-attributes {
        gap: 10px;
    }
    
    .wpa-attribute {
        padding: 8px 12px;
        min-width: calc(50% - 5px);
        flex: 0 0 calc(50% - 5px);
    }
    
    .wpa-icon {
        font-size: 18px;
    }
    
    .wpa-label {
        font-size: 10px;
    }
    
    .wpa-value {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .wpa-plant-attributes {
        gap: 8px;
    }
    
    .wpa-attribute {
        min-width: calc(50% - 4px);
        flex: 0 0 calc(50% - 4px);
        padding: 6px 10px;
    }
    
    .wpa-icon {
        font-size: 16px;
    }
    
    .wpa-label {
        font-size: 9px;
    }
    
    .wpa-value {
        font-size: 12px;
    }
}

@media (max-width: 320px) {
    .wpa-attribute {
        min-width: calc(50% - 3px);
        flex: 0 0 calc(50% - 3px);
        padding: 5px 8px;
    }
    
    .wpa-icon {
        font-size: 14px;
    }
}

/* Expandable water info styles */
/* Expandable attribute styles */
.wpa-attribute.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    padding-right: 35px; /* Extra ruimte voor de arrow */
}

.wpa-attribute.clickable::after {
    content: '▼';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #666;
    transition: all 0.2s ease;
}

.wpa-attribute.clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.wpa-attribute.clickable:hover::after {
    color: #333;
}

.wpa-attribute.clickable.active {
    background: #e3f2fd;
    border-color: #2196f3;
    transform: translateY(-1px);
}

.wpa-attribute.clickable.active::after {
    content: '▲';
    color: #2196f3;
}

.wpa-water-info-section {
    margin-top: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Responsive styles for expandable attributes */
@media (max-width: 768px) {
    .wpa-attribute.clickable {
        padding-right: 30px; /* Slightly less padding on mobile */
    }

    .wpa-attribute.clickable::after {
        right: 10px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .wpa-attribute.clickable {
        padding-right: 28px;
    }

    .wpa-attribute.clickable::after {
        right: 8px;
        font-size: 10px;
    }
}

.wpa-water-info-section.show {
    display: block !important;
    animation: slideDown 0.3s ease-out;
}

.wpa-water-info-section.hide {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
}

.wpa-water-info-header {
    background: #007cba;
    color: white;
    padding: 12px 15px;
    margin: 0;
}

.wpa-water-info-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.wpa-water-info-content {
    padding: 15px;
    line-height: 1.6;
}

.wpa-water-info-content > p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
}

.wpa-water-level {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 12px 0;
    padding: 12px;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #007cba;
    transition: all 0.2s ease;
}

.wpa-water-level.current {
    background: #d4edda;
    border-left-color: #28a745;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.wpa-water-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    width: 60px;
    text-align: left;
    display: flex;
    align-items: center;
}

.wpa-water-details h5 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.wpa-water-details p {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.wpa-water-tip {
    margin-top: 15px;
    padding: 10px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    font-size: 13px;
    color: #856404;
}

@media (max-width: 768px) {
    .wpa-water-info-content {
        padding: 12px;
    }
    
    .wpa-water-level {
        padding: 10px;
        gap: 10px;
    }
    
    .wpa-water-details h5 {
        font-size: 13px;
    }
    
    .wpa-water-details p {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .wpa-water-info-header {
        padding: 10px 12px;
    }
    
    .wpa-water-info-header h4 {
        font-size: 14px;
    }
    
    .wpa-water-level {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .wpa-water-icon {
        align-self: center;
    }
}

/* Plant Family Info Styles */
.wpa-family-info-section {
    margin-top: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.wpa-family-info-section.show {
    display: block !important;
    animation: slideDown 0.3s ease-out;
}

.wpa-family-info-section.hide {
    animation: slideUp 0.3s ease-out;
}

.wpa-family-info-header {
    background: #28a745;
    color: white;
    padding: 12px 15px;
    margin: 0;
}

.wpa-family-info-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.wpa-family-info-content {
    padding: 15px;
    line-height: 1.6;
}

.wpa-family-info-content > p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
}

.wpa-family-details {
    display: none; /* Hide all families by default */
    align-items: flex-start;
    gap: 12px;
    margin: 12px 0;
    padding: 12px;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #28a745;
    transition: all 0.2s ease;
}

.wpa-family-details.current {
    display: flex; /* Show only the current/selected family */
    background: #d4edda;
    border-left-color: #155724;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.wpa-family-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.wpa-family-info h5 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.wpa-family-info p {
    margin: 0 0 6px 0;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.wpa-family-info p:last-child {
    margin-bottom: 0;
}

.wpa-family-tip {
    margin-top: 15px;
    padding: 10px;
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    font-size: 13px;
    color: #0c5460;
}

/* Responsive styles for family info */
@media (max-width: 768px) {
    .wpa-water-icon {
        width: 50px;
    }

    .wpa-family-info-content {
        padding: 12px;
    }

    .wpa-family-details {
        flex-direction: column;
        gap: 8px;
        text-align: left;
    }

    .wpa-family-icon {
        align-self: flex-start;
    }

    .wpa-family-info h5 {
        font-size: 13px;
    }

    .wpa-family-info p {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .wpa-water-icon {
        width: 45px;
        font-size: 16px;
    }

    .wpa-family-info-header {
        padding: 10px 12px;
    }

    .wpa-family-info-header h4 {
        font-size: 14px;
    }

    .wpa-family-details {
        padding: 10px;
    }

    .wpa-family-icon {
        font-size: 16px;
    }
}