/* Energiesubsidiewijzer plugin CSS */
.esw-form-container {
    max-width: 400px;
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.esw-form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}
.esw-form-row label {
    margin-bottom: 6px;
    font-weight: 500;
}
.esw-form-row input[type="text"],
.esw-form-row select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}
.esw-form-row button[type="submit"] {
    padding: 10px 18px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}
.esw-form-row button[type="submit"]:hover {
    background: #005177;
}
.esw-form-row small {
    color: #666;
    margin-top: 4px;
}
.esw-results {
    margin-top: 32px;
}
.esw-regulation {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 18px 20px 14px 20px;
    margin-bottom: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.esw-regulation-title {
    font-size: 1.15em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #0073aa;
}
.esw-regulation-row {
    margin-bottom: 7px;
}
.esw-regulation-row:last-child {
    margin-bottom: 0;
}
.esw-regulation a {
    color: #0073aa;
    text-decoration: underline;
}
.esw-regulation a:hover {
    color: #005177;
}
.esw-moreinfo-btn {
    display: inline-block;
    background: #0073aa;
    color: #fff !important;
    border: none;
    border-radius: 4px;
    padding: 8px 18px;
    font-size: 1em;
    font-weight: 500;
    text-align: center;
    text-decoration: none !important;
    margin-top: 10px;
    transition: background 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    cursor: pointer;
}
.esw-moreinfo-btn:hover {
    background: #005177;
    color: #fff !important;
}
.esw-label {
    display: inline-block;
    background: #e6f0fa;
    color: #0073aa;
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 0.92em;
    margin-right: 4px;
    margin-bottom: 3px;
    font-weight: 500;
    line-height: 1.2;
    max-width: 100%;
    word-break: break-word;
}
@media (max-width: 600px) {
    .esw-label {
        font-size: 0.85em;
        padding: 2px 7px;
        margin-right: 2px;
        margin-bottom: 2px;
    }
}
.esw-regulation-labels {
    margin-bottom: 8px;
}
.esw-regulation-intro {
    font-size: 1em;
    color: #444;
    margin-bottom: 12px;
}
.esw-regulation-row ul {
    list-style-type: disc;
    margin: 8px 0 8px 24px;
    padding-left: 20px;
}
.esw-input {
    font-size: 16px;
}
#esw-no-results {
    color: #b30000;
    font-weight: bold;
    margin: 18px 0 10px 0;
    font-size: 1.08em;
}
.esw-results-flex {
    display: flex;
    flex-direction: row;
}
.esw-result-filters-sidebar {
    min-width: 220px;
    max-width: 260px;
    flex: 0 0 220px;
    margin-right: 16px;
}
.esw-result-filters-sidebar form,
.esw-result-filters-sidebar .esw-result-filter-expl {
    margin-bottom: 18px;
}
@media (max-width: 800px) {
    .esw-results-flex {
        flex-direction: column;
    }
    .esw-result-filters-sidebar {
        max-width: 100%;
        min-width: 0;
        margin-right: 0;
    }
}
#esw_gemeente {
    width: 100%;
    height: 44px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

/* Autocomplete dropdown styling */
.esw-autocomplete-wrapper {
    position: relative;
}
.esw-autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.esw-dropdown-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}
.esw-dropdown-item:hover,
.esw-dropdown-item.selected {
    background-color: #f5f5f5;
}
.esw-dropdown-item:last-child {
    border-bottom: none;
}

/* Badge/teller styling */
.esw-badge {
    display: inline-block;
    font-size: 1em;
    font-weight: 600;
    border-radius: 16px;
    padding: 7px 16px;
    border: 1.5px solid #0073aa;
    background: #e6f0fa;
    color: #0073aa;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    margin-right: 6px;
    margin-bottom: 4px;
}
.esw-badge span {
    background: #fff;
    border-radius: 10px;
    padding: 2px 8px;
    margin-left: 6px;
    font-weight: 700;
    font-size: 0.95em;
}
@media (max-width: 600px) {
    .esw-badge {
        font-size: 0.78em;
        padding: 4px 6px;
        border-radius: 10px;
        margin-right: 1px;
        margin-bottom: 1px;
        min-width: 66px;
        text-align: center;
        word-break: break-word;
    }
    .esw-badge span {
        font-size: 0.90em;
        padding: 2px 4px;
        margin-left: 2px;
    }
    .esw-result-counters {
        flex-wrap: wrap;
        gap: 2px;
        justify-content: flex-start;
    }
}
.esw-regulation-row .esw-moreinfo-btn,
.esw-regulation-row .esw-share-btn {
    display: inline-block !important;
    vertical-align: middle !important;
    margin-top: 10px !important;
    margin-bottom: 0 !important;
}
.esw-regulation-row .esw-moreinfo-btn {
    margin-right: 8px !important;
}
.esw-regulation-row .esw-share-btn {
    background: #00b386 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 8px 16px !important;
    font-size: 1em !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
}
.esw-regulation-row .esw-share-btn:hover {
    background: #008060 !important;
}