/* Scope everything to the block wrapper */
.iot-coverage-wrapper {
    font-family: 'Poppins', sans-serif;
    background: #fff;
    color: #333;
    padding: 20px;
    margin: 0 auto;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 14px;
}

.iot-coverage-wrapper h2 {
    color: #005eb8;
    font-size: 1.4rem;
    margin-bottom: 10px;
    text-align: left;
}

#iot-global-coverage-block {
    width: 100%;
}

#iot-global-coverage-block input#searchInput {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.iot-table-container {
    overflow-x: auto;
}

.iot-coverage-wrapper table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.iot-coverage-wrapper th,
.iot-coverage-wrapper td {
    padding: 8px 10px;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
}

.iot-coverage-wrapper thead th {
    background: #005eb8;
    color: #fff;
    cursor: pointer;
    position: sticky;
    top: 0;
}

.iot-coverage-wrapper thead th:hover {
    background: #004a94;
}

.iot-coverage-wrapper tbody tr:nth-child(even) {
    background: #f9f9f9;
}

.iot-coverage-wrapper tbody tr:hover {
    background: rgba(255, 242, 18, 0.1);
}

.iot-coverage-wrapper .pagination {
    margin-top: 15px;
    text-align: center;
}

.iot-coverage-wrapper .pagination button {
    background: #005eb8;
    color: #fff;
    border: none;
    padding: 6px 12px;
    margin: 2px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s ease;
}

.iot-coverage-wrapper .pagination button.active {
    background: #fff212;
    color: #000;
    font-weight: bold;
}

.iot-coverage-wrapper .pagination button:hover {
    background: #004a94;
}

/* Make IoT Global Coverage Table span full width inside WP content area */
.wp-block-iot-global-coverage,
#iot-global-coverage-block,
.iot-coverage-wrapper {
    max-width: 96% !important;
    width: 96% !important;
    margin-left: 2% !important;
    margin-right: 2% !important;
    padding-left: 0;
    padding-right: 0;
}

/* Style the search input */
#iot-global-coverage-block input#searchInput {
    width: 100%;
    max-width: 500px;
    /* limit width on desktop */
    display: block;
    margin: 0 auto 15px auto;
    /* center horizontally */
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

/* On smaller screens, make it full width again */
@media (max-width: 768px) {
    #iot-global-coverage-block input#searchInput {
        max-width: 90%;
    }
}