.geoip-switcher-wrap {
    max-width: 1200px;
    margin: 20px 0;
}

.geoip-switcher-tabs {
    display: flex;
    border-bottom: 1px solid #ccd0d4;
    margin-bottom: 20px;
}

.geoip-switcher-tab {
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #50575e;
    transition: all 0.2s;
}

.geoip-switcher-tab:hover {
    color: #2271b1;
}

.geoip-switcher-tab.active {
    color: #2271b1;
    border-bottom-color: #2271b1;
}

.geoip-switcher-content {
    display: none;
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
}

.geoip-switcher-content.active {
    display: block !important;
}

.geoip-form-table {
    width: 100%;
}

.geoip-form-table th {
    width: 200px;
    padding: 15px 10px 15px 0;
    vertical-align: top;
    text-align: left;
    font-weight: 600;
}

.geoip-form-table td {
    padding: 15px 10px;
}

.geoip-form-table input[type="text"],
.geoip-form-table input[type="url"],
.geoip-form-table select {
    width: 100%;
    max-width: 500px;
}

.geoip-form-table textarea {
    width: 100%;
    max-width: 500px;
    min-height: 100px;
}

.geoip-rule-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.geoip-rule-row select,
.geoip-rule-row input {
    flex: 1;
}

.geoip-remove-rule {
    background: #dc3232;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 3px;
    cursor: pointer;
}

.geoip-add-rule {
    margin-top: 10px;
}

.geoip-status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.geoip-status-indicator.active {
    background: #46b450;
}

.geoip-status-indicator.inactive {
    background: #dc3232;
}

.geoip-info-box {
    background: #f0f6fc;
    border-left: 4px solid #2271b1;
    padding: 12px;
    margin: 15px 0;
}

.geoip-warning-box {
    background: #fcf9e8;
    border-left: 4px solid #dba617;
    padding: 12px;
    margin: 15px 0;
}

.geoip-error-box {
    background: #fcf0f1;
    border-left: 4px solid #dc3232;
    padding: 12px;
    margin: 15px 0;
}

.geoip-submit-wrapper {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    border-top: none;
    border-radius: 0 0 4px 4px;
    margin-top: -1px;
    display: block !important;
    visibility: visible !important;
    position: relative;
    z-index: 1;
}

.geoip-save-button {
    font-size: 14px;
    height: auto;
    padding: 10px 24px;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

@media screen and (max-width: 782px) {
    .geoip-switcher-tabs {
        flex-wrap: wrap;
    }
    
    .geoip-switcher-tab {
        flex: 1 1 auto;
        min-width: 120px;
        text-align: center;
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .geoip-form-table th,
    .geoip-form-table td {
        display: block;
        width: 100%;
        padding: 10px 0;
    }
    
    .geoip-form-table th {
        padding-bottom: 5px;
    }
}

@media screen and (max-width: 600px) {
    .geoip-switcher-tab {
        flex: 1 1 100%;
        border-bottom: 1px solid #ccd0d4;
    }
    
    .geoip-switcher-tab.active {
        border-bottom-color: #2271b1;
    }
}

