/* Services Table Widget Styles */
.services-table-widget {
    width: 100%;
    margin: 0 auto;
    overflow-x: auto;
}

.services-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    margin: 0 !important;
}

/* Header Styles */
.services-table-header {
    background-color: #4a90e2;
    color: #ffffff;
}

.services-table-header th {
    padding: 10px 0px 10px 20px;
    text-align: left;
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
    border-color: transparent !IMPORTANT;
}

/* Dynamic column widths are handled by inline styles */

/* Body Styles */
.services-table-body tr {
    transition: background-color 0.3s ease;
}
 

.services-table-body td {
    vertical-align: middle;
    overflow-wrap: break-word;
    line-height: normal;
}

/* Service Title Cell */
.service-services-cell {
    font-weight: 500;
}

/* Email Cell */
.service-email-cell .email-link {
    line-height: normal;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 18px;
    font-weight: 400;
    color: #000;
    font-family: 'Poppins';
}
.service-email-cell .email-link:hover {
    text-decoration: underline;
}
/* Phone Numbers Container */
.phone-numbers-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.phone-number {
    cursor: pointer;
    transition: all 0.3s ease;
}
.phone-number:hover {
    transform: translateY(-1px);
}

/* No Services Message */
.no-services {
    text-align: center;
    color: #666666;
    font-style: italic;
    padding: 30px 20px;
}

/* Column Order Indicator */
.elementor-control-table_columns .elementor-repeater-fields {
    position: relative;
}

.elementor-control-table_columns .elementor-repeater-fields::before {
    content: attr(data-order);
    position: absolute;
    top: 10px;
    right: 10px;
    background: #4a90e2;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
}

/* Drag and Drop Styles */
.elementor-control-table_columns .elementor-repeater-item {
    position: relative;
    transition: all 0.3s ease;
}

.elementor-control-table_columns .elementor-repeater-item.ui-sortable-helper {
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transform: rotate(2deg);
    z-index: 1000;
}

.elementor-control-table_columns .elementor-repeater-item.ui-sortable-placeholder {
    background: #e3f2fd;
    border: 2px dashed #4a90e2;
    height: 60px;
    margin: 10px 0;
}

/* Column Type Icons */
.elementor-control-column_type .elementor-control-input-wrapper::before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 8px;
    color: #4a90e2;
}

.elementor-control-column_type select[value="services"]::before {
    content: '\f0f6'; /* fa-file-text */
}

.elementor-control-column_type select[value="email"]::before {
    content: '\f0e0'; /* fa-envelope */
}

.elementor-control-column_type select[value="phone"]::before {
    content: '\f095'; /* fa-phone */
}


/* Animation for phone number clicks */
.phone-number.clicked {
    animation: phoneClick 0.3s ease;
}

@keyframes phoneClick {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Loading state */
.services-table-widget.loading {
    opacity: 0.7;
    pointer-events: none;
}

.services-table-widget.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #4a90e2;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Column reordering visual feedback */
.services-table.reordering {
    pointer-events: none;
}

.services-table.reordering th,
.services-table.reordering td {
    transition: all 0.3s ease;
}

/* Print styles */
@media print {
    .services-table-widget {
        box-shadow: none;
    }
    
    .services-table {
        border: 1px solid #000;
    }
    
    .services-table-header {
        background-color: #f0f0f0 !important;
        color: #000 !important;
    }
    
    .phone-number {
        background-color: #f0f0f0 !important;
        color: #000 !important;
        border: 1px solid #ccc;
    }
}

/* Elementor Editor Specific Styles */
.elementor-editor-active .services-table-widget {
    min-height: 200px;
}

.elementor-editor-active .services-table-widget .no-services {
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 5px;
    padding: 40px 20px;
}

/* Column width preview in editor */
.elementor-editor-active .services-table th {
    position: relative;
}

.elementor-editor-active .services-table th::after {
    content: attr(style);
    position: absolute;
    bottom: -20px;
    left: 0;
    font-size: 10px;
    color: #999;
    background: rgba(255,255,255,0.9);
    padding: 2px 4px;
    border-radius: 2px;
    white-space: nowrap;
    z-index: 10;
}
.service-cell .phone-number.highlight {
    background-color: #fff !important;
    transform: scale(1.00);
} 
.banking-ser-cont td.service-cell.service-phone-cell {
    padding: 0 !IMPORTANT;
}
.banking-ser-cont td.service-cell.service-phone-cell span.phone-number {
    padding: 5px 0px 5px 20px;
    border-bottom: 1px solid #00C8FF;
}
.banking-ser-cont td.service-cell.service-phone-cell span.phone-number:last-child {
    border-bottom: 0 !IMPORTANT;
}
.banking-ser-cont  td.service-cell.service-services-cell {
    width: 100% !important;
    max-width: 30%;
}
.container-1000 > .elementor-container.elementor-column-gap-default {
    max-width: 1100px;
}
 
 
 
 @media (max-width:1024px) {
 .services-table-body td { 
    overflow-wrap: anywhere; 
}

}

 @media (max-width:768px) {

.service-email-cell .email-link { 
    font-size: 16px; 
}
.services-table-body td { 
    font-size: 16px !important;
}
.services-table-header th {
    padding: 10px 0px 10px 10px; 
    font-size: 16px;
}
}
 @media (max-width:599px) {
.services-table-header th { 
    font-size: 14px;
}
.service-email-cell .email-link { 
    font-size: 14px; 
}
.services-table-body td { 
    font-size: 14px !important;
}
}