/**
 * Pictaffil WordPress Plugin Editor CSS
 * 
 * This file contains styles for the post editor panel.
 */

/* Editor Panel Layout */
.pictaffil-editor-panel {
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    padding: 15px;
    background: #f0f0f1;
}

.pictaffil-editor-container {
    padding: 20px;
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.04);
    overflow: hidden;
}

.pictaffil-editor-columns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.pictaffil-editor-column {
    flex: 1;
    min-width: 0;
    padding: 15px;
    box-sizing: border-box;
}

.pictaffil-images-column {
    flex: 0 0 35%;
    border-right: 1px solid #eee;
}

.pictaffil-analysis-column {
    flex: 1;
}

/* Post Images Grid */
.pictaffil-post-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    background-color: #fdfdfd;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    max-height: 500px;
    overflow-y: auto;
}

.pictaffil-post-image {
    position: relative;
    width: 100%;
    height: 120px;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pictaffil-post-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: #ddd;
}

.pictaffil-post-image.selected {
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.3);
    border-color: #2271b1;
}

.pictaffil-post-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.pictaffil-featured-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #4f46e5;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    z-index: 1;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 2px 5px;
}

/* Selected Image Preview */
.pictaffil-selected-image-container {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.pictaffil-selected-image {
    margin-bottom: 15px;
    margin-bottom: 10px;
    text-align: center;
    border: 1px solid #ddd;
    padding: 5px;
    border-radius: 4px;
}

.pictaffil-selected-image img {
    max-width: 100%;
    max-height: 300px;
    height: auto;
    border-radius: 4px;
}

/* Analysis Results */
.pictaffil-analysis-results {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    background: #f7f7f7;
    border-radius: 4px;
    padding: 10px;
}

.pictaffil-results-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.pictaffil-analyzed-image {
    flex: 0 0 200px;
    width: 35%;
    padding-right: 15px;
    text-align: center;
}

.pictaffil-analyzed-image img {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    max-height: 200px;
    object-fit: contain;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
}

.pictaffil-analysis-info {
    flex: 1;
    width: 65%;
    padding-left: 15px;
}

.pictaffil-info-row {
    margin-bottom: 12px;
    margin-bottom: 10px;
}

.pictaffil-label {
    font-weight: 500;
    margin-right: 8px;
    font-weight: bold;
    margin-right: 5px;
}

.pictaffil-keywords-container {
    margin-top: 16px;
    margin-top: 15px;
}

.pictaffil-keywords-list {
    margin-bottom: 10px;
    width: 100%;
    padding: 5px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-height: none !important; /* Explicitly remove any max-height */
    overflow: visible !important; /* Force overflow to be visible */
    border: none; /* Remove any borders that might create a container look */
}

.pictaffil-keyword-item {
    margin-bottom: 5px;
    padding: 2px 5px;
    background-color: #f0f0f0;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
}

.pictaffil-keyword {
    display: inline-flex;
    align-items: center;
    background-color: #f3f4f6;
    border: 1px solid transparent;
    color: #4b5563;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 5px;
    padding: 5px;
    border-radius: 3px;
}

.pictaffil-keyword:hover {
    background-color: #e5e7eb;
    border-color: #d1d5db;
    background: #f5f5f5;
}

.pictaffil-keyword input[type="radio"] {
    margin-right: 5px;
}

.pictaffil-keyword label {
    display: inline-block;
    margin-left: 5px;
    cursor: pointer;
}

.pictaffil-search-actions {
    margin-top: 15px;
}

/* Product Results */
.pictaffil-products-section {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    background: #f7f7f7;
    border-radius: 4px;
    padding: 10px;
}

.pictaffil-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
    grid-gap: 15px;
}

.pictaffil-product-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.pictaffil-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pictaffil-product-image {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9fafb;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
    height: 150px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
}

.pictaffil-product-image img {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pictaffil-product-details {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.pictaffil-product-title {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 10px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
    font-weight: bold;
    margin-bottom: 5px;
}

.pictaffil-product-price {
    font-weight: 600;
    color: #4f46e5;
    margin-bottom: 10px;
    font-weight: bold;
    color: #2271b1;
    margin-bottom: 5px;
}

.pictaffil-product-rating {
    margin-bottom: 10px;
    color: #6b7280;
    font-size: 12px;
    margin-bottom: 5px;
}

.pictaffil-star {
    color: #f59e0b;
}

.pictaffil-star-empty {
    color: #d1d5db;
}

.pictaffil-stars {
    color: #f0ad4e;
    margin-right: 5px;
}

.pictaffil-product-actions {
    margin-top: auto;
    display: flex;
    gap: 8px;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
}

.pictaffil-product-actions button {
    flex: 1;
}

/* Empty State */
.pictaffil-empty-state {
    text-align: center;
    padding: 30px;
    color: #6b7280;
    background-color: #f9fafb;
    border-radius: 8px;
    border: 1px dashed #e5e7eb;
    text-align: center;
    padding: 20px;
    color: #777;
}

/* Loading Overlay */
.pictaffil-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

.pictaffil-loader {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top-color: #4f46e5;
    border-radius: 50%;
    animation: pictaffil-spin 1s linear infinite;
    margin-bottom: 15px;
    border: 5px solid #f3f3f3;
    border-radius: 50%;
    border-top: 5px solid #2271b1;
    width: 40px;
    height: 40px;
    animation: pictaffil-spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes pictaffil-spin {
    to {
        transform: rotate(360deg);
    }
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading and Empty States */
.pictaffil-loading, 
.pictaffil-empty-state,
.pictaffil-error {
    padding: 20px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

.pictaffil-loading:before {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    margin-right: 0.5em;
    border: 2px solid currentColor;
    border-top-color: transparent;
    vertical-align: -0.2em;
    animation: pictaffil-spin 1s linear infinite;
}

.pictaffil-empty-state {
    background-color: #f9fafb;
    border-radius: 8px;
    border: 1px dashed #e5e7eb;
}

.pictaffil-error {
    background-color: #fee2e2;
    border-radius: 8px;
    color: #b91c1c;
}

/* Saved Products Section - Fixed layout */
.pictaffil-saved-products-section {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.pictaffil-saved-products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    background: #f7f7f7;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.pictaffil-saved-products-title {
    font-size: 16px;
    margin: 0;
    font-weight: 600;
}

.pictaffil-saved-products-actions {
    display: flex;
    gap: 8px;
}

.pictaffil-saved-products-options {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.pictaffil-position-options,
.pictaffil-card-style-options,
.pictaffil-visibility-options {
    margin-bottom: 10px;
}

.pictaffil-option-label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
}

.pictaffil-position-option,
.pictaffil-card-style-option,
.pictaffil-visibility-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 6px 12px;
    margin-right: 5px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    border: 1px solid #ddd;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
    background: #f7f7f7;
}

.pictaffil-position-option:hover,
.pictaffil-card-style-option:hover,
.pictaffil-visibility-option:hover {
    background-color: #f3f4f6;
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.pictaffil-position-option.selected,
.pictaffil-card-style-option.selected,
.pictaffil-visibility-option.selected {
    background-color: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

/* Improved container for saved products */
.pictaffil-saved-products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    max-height: 400px; /* Increased height */
    overflow-y: auto;
    background: #fff;
    padding: 15px;
}

/* Improved saved product card */
.pictaffil-saved-product {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Changed to column layout */
    height: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s;
    padding: 0; /* Remove padding */
    position: relative;
}

.pictaffil-saved-product:hover {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

/* Fixed image container */
.pictaffil-saved-product .pictaffil-product-image {
    width: 100%; /* Full width */
    height: 120px; /* Fixed height */
    margin-right: 0; /* Remove margin */
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #eee;
}

.pictaffil-saved-product .pictaffil-product-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* Fixed product details */
.pictaffil-saved-product .pictaffil-product-details {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.pictaffil-saved-product .pictaffil-product-title {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #333;
    /* Allow text to wrap properly */
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    white-space: normal;
}

.pictaffil-saved-product .pictaffil-product-price {
    font-size: 13px;
    font-weight: 600;
    color: #2271b1;
    margin-bottom: 8px;
}

.pictaffil-saved-product .pictaffil-product-actions {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
}

.pictaffil-toggle-active {
    position: absolute;
    top: 5px;
    left: 5px;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 2;
    cursor: pointer;
}

.pictaffil-toggle-active.active {
    background-color: #10b981;
    color: #ffffff;
}

.pictaffil-toggle-active.inactive {
    background-color: #f43f5e;
    color: #ffffff;
}

.pictaffil-empty-products {
    padding: 15px;
    color: #6b7280;
    font-style: italic;
    text-align: center;
}

/* Copy Product Options */
.pictaffil-copy-product-container {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 10;
}

.pictaffil-copy-product {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    color: #4b5563;
}

.pictaffil-copy-product:hover {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pictaffil-copy-options {
    position: absolute;
    top: 28px;
    right: 0;
    width: 120px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: none;
}

.pictaffil-copy-product-container:hover .pictaffil-copy-options {
    display: block;
}

.pictaffil-copy-option {
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
}

.pictaffil-copy-option:hover {
    background: #f3f4f6;
    color: #2271b1;
}

.pictaffil-copy-option:not(:last-child) {
    border-bottom: 1px solid #e5e7eb;
}

.pictaffil-copy-option-icon {
    margin-right: 6px;
    font-size: 14px;
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Copy success notification */
.pictaffil-copy-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #10b981;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.pictaffil-copy-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Sticky Option */
.pictaffil-sticky-option {
    margin-bottom: 15px;
}

.pictaffil-tooltip {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: #f0f0f0;
    border-radius: 50%;
    text-align: center;
    line-height: 16px;
    font-size: 10px;
    margin-left: 5px;
    cursor: help;
}

/* Responsive Adjustments */
@media (max-width: 782px) {
    .pictaffil-editor-columns {
        flex-direction: column;
    }
    
    .pictaffil-images-column {
        flex: 1 1 auto;
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    
    .pictaffil-results-container {
        flex-direction: column;
    }
    
    .pictaffil-analyzed-image {
        flex: 0 0 auto;
        width: 100%;
        padding: 0;
        margin-bottom: 15px;
    }
    
    .pictaffil-analysis-info {
        width: 100%;
        padding: 0;
    }
    
    .pictaffil-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .pictaffil-editor-column {
        flex: 0 0 100%;
    }
}

/* Settings tabs styling */
.pictaffil-settings-tabs {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.pictaffil-settings-tab-buttons {
    display: flex;
    border-bottom: 1px solid #ddd;
    background: #f7f7f7;
}

.pictaffil-settings-tab-button {
    padding: 10px 15px;
    background: none;
    border: none;
    border-right: 1px solid #ddd;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    transition: background-color 0.2s, color 0.2s;
}

.pictaffil-settings-tab-button:hover {
    background-color: #f0f0f0;
    color: #2271b1;
}

.pictaffil-settings-tab-button.active {
    background-color: #fff;
    color: #2271b1;
    border-bottom: 2px solid #2271b1;
    margin-bottom: -1px;
}

.pictaffil-settings-tab-content {
    display: none;
    padding: 15px;
}

.pictaffil-settings-tab-content.active {
    display: block;
}

.pictaffil-settings-block {
    margin-bottom: 20px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 15px;
}

.pictaffil-setting-field {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.pictaffil-setting-field label {
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 13px;
}

.pictaffil-setting-field input,
.pictaffil-setting-field select {
    max-width: 100%;
    width: 100%;
}

.pictaffil-setting-field input[type="color"] {
    width: 50px;
    height: 30px;
    padding: 0;
    border: 1px solid #ddd;
}

.pictaffil-setting-help {
    font-size: 12px;
    color: #666;
    margin: 5px 0 0 0;
    font-style: italic;
}

.pictaffil-options-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.pictaffil-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 5px 0;
    cursor: pointer;
}

.pictaffil-checkbox-label input {
    margin: 0;
}

.pictaffil-settings-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.pictaffil-settings-notice {
    background: #f0f6fc;
    border-left: 4px solid #72aee6;
    padding: 12px;
    margin: 0;
    font-size: 13px;
}

/* Copy functionality styles */
.pictaffil-copy-dropdown {
    position: absolute;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
    padding: 5px 0;
}

.pictaffil-copy-dropdown a {
    display: block;
    padding: 6px 12px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: background-color 0.2s;
}

.pictaffil-copy-dropdown a:hover {
    background-color: #f5f5f5;
}

/* Product card actions */
.pictaffil-product-card-saved .product-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: #fff;
    border-radius: 4px;
    padding: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pictaffil-product-card-saved .product-actions:before {
    content: "\f531";  /* WP Dashicons copy icon */
    font-family: dashicons;
    color: #555;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pictaffil-product-card-saved .product-actions:hover {
    background-color: #f5f5f5;
}

/* Notification styles */
.pictaffil-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 15px;
    color: white;
    border-radius: 4px;
    z-index: 10000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pictaffil-notification-success {
    background-color: #4CAF50;
}

.pictaffil-notification-error {
    background-color: #f44336;
}

/* Copy product container styling for saved products */
.pictaffil-saved-product {
    position: relative;
}

.pictaffil-copy-product-container {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.pictaffil-copy-product {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.2s;
}

.pictaffil-copy-product:hover {
    background-color: #f0f0f0;
}

.pictaffil-copy-options {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    padding: 6px 0;
    margin-top: 5px;
    display: none;
    width: 150px;
    z-index: 11;
}

.pictaffil-copy-product:hover + .pictaffil-copy-options,
.pictaffil-copy-options:hover {
    display: block;
}

.pictaffil-copy-option {
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #333;
}

.pictaffil-copy-option:hover {
    background-color: #f5f5f5;
}

.pictaffil-copy-option-icon {
    margin-right: 8px;
    color: #666;
    font-size: 16px;
}

.pictaffil-copy-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 18px;
    background-color: #10b981;
    color: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    z-index: 99999;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.pictaffil-copy-notification.show {
    opacity: 1;
    transform: translateY(0);
}




    .pictaffil-settings-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .pictaffil-settings-column {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .pictaffil-settings-block {
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 4px;
        padding: 15px;
        margin-bottom: 0;
    }
    
    .pictaffil-block-heading {
        border-bottom: 1px solid #eee;
        padding-bottom: 10px;
        margin-top: 0;
        margin-bottom: 15px;
        font-size: 14px;
        font-weight: 600;
    }
    
    .pictaffil-setting-field {
        margin-bottom: 12px;
    }
    
    .pictaffil-setting-field:last-child {
        margin-bottom: 0;
    }
    
    @media (max-width: 782px) {
        .pictaffil-settings-grid {
            grid-template-columns: 1fr;
        }
    }
    
    /* Square checkboxes styling */
    input[type="checkbox"] {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        width: 16px;
        height: 16px;
        border: 1px solid #7e8993;
        border-radius: 2px;
        background-color: #fff;
        margin-right: 8px;
        position: relative;
        cursor: pointer;
        vertical-align: middle;
    }
    
    input[type="checkbox"]:checked {
        background-color: #4f46e5;
        border-color: #4f46e5;
    }
    
    input[type="checkbox"]:checked::before {
        content: '\2713';
        position: absolute;
        color: white;
        font-size: 12px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .pictaffil-checkbox-label {
        display: flex;
        align-items: center;
        cursor: pointer;
    }
    
    /* Reduce Amazon button width to half for all carousel styles */
    .pictaffil-product-button a,
    .pictaffil-product-button .button,
    .pictaffil-product-button button {
        width: 50% !important;
        margin: 0 auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    /* Vertical layout for side carousel product cards */
    .pictaffil-side-carousel .pictaffil-product-card {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .pictaffil-side-carousel .pictaffil-product-image {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .pictaffil-side-carousel .pictaffil-product-details {
        width: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .pictaffil-side-carousel .pictaffil-product-name {
        margin-bottom: 5px;
        order: 1;
    }
    
    .pictaffil-side-carousel .pictaffil-product-price {
        margin-bottom: 5px;
        order: 2;
    }
    
    .pictaffil-side-carousel .pictaffil-product-rating {
        margin-bottom: 5px;
        order: 3;
    }
    
    .pictaffil-side-carousel .pictaffil-product-button {
        order: 4;
    }