/* Frontend styles for Textile Compitability shortcode */
.textile-cp-wrapper {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 4px;
	font-size:14px;
    position: relative;
    overflow-x: auto;
}
.textile-cp-wrapper .textile-cp-filters .button { background: #ED4D2E; color: #fff; border: 0px solid #ED4D2E; padding: 8px 18px; border-radius: 5px; text-decoration: none; display: inline-block; }
.textile-cp-wrapper .textile-cp-filters .button:hover { background: #12110F; color: #fff; }
.textile-cp-wrapper .textile-cp-filters { margin-bottom: 12px; padding: 12px; background: #f9f9f9; border-radius: 3px; }
.textile-cp-wrapper .textile-cp-filters .textile-cp-filters-row { margin-bottom: 10px; }
.textile-cp-wrapper .textile-cp-filters .textile-cp-controls-row { text-align: right; white-space: nowrap; }
.textile-cp-wrapper .textile-cp-filters .textile-cp-filter-group { display: inline-block; margin-right: 15px; margin-bottom: 10px; }
.textile-cp-wrapper .textile-cp-filters .textile-cp-filter-group label { display: block; margin-bottom: 5px; font-weight: bold; }
.textile-cp-wrapper .textile-cp-filters .textile-cp-select { width: 180px; }
.textile-cp-wrapper .textile-cp-filters input[type="text"] { margin-right: 6px; padding:8px; border: 1px solid #ccc; border-radius: 3px; height: auto; }
.textile-cp-wrapper .textile-cp-filters select { margin-right: 6px; padding: 8px; border: 1px solid #ccc; border-radius: 3px; height: auto; }
.textile-cp-wrapper .textile-cp-filters .textile-cp-controls-row select { padding: 8px; height: auto; }
/* export button/icon */
.textile-cp-export.button { margin-left:8px; background:#0073aa; color:#fff; border: 2px solid #006799; padding: 8px 12px; border-radius: 3px; }
.textile-cp-export.button:hover { background:#006799; color:#fff; }
/* when used inside header controls show only icon */
.textile-cp-controls-row .textile-cp-export {
    margin: 0;
    padding: 8px;
    font-size: 18px;
    text-decoration: none;
    border: 2px solid #999;
    border-radius: 3px;
    background:#fff;
    display: inline-block;
    line-height: 1;
    height: auto;
}
.textile-cp-controls-row .textile-cp-export:hover {
    background:#f1f1f1;
    border-color: #666;
}
.textile-cp-controls-row .textile-cp-export span.dashicons {
    vertical-align: middle; color:#000;
}
.textile-cp-table { width:100%; border-collapse:collapse; margin-top: 16px; }
.textile-cp-table th, .textile-cp-table td { border:1px solid #ddd; padding:12px; text-align: left; }
.textile-cp-table th { white-space: nowrap; }

/* sortable headers */
.textile-cp-sort { text-decoration: none; color:#000; }
.textile-cp-sort:hover { text-decoration: underline; }
.textile-cp-table thead { background:#f7f7f7; font-weight: bold; }
.textile-cp-table tbody tr:nth-child(even) { background: #fafafa; }

/* pagination */
.textile-cp-pagination { margin-top: 12px; text-align: center; }

/* loader */
.textile-cp-loader { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.9); z-index: 99999; text-align: center; padding-top: 100px; font-size: 18px; color: #333; }

/* hide table/controls while loading so layout doesn't jump */
body.textile-cp-loading .textile-cp-table,
body.textile-cp-loading .textile-cp-pagination,
body.textile-cp-loading .textile-cp-controls-row,
body.textile-cp-loading .textile-cp-filters { visibility: hidden; }
.textile-cp-pagination .page-numbers { margin: 0 4px; text-decoration: none; color: #0073aa; font-size: 16px; }
.textile-cp-pagination .page-numbers.current { font-weight: bold; color: #000; }
.textile-cp-pagination .page-numbers:hover { text-decoration: underline; }
.textile-cp-pagination { white-space: nowrap; }

/* select2 adjustments */
.textile-cp-wrapper .select2-container { min-width: 250px !important; max-width: 100%; }
.textile-cp-wrapper .select2-selection--multiple { 
	min-height: 38px; 
	max-height: 60px !important; 
	border: 1px solid #ddd !important;
	border-radius: 4px !important;
}
.textile-cp-wrapper .select2-selection__rendered {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    white-space: normal !important;
    display: block !important;
    max-height: 58px !important;
    padding: 2px 5px !important;
}
.textile-cp-wrapper .select2-selection__placeholder {
    padding: 2px 5px !important;
    color: #999 !important;
    font-style: italic !important;
}
.textile-cp-wrapper .select2-selection__choice {
    display: inline-block !important;
    white-space: nowrap;
    margin-right: 6px;
    margin-bottom: 2px;
    vertical-align: middle;
}
.textile-cp-wrapper .select2-dropdown { z-index: 9999; }

/* Textile Compatibility Banner */
.textile-cp-banner {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 80px 20px 120px;
    margin-bottom: 30px;
    position: relative;
   
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.textile-cp-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}
.textile-cp-banner-content {
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
}
.textile-cp-banner-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin: 0 0 15px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
}
.textile-cp-banner-subtitle {
    font-size: 1.8rem;
    font-weight: 300;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    opacity: 0.95;
    color: #fff;
}
.textile-cp-banner-footer {
    /* no longer used */
}
.textile-cp-banner-description {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 15px 0;
   
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    color: #fff;
}
.textile-cp-banner-tagline {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    color: #fff;
}

/* extra text below banner */
.textile-cp-banner-extra {
    text-align: center;
    padding: 0px 15px;
    
    color: #333;
    
    margin: 0 auto 0px auto;
    border-radius: 4px;
}
.textile-cp-banner-extra .textile-cp-banner-description {
    color: #000;
    text-shadow: none;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 10px;
	font-family: Outfit-Regular;
}
.textile-cp-banner-extra .textile-cp-banner-tagline {
    color: #000;
    font-size: 1rem;
    text-shadow: none;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .textile-cp-banner {
        padding: 60px 15px 100px;
        min-height: 350px;
    }
    .textile-cp-banner-title {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }
    .textile-cp-banner-subtitle {
        font-size: 1.4rem;
    }
    .textile-cp-banner-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    .textile-cp-banner-tagline {
        font-size: 1rem;
    }
    .textile-cp-banner-footer {
        bottom: 20px;
        left: 15px;
        right: 15px;
    }
}
@media (max-width: 480px) {
    .textile-cp-banner-title {
        font-size: 2rem;
    }
    .textile-cp-banner-subtitle {
        font-size: 1.2rem;
    }
    .textile-cp-banner-description {
        font-size: 0.85rem;
    }
}
.textile-cp-wrapper .select2-search--inline .select2-search__field { width: 100% !important; }



.textile-cp-wrapper .select2-dropdown { z-index: 9999; max-height: 300px; overflow-y: auto; }
.textile-cp-wrapper .select2-results__options { max-height: 280px; overflow-y: auto; }



