/**
 * Custom Field Query Plugin Styles
 */

.cfq-results {
    margin: 20px 0;
}

.cfq-post {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.cfq-post:last-child {
    border-bottom: none;
}

.cfq-thumbnail {
    margin-bottom: 15px;
}

.cfq-thumbnail img {
    max-width: 100%;
    height: auto;
    display: block;
}

.cfq-content {
    margin-top: 15px;
}

.cfq-title {
    margin: 0 0 10px 0;
    font-size: 1.5em;
}

.cfq-title a {
    text-decoration: none;
    color: #333;
}

.cfq-title a:hover {
    color: #0073aa;
}

.cfq-excerpt {
    margin: 10px 0;
    color: #666;
    line-height: 1.6;
}

.cfq-meta {
    margin-top: 10px;
    font-size: 0.9em;
    color: #999;
}

.cfq-date {
    margin-right: 15px;
}

/* List Template */
.cfq-template-list .cfq-post {
    display: flex;
    gap: 20px;
}

.cfq-template-list .cfq-thumbnail {
    flex: 0 0 200px;
    margin-bottom: 0;
}

.cfq-template-list .cfq-content {
    flex: 1;
    margin-top: 0;
}

/* Grid Template */
.cfq-template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.cfq-template-grid .cfq-post {
    border-bottom: none;
    padding-bottom: 0;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 5px;
    transition: box-shadow 0.3s;
}

.cfq-template-grid .cfq-post:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Widget Styles */
.cfq-widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cfq-widget-list li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.cfq-widget-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cfq-widget-list a {
    text-decoration: none;
    color: #333;
}

.cfq-widget-list a:hover {
    color: #0073aa;
}

/* Default User Query Styles */
.cfq-default-query-results {
    margin: 20px 0;
    overflow-x: auto;
}

.cfq-default-query-results table {
    margin-top: 10px;
}

.cfq-default-query-results .description {
    margin-top: 10px;
    font-style: italic;
    color: #666;
}

/* Products Results Styles */
.cfq-products-results {
    margin: 20px 0;
    overflow-x: auto;
    max-width: 100%;
}

.cfq-products-results table {
    margin-top: 10px;
    width: 100%;
    table-layout: auto;
}

.cfq-products-results .description {
    margin-top: 10px;
    font-style: italic;
    color: #666;
}

/* Full Width Card for Products Section */
.cfq-full-width-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

/* Ensure the wrap container allows full width */
.wrap .cfq-full-width-card {
    width: 100% !important;
    max-width: 100% !important;
}

/* Two Column Layout */
.cfq-two-column-row {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.cfq-two-column-row .card {
    flex: 1;
}

/* Three Column Layout */
.cfq-three-column-row {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.cfq-three-column-row .card {
    flex: 1;
}

@media (max-width: 1200px) {
    .cfq-three-column-row {
        flex-wrap: wrap;
    }
    .cfq-three-column-row .card {
        flex: 1 1 calc(50% - 10px);
        min-width: 300px;
    }
}

@media (max-width: 782px) {
    .cfq-two-column-row,
    .cfq-three-column-row {
        flex-direction: column;
    }
    .cfq-three-column-row .card {
        flex: 1 1 100%;
    }
}


