/* Filters styling and responsiveness */
.cet-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 12px 0;
    box-sizing: border-box;
    font-family: inherit;
    position: relative;
}
.cet-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 12px;
}
.cet-filter-row {
    display: inline-flex;
    align-items: center;
    flex-grow: 1; /* Allow rows to grow to fill space */
    min-width: 100px; /* Base min-width for inputs */
}
.cet-filters input[type="text"], .cet-filters input[type="number"] {
    width: 100%; /* Make inputs fill their container */
    padding: 10px 12px;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 8px;
    outline: none;
    background: transparent;
    transition: box-shadow .15s ease;
    box-sizing: border-box;
}
.cet-filters input[type="text"]:focus, .cet-filters input[type="number"]:focus {
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.cet-filters .cet-filter-reset {
    width: auto;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,.08);
    background: transparent;
    cursor: pointer;
    box-sizing: border-box;
    white-space: nowrap; /* Prevent button text from wrapping */
}
.cet-filters .cet-count {
    margin-left: auto;
    font-weight: 600;
    padding: 6px 8px;
    white-space: nowrap;
}

/* Table container: horizontal scroll when needed */
.cet-table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Table baseline */
.cet-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}
.cet-table thead th {
    text-align: left;
    font-weight: 700;
    padding: 12px 14px;
    border-bottom: 2px solid rgba(0,0,0,.06);
    position: relative;
}
.cet-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(0,0,0,.04);
    vertical-align: top;
}
.cet-table tr:nth-child(odd) td {
    background: transparent;
}
.cet-table tbody tr:hover td {
    background: rgba(0,0,0,.02);
}

/* action cell */
.cet-action-inner {
    display: block;
    padding: 8px;
    border-radius: 6px;
}
.cet-action-empty {
    min-height: 36px;
    border: 1px dashed rgba(0,0,0,.12);
    border-radius: 6px;
    background: rgba(0,0,0,.02);
    padding: 8px;
}

/* Order Now button */
.cet-order-button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
}
.cet-order-button:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,115,170,0.2);
}

/* Order Form - Inline instead of modal */
.cet-order-form {
    display: none;
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.cet-order-form.active {
    display: block;
    animation: slideIn 0.4s ease-out;
}

.cet-form-header {
    margin-bottom: 25px;
    text-align: center;
}

.cet-form-header h3 {
    margin: 0 0 8px 0;
    color: #0073aa;
    font-size: 24px;
    font-weight: 700;
}

.cet-form-header p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
}

/* Form Groups */
.cet-form-group {
    margin-bottom: 20px;
}

.cet-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.cet-form-group input[type="text"],
.cet-form-group input[type="email"],
.cet-form-group input[type="tel"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: white;
    color: #1e293b;
}

.cet-form-group input[type="text"]:focus,
.cet-form-group input[type="email"]:focus,
.cet-form-group input[type="tel"]:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 4px rgba(0, 115, 170, 0.1);
}

.cet-form-group input::placeholder {
    color: #94a3b8;
}

/* Websites Checkboxes - Improved multi-column layout */
.cet-websites-section {
    margin-top: 25px;
    border-top: 2px solid #f1f5f9;
    padding-top: 20px;
}

.cet-websites-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    background: white;
    max-height: none; /* Remove max-height to eliminate scrollbar */
    overflow: visible; /* Ensure no scrollbar appears */
}

.cet-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #f8fafc;
    border: 1px solid transparent;
    margin: 0; /* Remove margin to use grid gap instead */
}

.cet-checkbox-label:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.cet-checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    margin-right: 12px;
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

.cet-checkbox-label input[type="checkbox"]:checked {
    background: #0073aa;
    border-color: #0073aa;
}

.cet-checkbox-label input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.cet-checkbox-label span {
    font-size: 15px;
    color: #1e293b;
    flex: 1;
    font-weight: 500;
    line-height: 1.4;
}

/* Submit Button */
.cet-order-submit {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    border: none;
    padding: 16px 28px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    width: 100%;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.cet-order-submit:hover {
    background: linear-gradient(135deg, #005a87 0%, #004466 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 115, 170, 0.3);
}

.cet-order-submit:active {
    transform: translateY(0);
}

/* Animation for form */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .cet-order-form {
        padding: 20px;
    }
    
    .cet-form-header h3 {
        font-size: 20px;
    }
    
    .cet-form-group input[type="text"],
    .cet-form-group input[type="email"],
    .cet-form-group input[type="tel"] {
        padding: 12px 14px;
        font-size: 16px;
    }
    
    .cet-websites-checkboxes {
        grid-template-columns: 1fr; /* Single column on mobile */
        padding: 12px;
    }
    
    .cet-checkbox-label {
        padding: 10px;
    }
    
    .cet-order-submit {
        padding: 14px 20px;
        font-size: 15px;
    }
}

/* Tablet and smaller desktop */
@media (max-width: 1024px) {
    .cet-websites-checkboxes {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}